Class TypedExtensionConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TypedExtensionConfigOrBuilder, Cloneable
    Enclosing class:
    TypedExtensionConfig

    public static final class TypedExtensionConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TypedExtensionConfig.Builder>
    implements TypedExtensionConfigOrBuilder
     Message type for extension configuration.
     [#next-major-version: revisit all existing typed_config that doesn't use this wrapper.].
     
    Protobuf type envoy.config.core.v3.TypedExtensionConfig
    • Method Detail

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

        public TypedExtensionConfig.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<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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • setUnknownFields

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

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