Class TypedExtensionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TypedExtensionConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<TypedExtensionConfig.Builder>
com.github.xds.core.v3.TypedExtensionConfig.Builder
All Implemented Interfaces:
TypedExtensionConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TypedExtensionConfig

public static final class TypedExtensionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<TypedExtensionConfig.Builder> implements TypedExtensionConfigOrBuilder
 Message type for extension configuration.
 
Protobuf type xds.core.v3.TypedExtensionConfig
  • Field Details

    • bitField0_

      private int bitField0_
    • name_

      private Object name_
    • typedConfig_

      private com.google.protobuf.Any typedConfig_
    • typedConfigBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> typedConfigBuilder_
  • 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<TypedExtensionConfig.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • 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<TypedExtensionConfig.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<TypedExtensionConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      private void buildPartial0(TypedExtensionConfig result)
    • mergeFrom

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

    • isInitialized

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

      public TypedExtensionConfig.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<TypedExtensionConfig.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of an extension. This is not used to select the extension, instead
       it serves the role of an opaque identifier.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getName in interface TypedExtensionConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of an extension. This is not used to select the extension, instead
       it serves the role of an opaque identifier.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getNameBytes in interface TypedExtensionConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TypedExtensionConfig.Builder setName(String value)
       The name of an extension. This is not used to select the extension, instead
       it serves the role of an opaque identifier.
       
      string name = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TypedExtensionConfig.Builder clearName()
       The name of an extension. This is not used to select the extension, instead
       it serves the role of an opaque identifier.
       
      string name = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public TypedExtensionConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of an extension. This is not used to select the extension, instead
       it serves the role of an opaque identifier.
       
      string name = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasTypedConfig

      public boolean hasTypedConfig()
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
      Specified by:
      hasTypedConfig in interface TypedExtensionConfigOrBuilder
      Returns:
      Whether the typedConfig field is set.
    • getTypedConfig

      public com.google.protobuf.Any getTypedConfig()
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
      Specified by:
      getTypedConfig in interface TypedExtensionConfigOrBuilder
      Returns:
      The typedConfig.
    • setTypedConfig

      public TypedExtensionConfig.Builder setTypedConfig(com.google.protobuf.Any value)
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
    • setTypedConfig

      public TypedExtensionConfig.Builder setTypedConfig(com.google.protobuf.Any.Builder builderForValue)
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
    • mergeTypedConfig

      public TypedExtensionConfig.Builder mergeTypedConfig(com.google.protobuf.Any value)
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
    • clearTypedConfig

      public TypedExtensionConfig.Builder clearTypedConfig()
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
    • getTypedConfigBuilder

      public com.google.protobuf.Any.Builder getTypedConfigBuilder()
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
    • getTypedConfigOrBuilder

      public com.google.protobuf.AnyOrBuilder getTypedConfigOrBuilder()
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
      Specified by:
      getTypedConfigOrBuilder in interface TypedExtensionConfigOrBuilder
    • internalGetTypedConfigFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> internalGetTypedConfigFieldBuilder()
       The typed config for the extension. The type URL will be used to identify
       the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
       (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
       URL of *TypedStruct* will be utilized. See the
       :ref:`extension configuration overview
       <config_overview_extension_configuration>` for further details.
       
      .google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }