java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
io.envoyproxy.envoy.extensions.filters.http.set_metadata.v3.Metadata.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetadataOrBuilder, Cloneable
Enclosing class:
Metadata

public static final class Metadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder> implements MetadataOrBuilder
Protobuf type envoy.extensions.filters.http.set_metadata.v3.Metadata
  • 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<Metadata.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Metadata.Builder mergeFrom(Metadata other)
    • isInitialized

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

      public Metadata.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<Metadata.Builder>
      Throws:
      IOException
    • getMetadataNamespace

      public String getMetadataNamespace()
       The metadata namespace.
       
      string metadata_namespace = 1 [(.validate.rules) = { ... }
      Specified by:
      getMetadataNamespace in interface MetadataOrBuilder
      Returns:
      The metadataNamespace.
    • getMetadataNamespaceBytes

      public com.google.protobuf.ByteString getMetadataNamespaceBytes()
       The metadata namespace.
       
      string metadata_namespace = 1 [(.validate.rules) = { ... }
      Specified by:
      getMetadataNamespaceBytes in interface MetadataOrBuilder
      Returns:
      The bytes for metadataNamespace.
    • setMetadataNamespace

      public Metadata.Builder setMetadataNamespace(String value)
       The metadata namespace.
       
      string metadata_namespace = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The metadataNamespace to set.
      Returns:
      This builder for chaining.
    • clearMetadataNamespace

      public Metadata.Builder clearMetadataNamespace()
       The metadata namespace.
       
      string metadata_namespace = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setMetadataNamespaceBytes

      public Metadata.Builder setMetadataNamespaceBytes(com.google.protobuf.ByteString value)
       The metadata namespace.
       
      string metadata_namespace = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for metadataNamespace to set.
      Returns:
      This builder for chaining.
    • getAllowOverwrite

      public boolean getAllowOverwrite()
       Allow the filter to overwrite or merge with an existing value in the namespace.
       
      bool allow_overwrite = 2;
      Specified by:
      getAllowOverwrite in interface MetadataOrBuilder
      Returns:
      The allowOverwrite.
    • setAllowOverwrite

      public Metadata.Builder setAllowOverwrite(boolean value)
       Allow the filter to overwrite or merge with an existing value in the namespace.
       
      bool allow_overwrite = 2;
      Parameters:
      value - The allowOverwrite to set.
      Returns:
      This builder for chaining.
    • clearAllowOverwrite

      public Metadata.Builder clearAllowOverwrite()
       Allow the filter to overwrite or merge with an existing value in the namespace.
       
      bool allow_overwrite = 2;
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite or merge with any existing values in that namespace. See
       :ref:`the filter documentation <config_http_filters_set_metadata>` for
       more information on how this value is merged with potentially existing
       ones if ``allow_overwrite`` is configured. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Struct value = 3;
      Specified by:
      hasValue in interface MetadataOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public com.google.protobuf.Struct getValue()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite or merge with any existing values in that namespace. See
       :ref:`the filter documentation <config_http_filters_set_metadata>` for
       more information on how this value is merged with potentially existing
       ones if ``allow_overwrite`` is configured. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Struct value = 3;
      Specified by:
      getValue in interface MetadataOrBuilder
      Returns:
      The value.
    • setValue

      public Metadata.Builder setValue(com.google.protobuf.Struct value)
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite or merge with any existing values in that namespace. See
       :ref:`the filter documentation <config_http_filters_set_metadata>` for
       more information on how this value is merged with potentially existing
       ones if ``allow_overwrite`` is configured. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Struct value = 3;
    • setValue

      public Metadata.Builder setValue(com.google.protobuf.Struct.Builder builderForValue)
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite or merge with any existing values in that namespace. See
       :ref:`the filter documentation <config_http_filters_set_metadata>` for
       more information on how this value is merged with potentially existing
       ones if ``allow_overwrite`` is configured. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Struct value = 3;
    • mergeValue

      public Metadata.Builder mergeValue(com.google.protobuf.Struct value)
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite or merge with any existing values in that namespace. See
       :ref:`the filter documentation <config_http_filters_set_metadata>` for
       more information on how this value is merged with potentially existing
       ones if ``allow_overwrite`` is configured. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Struct value = 3;
    • clearValue

      public Metadata.Builder clearValue()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite or merge with any existing values in that namespace. See
       :ref:`the filter documentation <config_http_filters_set_metadata>` for
       more information on how this value is merged with potentially existing
       ones if ``allow_overwrite`` is configured. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Struct value = 3;
    • getValueBuilder

      public com.google.protobuf.Struct.Builder getValueBuilder()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite or merge with any existing values in that namespace. See
       :ref:`the filter documentation <config_http_filters_set_metadata>` for
       more information on how this value is merged with potentially existing
       ones if ``allow_overwrite`` is configured. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Struct value = 3;
    • getValueOrBuilder

      public com.google.protobuf.StructOrBuilder getValueOrBuilder()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite or merge with any existing values in that namespace. See
       :ref:`the filter documentation <config_http_filters_set_metadata>` for
       more information on how this value is merged with potentially existing
       ones if ``allow_overwrite`` is configured. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Struct value = 3;
      Specified by:
      getValueOrBuilder in interface MetadataOrBuilder
    • hasTypedValue

      public boolean hasTypedValue()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite any existing values in that namespace. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Any typed_value = 4;
      Specified by:
      hasTypedValue in interface MetadataOrBuilder
      Returns:
      Whether the typedValue field is set.
    • getTypedValue

      public com.google.protobuf.Any getTypedValue()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite any existing values in that namespace. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Any typed_value = 4;
      Specified by:
      getTypedValue in interface MetadataOrBuilder
      Returns:
      The typedValue.
    • setTypedValue

      public Metadata.Builder setTypedValue(com.google.protobuf.Any value)
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite any existing values in that namespace. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Any typed_value = 4;
    • setTypedValue

      public Metadata.Builder setTypedValue(com.google.protobuf.Any.Builder builderForValue)
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite any existing values in that namespace. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Any typed_value = 4;
    • mergeTypedValue

      public Metadata.Builder mergeTypedValue(com.google.protobuf.Any value)
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite any existing values in that namespace. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Any typed_value = 4;
    • clearTypedValue

      public Metadata.Builder clearTypedValue()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite any existing values in that namespace. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Any typed_value = 4;
    • getTypedValueBuilder

      public com.google.protobuf.Any.Builder getTypedValueBuilder()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite any existing values in that namespace. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Any typed_value = 4;
    • getTypedValueOrBuilder

      public com.google.protobuf.AnyOrBuilder getTypedValueOrBuilder()
       The value to place at the namespace. If ``allow_overwrite``, this will
       overwrite any existing values in that namespace. Only one of ``value`` and
       ``typed_value`` may be set.
       
      .google.protobuf.Any typed_value = 4;
      Specified by:
      getTypedValueOrBuilder in interface MetadataOrBuilder
    • setUnknownFields

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

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