java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HeaderToMetadata.KeyValuePair.Builder>
io.envoyproxy.envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.KeyValuePair.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HeaderToMetadata.KeyValuePairOrBuilder, Cloneable
Enclosing class:
HeaderToMetadata.KeyValuePair

public static final class HeaderToMetadata.KeyValuePair.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HeaderToMetadata.KeyValuePair.Builder> implements HeaderToMetadata.KeyValuePairOrBuilder
 [#next-free-field: 7]
 
Protobuf type envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.KeyValuePair
  • 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<HeaderToMetadata.KeyValuePair.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<HeaderToMetadata.KeyValuePair.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<HeaderToMetadata.KeyValuePair.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HeaderToMetadata.KeyValuePair buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<HeaderToMetadata.KeyValuePair.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public HeaderToMetadata.KeyValuePair.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<HeaderToMetadata.KeyValuePair.Builder>
      Throws:
      IOException
    • getValueTypeCase

      Specified by:
      getValueTypeCase in interface HeaderToMetadata.KeyValuePairOrBuilder
    • clearValueType

      public HeaderToMetadata.KeyValuePair.Builder clearValueType()
    • getMetadataNamespace

      public String getMetadataNamespace()
       The namespace — if this is empty, the filter's namespace will be used.
       
      string metadata_namespace = 1;
      Specified by:
      getMetadataNamespace in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The metadataNamespace.
    • getMetadataNamespaceBytes

      public com.google.protobuf.ByteString getMetadataNamespaceBytes()
       The namespace — if this is empty, the filter's namespace will be used.
       
      string metadata_namespace = 1;
      Specified by:
      getMetadataNamespaceBytes in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The bytes for metadataNamespace.
    • setMetadataNamespace

      public HeaderToMetadata.KeyValuePair.Builder setMetadataNamespace(String value)
       The namespace — if this is empty, the filter's namespace will be used.
       
      string metadata_namespace = 1;
      Parameters:
      value - The metadataNamespace to set.
      Returns:
      This builder for chaining.
    • clearMetadataNamespace

      public HeaderToMetadata.KeyValuePair.Builder clearMetadataNamespace()
       The namespace — if this is empty, the filter's namespace will be used.
       
      string metadata_namespace = 1;
      Returns:
      This builder for chaining.
    • setMetadataNamespaceBytes

      public HeaderToMetadata.KeyValuePair.Builder setMetadataNamespaceBytes(com.google.protobuf.ByteString value)
       The namespace — if this is empty, the filter's namespace will be used.
       
      string metadata_namespace = 1;
      Parameters:
      value - The bytes for metadataNamespace to set.
      Returns:
      This builder for chaining.
    • getKey

      public String getKey()
       The key to use within the namespace.
       
      string key = 2 [(.validate.rules) = { ... }
      Specified by:
      getKey in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       The key to use within the namespace.
       
      string key = 2 [(.validate.rules) = { ... }
      Specified by:
      getKeyBytes in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The bytes for key.
    • setKey

       The key to use within the namespace.
       
      string key = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

       The key to use within the namespace.
       
      string key = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setKeyBytes

      public HeaderToMetadata.KeyValuePair.Builder setKeyBytes(com.google.protobuf.ByteString value)
       The key to use within the namespace.
       
      string key = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       The value to pair with the given key.
      
       When used for on_present case, if value is non-empty it'll be used instead
       of the header value. If both are empty, the header value is used as-is.
      
       When used for on_missing case, a non-empty value must be provided.
       
      string value = 3;
      Specified by:
      hasValue in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public String getValue()
       The value to pair with the given key.
      
       When used for on_present case, if value is non-empty it'll be used instead
       of the header value. If both are empty, the header value is used as-is.
      
       When used for on_missing case, a non-empty value must be provided.
       
      string value = 3;
      Specified by:
      getValue in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The value to pair with the given key.
      
       When used for on_present case, if value is non-empty it'll be used instead
       of the header value. If both are empty, the header value is used as-is.
      
       When used for on_missing case, a non-empty value must be provided.
       
      string value = 3;
      Specified by:
      getValueBytes in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The bytes for value.
    • setValue

       The value to pair with the given key.
      
       When used for on_present case, if value is non-empty it'll be used instead
       of the header value. If both are empty, the header value is used as-is.
      
       When used for on_missing case, a non-empty value must be provided.
       
      string value = 3;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

       The value to pair with the given key.
      
       When used for on_present case, if value is non-empty it'll be used instead
       of the header value. If both are empty, the header value is used as-is.
      
       When used for on_missing case, a non-empty value must be provided.
       
      string value = 3;
      Returns:
      This builder for chaining.
    • setValueBytes

      public HeaderToMetadata.KeyValuePair.Builder setValueBytes(com.google.protobuf.ByteString value)
       The value to pair with the given key.
      
       When used for on_present case, if value is non-empty it'll be used instead
       of the header value. If both are empty, the header value is used as-is.
      
       When used for on_missing case, a non-empty value must be provided.
       
      string value = 3;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • hasRegexValueRewrite

      public boolean hasRegexValueRewrite()
       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the header value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
      Specified by:
      hasRegexValueRewrite in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      Whether the regexValueRewrite field is set.
    • getRegexValueRewrite

      public RegexMatchAndSubstitute getRegexValueRewrite()
       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the header value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
      Specified by:
      getRegexValueRewrite in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The regexValueRewrite.
    • setRegexValueRewrite

       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the header value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
    • setRegexValueRewrite

      public HeaderToMetadata.KeyValuePair.Builder setRegexValueRewrite(RegexMatchAndSubstitute.Builder builderForValue)
       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the header value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
    • mergeRegexValueRewrite

      public HeaderToMetadata.KeyValuePair.Builder mergeRegexValueRewrite(RegexMatchAndSubstitute value)
       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the header value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
    • clearRegexValueRewrite

      public HeaderToMetadata.KeyValuePair.Builder clearRegexValueRewrite()
       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the header value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
    • getRegexValueRewriteBuilder

      public RegexMatchAndSubstitute.Builder getRegexValueRewriteBuilder()
       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the header value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
    • getRegexValueRewriteOrBuilder

      public RegexMatchAndSubstituteOrBuilder getRegexValueRewriteOrBuilder()
       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the header value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
      Specified by:
      getRegexValueRewriteOrBuilder in interface HeaderToMetadata.KeyValuePairOrBuilder
    • getTypeValue

      public int getTypeValue()
       The value's type — defaults to string.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
      Specified by:
      getTypeValue in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public HeaderToMetadata.KeyValuePair.Builder setTypeValue(int value)
       The value's type — defaults to string.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public HeaderToMetadata.ValueType getType()
       The value's type — defaults to string.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
      Specified by:
      getType in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The type.
    • setType

       The value's type — defaults to string.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       The value's type — defaults to string.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • getEncodeValue

      public int getEncodeValue()
       How is the value encoded, default is NONE (not encoded).
       The value will be decoded accordingly before storing to metadata.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
      Specified by:
      getEncodeValue in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The enum numeric value on the wire for encode.
    • setEncodeValue

      public HeaderToMetadata.KeyValuePair.Builder setEncodeValue(int value)
       How is the value encoded, default is NONE (not encoded).
       The value will be decoded accordingly before storing to metadata.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
      Parameters:
      value - The enum numeric value on the wire for encode to set.
      Returns:
      This builder for chaining.
    • getEncode

      public HeaderToMetadata.ValueEncode getEncode()
       How is the value encoded, default is NONE (not encoded).
       The value will be decoded accordingly before storing to metadata.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
      Specified by:
      getEncode in interface HeaderToMetadata.KeyValuePairOrBuilder
      Returns:
      The encode.
    • setEncode

       How is the value encoded, default is NONE (not encoded).
       The value will be decoded accordingly before storing to metadata.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
      Parameters:
      value - The encode to set.
      Returns:
      This builder for chaining.
    • clearEncode

       How is the value encoded, default is NONE (not encoded).
       The value will be decoded accordingly before storing to metadata.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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