Class BetaTelemetryDestinationTraces.Builder
-
- All Implemented Interfaces:
public final class BetaTelemetryDestinationTraces.BuilderA builder for BetaTelemetryDestinationTraces.
-
-
Method Summary
-
-
Method Detail
-
contentMode
final BetaTelemetryDestinationTraces.Builder contentMode(BetaTelemetryDestinationContentMode contentMode)
What the exported spans contain.
-
contentMode
final BetaTelemetryDestinationTraces.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 BetaTelemetryDestinationTraces.Builder enabled(Boolean enabled)
Whether the destination receives traces. A destination whose
enabledis false keeps its other settings.
-
enabled
final BetaTelemetryDestinationTraces.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 BetaTelemetryDestinationTraces.Builder endpointUrl(String endpointUrl)
The full URL that the API posts traces to, exactly as registered, or
nullif the destination doesn't have one.When it is
null, the API posts traces toendpoint_urlwith/v1/tracesappended.
-
endpointUrl
final BetaTelemetryDestinationTraces.Builder endpointUrl(Optional<String> endpointUrl)
Alias for calling Builder.endpointUrl with
endpointUrl.orElse(null).
-
endpointUrl
final BetaTelemetryDestinationTraces.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 BetaTelemetryDestinationTraces.Builder maxContentBytes(Integer maxContentBytes)
The most bytes of content that one exported span can contain, or
nullif only the API's maximum applies.Content means model prompts and responses, and tool inputs and outputs. The API shortens longer content to this size before it delivers the span. A destination whose
content_modeismetadata_onlykeeps this value. It applies oncecontent_modeiscontent.
-
maxContentBytes
final BetaTelemetryDestinationTraces.Builder maxContentBytes(Integer maxContentBytes)
Alias for Builder.maxContentBytes.
This unboxed primitive overload exists for backwards compatibility.
-
maxContentBytes
final BetaTelemetryDestinationTraces.Builder maxContentBytes(Optional<Integer> maxContentBytes)
Alias for calling Builder.maxContentBytes with
maxContentBytes.orElse(null).
-
maxContentBytes
final BetaTelemetryDestinationTraces.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 BetaTelemetryDestinationTraces.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaTelemetryDestinationTraces.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTelemetryDestinationTraces.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTelemetryDestinationTraces.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTelemetryDestinationTraces.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTelemetryDestinationTraces build()
Returns an immutable instance of BetaTelemetryDestinationTraces.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentMode() .enabled() .endpointUrl() .maxContentBytes()
-
-
-
-