Class LightstepConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<LightstepConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
io.envoyproxy.envoy.config.trace.v3.LightstepConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LightstepConfigOrBuilder,Cloneable
- Enclosing class:
LightstepConfig
public static final class LightstepConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
implements LightstepConfigOrBuilder
Configuration for the LightStep tracer. [#extension: envoy.tracers.lightstep] [#not-implemented-hide:]Protobuf type
envoy.config.trace.v3.LightstepConfig-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataSourceprivate com.google.protobuf.SingleFieldBuilder<DataSource, DataSource.Builder, DataSourceOrBuilder> private Objectprivate intprivate Objectprivate com.google.protobuf.Internal.IntList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllPropagationModes(Iterable<? extends LightstepConfig.PropagationMode> values) Propagation modes to use by LightStep's tracer.addAllPropagationModesValue(Iterable<Integer> values) Propagation modes to use by LightStep's tracer.Propagation modes to use by LightStep's tracer.addPropagationModesValue(int value) Propagation modes to use by LightStep's tracer.build()private voidbuildPartial0(LightstepConfig result) clear()Access token to the `LightStep <https://lightstep.com/>`_ API.Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated.The cluster manager cluster that hosts the LightStep collectors.Propagation modes to use by LightStep's tracer.private voidAccess token to the `LightStep <https://lightstep.com/>`_ API.Access token to the `LightStep <https://lightstep.com/>`_ API.Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated.com.google.protobuf.ByteStringDeprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated.Access token to the `LightStep <https://lightstep.com/>`_ API.The cluster manager cluster that hosts the LightStep collectors.com.google.protobuf.ByteStringThe cluster manager cluster that hosts the LightStep collectors.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPropagationModes(int index) Propagation modes to use by LightStep's tracer.intPropagation modes to use by LightStep's tracer.Propagation modes to use by LightStep's tracer.intgetPropagationModesValue(int index) Propagation modes to use by LightStep's tracer.Propagation modes to use by LightStep's tracer.booleanAccess token to the `LightStep <https://lightstep.com/>`_ API.private com.google.protobuf.SingleFieldBuilder<DataSource, DataSource.Builder, DataSourceOrBuilder> Access token to the `LightStep <https://lightstep.com/>`_ API.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanprivate voidmergeAccessToken(DataSource value) Access token to the `LightStep <https://lightstep.com/>`_ API.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(LightstepConfig other) setAccessToken(DataSource value) Access token to the `LightStep <https://lightstep.com/>`_ API.setAccessToken(DataSource.Builder builderForValue) Access token to the `LightStep <https://lightstep.com/>`_ API.setAccessTokenFile(String value) Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated.setAccessTokenFileBytes(com.google.protobuf.ByteString value) Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated.setCollectorCluster(String value) The cluster manager cluster that hosts the LightStep collectors.setCollectorClusterBytes(com.google.protobuf.ByteString value) The cluster manager cluster that hosts the LightStep collectors.setPropagationModes(int index, LightstepConfig.PropagationMode value) Propagation modes to use by LightStep's tracer.setPropagationModesValue(int index, int value) Propagation modes to use by LightStep's tracer.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
collectorCluster_
-
accessTokenFile_
-
accessToken_
-
accessTokenBuilder_
private com.google.protobuf.SingleFieldBuilder<DataSource,DataSource.Builder, accessTokenBuilder_DataSourceOrBuilder> -
propagationModes_
private com.google.protobuf.Internal.IntList propagationModes_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LightstepConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
-
mergeFrom
public LightstepConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LightstepConfig.Builder>- Throws:
IOException
-
getCollectorCluster
The cluster manager cluster that hosts the LightStep collectors.
string collector_cluster = 1 [(.validate.rules) = { ... }- Specified by:
getCollectorClusterin interfaceLightstepConfigOrBuilder- Returns:
- The collectorCluster.
-
getCollectorClusterBytes
public com.google.protobuf.ByteString getCollectorClusterBytes()The cluster manager cluster that hosts the LightStep collectors.
string collector_cluster = 1 [(.validate.rules) = { ... }- Specified by:
getCollectorClusterBytesin interfaceLightstepConfigOrBuilder- Returns:
- The bytes for collectorCluster.
-
setCollectorCluster
The cluster manager cluster that hosts the LightStep collectors.
string collector_cluster = 1 [(.validate.rules) = { ... }- Parameters:
value- The collectorCluster to set.- Returns:
- This builder for chaining.
-
clearCollectorCluster
The cluster manager cluster that hosts the LightStep collectors.
string collector_cluster = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setCollectorClusterBytes
The cluster manager cluster that hosts the LightStep collectors.
string collector_cluster = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for collectorCluster to set.- Returns:
- This builder for chaining.
-
getAccessTokenFile
Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49File containing the access token to the `LightStep <https://lightstep.com/>`_ API.
string access_token_file = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getAccessTokenFilein interfaceLightstepConfigOrBuilder- Returns:
- The accessTokenFile.
-
getAccessTokenFileBytes
Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49File containing the access token to the `LightStep <https://lightstep.com/>`_ API.
string access_token_file = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getAccessTokenFileBytesin interfaceLightstepConfigOrBuilder- Returns:
- The bytes for accessTokenFile.
-
setAccessTokenFile
Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49File containing the access token to the `LightStep <https://lightstep.com/>`_ API.
string access_token_file = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The accessTokenFile to set.- Returns:
- This builder for chaining.
-
clearAccessTokenFile
Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49File containing the access token to the `LightStep <https://lightstep.com/>`_ API.
string access_token_file = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Returns:
- This builder for chaining.
-
setAccessTokenFileBytes
@Deprecated public LightstepConfig.Builder setAccessTokenFileBytes(com.google.protobuf.ByteString value) Deprecated.envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49File containing the access token to the `LightStep <https://lightstep.com/>`_ API.
string access_token_file = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The bytes for accessTokenFile to set.- Returns:
- This builder for chaining.
-
hasAccessToken
public boolean hasAccessToken()Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4;- Specified by:
hasAccessTokenin interfaceLightstepConfigOrBuilder- Returns:
- Whether the accessToken field is set.
-
getAccessToken
Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4;- Specified by:
getAccessTokenin interfaceLightstepConfigOrBuilder- Returns:
- The accessToken.
-
setAccessToken
Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4; -
setAccessToken
Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4; -
mergeAccessToken
Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4; -
clearAccessToken
Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4; -
getAccessTokenBuilder
Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4; -
getAccessTokenOrBuilder
Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4;- Specified by:
getAccessTokenOrBuilderin interfaceLightstepConfigOrBuilder
-
internalGetAccessTokenFieldBuilder
private com.google.protobuf.SingleFieldBuilder<DataSource,DataSource.Builder, internalGetAccessTokenFieldBuilder()DataSourceOrBuilder> Access token to the `LightStep <https://lightstep.com/>`_ API.
.envoy.config.core.v3.DataSource access_token = 4; -
ensurePropagationModesIsMutable
private void ensurePropagationModesIsMutable() -
getPropagationModesList
Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Specified by:
getPropagationModesListin interfaceLightstepConfigOrBuilder- Returns:
- A list containing the propagationModes.
-
getPropagationModesCount
public int getPropagationModesCount()Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Specified by:
getPropagationModesCountin interfaceLightstepConfigOrBuilder- Returns:
- The count of propagationModes.
-
getPropagationModes
Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Specified by:
getPropagationModesin interfaceLightstepConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The propagationModes at the given index.
-
setPropagationModes
public LightstepConfig.Builder setPropagationModes(int index, LightstepConfig.PropagationMode value) Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The propagationModes to set.- Returns:
- This builder for chaining.
-
addPropagationModes
Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Parameters:
value- The propagationModes to add.- Returns:
- This builder for chaining.
-
addAllPropagationModes
public LightstepConfig.Builder addAllPropagationModes(Iterable<? extends LightstepConfig.PropagationMode> values) Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Parameters:
values- The propagationModes to add.- Returns:
- This builder for chaining.
-
clearPropagationModes
Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getPropagationModesValueList
Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Specified by:
getPropagationModesValueListin interfaceLightstepConfigOrBuilder- Returns:
- A list containing the enum numeric values on the wire for propagationModes.
-
getPropagationModesValue
public int getPropagationModesValue(int index) Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Specified by:
getPropagationModesValuein interfaceLightstepConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of propagationModes at the given index.
-
setPropagationModesValue
Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for propagationModes to set.- Returns:
- This builder for chaining.
-
addPropagationModesValue
Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for propagationModes to add.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
addAllPropagationModesValue
Propagation modes to use by LightStep's tracer.
repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }- Parameters:
values- The enum numeric values on the wire for propagationModes to add.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-