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 Details

    • bitField0_

      private int bitField0_
    • collectorCluster_

      private Object collectorCluster_
    • accessTokenFile_

      private Object accessTokenFile_
    • accessToken_

      private DataSource accessToken_
    • accessTokenBuilder_

      private com.google.protobuf.SingleFieldBuilder<DataSource,DataSource.Builder,DataSourceOrBuilder> accessTokenBuilder_
    • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      public LightstepConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LightstepConfig.Builder>
    • getDefaultInstanceForType

      public LightstepConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public LightstepConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LightstepConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartialRepeatedFields

      private void buildPartialRepeatedFields(LightstepConfig result)
    • buildPartial0

      private void buildPartial0(LightstepConfig result)
    • mergeFrom

      public LightstepConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightstepConfig.Builder>
    • mergeFrom

      public LightstepConfig.Builder mergeFrom(LightstepConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightstepConfig.Builder>
      Throws:
      IOException
    • getCollectorCluster

      public String getCollectorCluster()
       The cluster manager cluster that hosts the LightStep collectors.
       
      string collector_cluster = 1 [(.validate.rules) = { ... }
      Specified by:
      getCollectorCluster in interface LightstepConfigOrBuilder
      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:
      getCollectorClusterBytes in interface LightstepConfigOrBuilder
      Returns:
      The bytes for collectorCluster.
    • setCollectorCluster

      public LightstepConfig.Builder setCollectorCluster(String value)
       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

      public LightstepConfig.Builder clearCollectorCluster()
       The cluster manager cluster that hosts the LightStep collectors.
       
      string collector_cluster = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setCollectorClusterBytes

      public LightstepConfig.Builder setCollectorClusterBytes(com.google.protobuf.ByteString value)
       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 public String getAccessTokenFile()
      Deprecated.
      envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49
       File 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:
      getAccessTokenFile in interface LightstepConfigOrBuilder
      Returns:
      The accessTokenFile.
    • getAccessTokenFileBytes

      @Deprecated public com.google.protobuf.ByteString getAccessTokenFileBytes()
      Deprecated.
      envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49
       File 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:
      getAccessTokenFileBytes in interface LightstepConfigOrBuilder
      Returns:
      The bytes for accessTokenFile.
    • setAccessTokenFile

      @Deprecated public LightstepConfig.Builder setAccessTokenFile(String value)
      Deprecated.
      envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49
       File 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 public LightstepConfig.Builder clearAccessTokenFile()
      Deprecated.
      envoy.config.trace.v3.LightstepConfig.access_token_file is deprecated. See envoy/config/trace/v3/lightstep.proto;l=49
       File 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=49
       File 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:
      hasAccessToken in interface LightstepConfigOrBuilder
      Returns:
      Whether the accessToken field is set.
    • getAccessToken

      public DataSource getAccessToken()
       Access token to the `LightStep <https://lightstep.com/>`_ API.
       
      .envoy.config.core.v3.DataSource access_token = 4;
      Specified by:
      getAccessToken in interface LightstepConfigOrBuilder
      Returns:
      The accessToken.
    • setAccessToken

      public LightstepConfig.Builder setAccessToken(DataSource value)
       Access token to the `LightStep <https://lightstep.com/>`_ API.
       
      .envoy.config.core.v3.DataSource access_token = 4;
    • setAccessToken

      public LightstepConfig.Builder setAccessToken(DataSource.Builder builderForValue)
       Access token to the `LightStep <https://lightstep.com/>`_ API.
       
      .envoy.config.core.v3.DataSource access_token = 4;
    • mergeAccessToken

      public LightstepConfig.Builder mergeAccessToken(DataSource value)
       Access token to the `LightStep <https://lightstep.com/>`_ API.
       
      .envoy.config.core.v3.DataSource access_token = 4;
    • clearAccessToken

      public LightstepConfig.Builder clearAccessToken()
       Access token to the `LightStep <https://lightstep.com/>`_ API.
       
      .envoy.config.core.v3.DataSource access_token = 4;
    • getAccessTokenBuilder

      public DataSource.Builder getAccessTokenBuilder()
       Access token to the `LightStep <https://lightstep.com/>`_ API.
       
      .envoy.config.core.v3.DataSource access_token = 4;
    • getAccessTokenOrBuilder

      public DataSourceOrBuilder getAccessTokenOrBuilder()
       Access token to the `LightStep <https://lightstep.com/>`_ API.
       
      .envoy.config.core.v3.DataSource access_token = 4;
      Specified by:
      getAccessTokenOrBuilder in interface LightstepConfigOrBuilder
    • internalGetAccessTokenFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<DataSource,DataSource.Builder,DataSourceOrBuilder> internalGetAccessTokenFieldBuilder()
       Access token to the `LightStep <https://lightstep.com/>`_ API.
       
      .envoy.config.core.v3.DataSource access_token = 4;
    • ensurePropagationModesIsMutable

      private void ensurePropagationModesIsMutable()
    • getPropagationModesList

      public List<LightstepConfig.PropagationMode> getPropagationModesList()
       Propagation modes to use by LightStep's tracer.
       
      repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }
      Specified by:
      getPropagationModesList in interface LightstepConfigOrBuilder
      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:
      getPropagationModesCount in interface LightstepConfigOrBuilder
      Returns:
      The count of propagationModes.
    • getPropagationModes

      public LightstepConfig.PropagationMode getPropagationModes(int index)
       Propagation modes to use by LightStep's tracer.
       
      repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }
      Specified by:
      getPropagationModes in interface LightstepConfigOrBuilder
      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

      public LightstepConfig.Builder addPropagationModes(LightstepConfig.PropagationMode value)
       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

      public LightstepConfig.Builder 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

      public List<Integer> getPropagationModesValueList()
       Propagation modes to use by LightStep's tracer.
       
      repeated .envoy.config.trace.v3.LightstepConfig.PropagationMode propagation_modes = 3 [(.validate.rules) = { ... }
      Specified by:
      getPropagationModesValueList in interface LightstepConfigOrBuilder
      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:
      getPropagationModesValue in interface LightstepConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of propagationModes at the given index.
    • setPropagationModesValue

      public LightstepConfig.Builder setPropagationModesValue(int index, int 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 enum numeric value on the wire for propagationModes to set.
      Returns:
      This builder for chaining.
    • addPropagationModesValue

      public LightstepConfig.Builder addPropagationModesValue(int value)
       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.
    • addAllPropagationModesValue

      public LightstepConfig.Builder addAllPropagationModesValue(Iterable<Integer> values)
       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.