Class BetaTelemetryDestinationTracesParams.Builder
-
- All Implemented Interfaces:
public final class BetaTelemetryDestinationTracesParams.BuilderA builder for BetaTelemetryDestinationTracesParams.
-
-
Method Summary
-
-
Method Detail
-
contentMode
final BetaTelemetryDestinationTracesParams.Builder contentMode(BetaTelemetryDestinationContentMode contentMode)
What the exported spans contain. Defaults to
metadata_onlyon create.On update,
nullsetsmetadata_only.
-
contentMode
final BetaTelemetryDestinationTracesParams.Builder contentMode(Optional<BetaTelemetryDestinationContentMode> contentMode)
Alias for calling Builder.contentMode with
contentMode.orElse(null).
-
contentMode
final BetaTelemetryDestinationTracesParams.Builder contentMode(JsonField<BetaTelemetryDestinationContentMode> contentMode)
Sets Builder.contentMode to an arbitrary JSON value.
You should usually call Builder.contentMode with a well-typed BetaTelemetryDestinationContentMode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
enabled
final BetaTelemetryDestinationTracesParams.Builder enabled(Boolean enabled)
Whether the destination receives traces. Defaults to true on create. It cannot be null.
-
enabled
final BetaTelemetryDestinationTracesParams.Builder enabled(JsonField<Boolean> enabled)
Sets Builder.enabled to an arbitrary JSON value.
You should usually call Builder.enabled with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
endpointUrl
final BetaTelemetryDestinationTracesParams.Builder endpointUrl(String endpointUrl)
The full URL of your collector's traces endpoint, for a collector that takes traces on a path other than
/v1/traces. The API posts traces to it exactly as given and appends nothing.The same rules as for
endpoint_urlapply, except that any path is allowed. It must have the same scheme, host, and port asendpoint_url. At most 2,048 characters.On create,
nullis the same as leaving it out. On update,nullremoves it. The API then posts traces toendpoint_urlwith/v1/tracesappended. A change of this URL alone keeps the registered headers.
-
endpointUrl
final BetaTelemetryDestinationTracesParams.Builder endpointUrl(Optional<String> endpointUrl)
Alias for calling Builder.endpointUrl with
endpointUrl.orElse(null).
-
endpointUrl
final BetaTelemetryDestinationTracesParams.Builder endpointUrl(JsonField<String> endpointUrl)
Sets Builder.endpointUrl to an arbitrary JSON value.
You should usually call Builder.endpointUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxContentBytes
final BetaTelemetryDestinationTracesParams.Builder maxContentBytes(Integer maxContentBytes)
The most bytes of content that one exported span can contain, from 1 up to the API's maximum.
nullsets no bound, so only the API's maximum applies.On create, leaving it out is the same as
null. The error for a value above the maximum states the maximum.
-
maxContentBytes
final BetaTelemetryDestinationTracesParams.Builder maxContentBytes(Integer maxContentBytes)
Alias for Builder.maxContentBytes.
This unboxed primitive overload exists for backwards compatibility.
-
maxContentBytes
final BetaTelemetryDestinationTracesParams.Builder maxContentBytes(Optional<Integer> maxContentBytes)
Alias for calling Builder.maxContentBytes with
maxContentBytes.orElse(null).
-
maxContentBytes
final BetaTelemetryDestinationTracesParams.Builder maxContentBytes(JsonField<Integer> maxContentBytes)
Sets Builder.maxContentBytes to an arbitrary JSON value.
You should usually call Builder.maxContentBytes with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaTelemetryDestinationTracesParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaTelemetryDestinationTracesParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTelemetryDestinationTracesParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTelemetryDestinationTracesParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTelemetryDestinationTracesParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTelemetryDestinationTracesParams build()
Returns an immutable instance of BetaTelemetryDestinationTracesParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-