Class ClientConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
io.envoyproxy.envoy.config.trace.v3.ClientConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClientConfigOrBuilder, Cloneable
Enclosing class:
ClientConfig

public static final class ClientConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder> implements ClientConfigOrBuilder
 Client config for SkyWalking tracer.
 
Protobuf type envoy.config.trace.v3.ClientConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • clear

      public ClientConfig.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.GeneratedMessageV3.Builder<ClientConfig.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.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public ClientConfig.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • setField

      public ClientConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • clearField

      public ClientConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • clearOneof

      public ClientConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • setRepeatedField

      public ClientConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • addRepeatedField

      public ClientConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • mergeFrom

      public ClientConfig.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<ClientConfig.Builder>
    • mergeFrom

      public ClientConfig.Builder mergeFrom(ClientConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • mergeFrom

      public ClientConfig.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<ClientConfig.Builder>
      Throws:
      IOException
    • getBackendTokenSpecifierCase

      public ClientConfig.BackendTokenSpecifierCase getBackendTokenSpecifierCase()
      Specified by:
      getBackendTokenSpecifierCase in interface ClientConfigOrBuilder
    • clearBackendTokenSpecifier

      public ClientConfig.Builder clearBackendTokenSpecifier()
    • getServiceName

      public String getServiceName()
       Service name for SkyWalking tracer. If this field is empty, then local service cluster name
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
       option :option:`--service-cluster` will be used. If both this field and local service cluster
       name are empty, ``EnvoyProxy`` is used as the service name by default.
       
      string service_name = 1;
      Specified by:
      getServiceName in interface ClientConfigOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       Service name for SkyWalking tracer. If this field is empty, then local service cluster name
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
       option :option:`--service-cluster` will be used. If both this field and local service cluster
       name are empty, ``EnvoyProxy`` is used as the service name by default.
       
      string service_name = 1;
      Specified by:
      getServiceNameBytes in interface ClientConfigOrBuilder
      Returns:
      The bytes for serviceName.
    • setServiceName

      public ClientConfig.Builder setServiceName(String value)
       Service name for SkyWalking tracer. If this field is empty, then local service cluster name
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
       option :option:`--service-cluster` will be used. If both this field and local service cluster
       name are empty, ``EnvoyProxy`` is used as the service name by default.
       
      string service_name = 1;
      Parameters:
      value - The serviceName to set.
      Returns:
      This builder for chaining.
    • clearServiceName

      public ClientConfig.Builder clearServiceName()
       Service name for SkyWalking tracer. If this field is empty, then local service cluster name
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
       option :option:`--service-cluster` will be used. If both this field and local service cluster
       name are empty, ``EnvoyProxy`` is used as the service name by default.
       
      string service_name = 1;
      Returns:
      This builder for chaining.
    • setServiceNameBytes

      public ClientConfig.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       Service name for SkyWalking tracer. If this field is empty, then local service cluster name
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
       option :option:`--service-cluster` will be used. If both this field and local service cluster
       name are empty, ``EnvoyProxy`` is used as the service name by default.
       
      string service_name = 1;
      Parameters:
      value - The bytes for serviceName to set.
      Returns:
      This builder for chaining.
    • getInstanceName

      public String getInstanceName()
       Service instance name for SkyWalking tracer. If this field is empty, then local service node
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line  option
       :option:`--service-node` will be used. If both this field and local service node are empty,
       ``EnvoyProxy`` is used as the instance name by default.
       
      string instance_name = 2;
      Specified by:
      getInstanceName in interface ClientConfigOrBuilder
      Returns:
      The instanceName.
    • getInstanceNameBytes

      public com.google.protobuf.ByteString getInstanceNameBytes()
       Service instance name for SkyWalking tracer. If this field is empty, then local service node
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line  option
       :option:`--service-node` will be used. If both this field and local service node are empty,
       ``EnvoyProxy`` is used as the instance name by default.
       
      string instance_name = 2;
      Specified by:
      getInstanceNameBytes in interface ClientConfigOrBuilder
      Returns:
      The bytes for instanceName.
    • setInstanceName

      public ClientConfig.Builder setInstanceName(String value)
       Service instance name for SkyWalking tracer. If this field is empty, then local service node
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line  option
       :option:`--service-node` will be used. If both this field and local service node are empty,
       ``EnvoyProxy`` is used as the instance name by default.
       
      string instance_name = 2;
      Parameters:
      value - The instanceName to set.
      Returns:
      This builder for chaining.
    • clearInstanceName

      public ClientConfig.Builder clearInstanceName()
       Service instance name for SkyWalking tracer. If this field is empty, then local service node
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line  option
       :option:`--service-node` will be used. If both this field and local service node are empty,
       ``EnvoyProxy`` is used as the instance name by default.
       
      string instance_name = 2;
      Returns:
      This builder for chaining.
    • setInstanceNameBytes

      public ClientConfig.Builder setInstanceNameBytes(com.google.protobuf.ByteString value)
       Service instance name for SkyWalking tracer. If this field is empty, then local service node
       that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
       message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line  option
       :option:`--service-node` will be used. If both this field and local service node are empty,
       ``EnvoyProxy`` is used as the instance name by default.
       
      string instance_name = 2;
      Parameters:
      value - The bytes for instanceName to set.
      Returns:
      This builder for chaining.
    • hasBackendToken

      public boolean hasBackendToken()
       Inline authentication token string.
       
      string backend_token = 3 [(.udpa.annotations.sensitive) = true];
      Specified by:
      hasBackendToken in interface ClientConfigOrBuilder
      Returns:
      Whether the backendToken field is set.
    • getBackendToken

      public String getBackendToken()
       Inline authentication token string.
       
      string backend_token = 3 [(.udpa.annotations.sensitive) = true];
      Specified by:
      getBackendToken in interface ClientConfigOrBuilder
      Returns:
      The backendToken.
    • getBackendTokenBytes

      public com.google.protobuf.ByteString getBackendTokenBytes()
       Inline authentication token string.
       
      string backend_token = 3 [(.udpa.annotations.sensitive) = true];
      Specified by:
      getBackendTokenBytes in interface ClientConfigOrBuilder
      Returns:
      The bytes for backendToken.
    • setBackendToken

      public ClientConfig.Builder setBackendToken(String value)
       Inline authentication token string.
       
      string backend_token = 3 [(.udpa.annotations.sensitive) = true];
      Parameters:
      value - The backendToken to set.
      Returns:
      This builder for chaining.
    • clearBackendToken

      public ClientConfig.Builder clearBackendToken()
       Inline authentication token string.
       
      string backend_token = 3 [(.udpa.annotations.sensitive) = true];
      Returns:
      This builder for chaining.
    • setBackendTokenBytes

      public ClientConfig.Builder setBackendTokenBytes(com.google.protobuf.ByteString value)
       Inline authentication token string.
       
      string backend_token = 3 [(.udpa.annotations.sensitive) = true];
      Parameters:
      value - The bytes for backendToken to set.
      Returns:
      This builder for chaining.
    • hasMaxCacheSize

      public boolean hasMaxCacheSize()
       Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
       This field specifies the maximum number of segments that can be cached. If not specified, the
       default is 1024.
       
      .google.protobuf.UInt32Value max_cache_size = 4;
      Specified by:
      hasMaxCacheSize in interface ClientConfigOrBuilder
      Returns:
      Whether the maxCacheSize field is set.
    • getMaxCacheSize

      public com.google.protobuf.UInt32Value getMaxCacheSize()
       Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
       This field specifies the maximum number of segments that can be cached. If not specified, the
       default is 1024.
       
      .google.protobuf.UInt32Value max_cache_size = 4;
      Specified by:
      getMaxCacheSize in interface ClientConfigOrBuilder
      Returns:
      The maxCacheSize.
    • setMaxCacheSize

      public ClientConfig.Builder setMaxCacheSize(com.google.protobuf.UInt32Value value)
       Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
       This field specifies the maximum number of segments that can be cached. If not specified, the
       default is 1024.
       
      .google.protobuf.UInt32Value max_cache_size = 4;
    • setMaxCacheSize

      public ClientConfig.Builder setMaxCacheSize(com.google.protobuf.UInt32Value.Builder builderForValue)
       Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
       This field specifies the maximum number of segments that can be cached. If not specified, the
       default is 1024.
       
      .google.protobuf.UInt32Value max_cache_size = 4;
    • mergeMaxCacheSize

      public ClientConfig.Builder mergeMaxCacheSize(com.google.protobuf.UInt32Value value)
       Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
       This field specifies the maximum number of segments that can be cached. If not specified, the
       default is 1024.
       
      .google.protobuf.UInt32Value max_cache_size = 4;
    • clearMaxCacheSize

      public ClientConfig.Builder clearMaxCacheSize()
       Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
       This field specifies the maximum number of segments that can be cached. If not specified, the
       default is 1024.
       
      .google.protobuf.UInt32Value max_cache_size = 4;
    • getMaxCacheSizeBuilder

      public com.google.protobuf.UInt32Value.Builder getMaxCacheSizeBuilder()
       Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
       This field specifies the maximum number of segments that can be cached. If not specified, the
       default is 1024.
       
      .google.protobuf.UInt32Value max_cache_size = 4;
    • getMaxCacheSizeOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getMaxCacheSizeOrBuilder()
       Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
       This field specifies the maximum number of segments that can be cached. If not specified, the
       default is 1024.
       
      .google.protobuf.UInt32Value max_cache_size = 4;
      Specified by:
      getMaxCacheSizeOrBuilder in interface ClientConfigOrBuilder
    • setUnknownFields

      public final ClientConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>
    • mergeUnknownFields

      public final ClientConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClientConfig.Builder>