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

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

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

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

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

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

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

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

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

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

      Specified by:
      getValueTypeCase in interface PayloadToMetadata.KeyValuePairOrBuilder
    • clearValueType

      public PayloadToMetadata.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 PayloadToMetadata.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 PayloadToMetadata.KeyValuePairOrBuilder
      Returns:
      The bytes for metadataNamespace.
    • setMetadataNamespace

      public PayloadToMetadata.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 PayloadToMetadata.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 PayloadToMetadata.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 PayloadToMetadata.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 PayloadToMetadata.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 PayloadToMetadata.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 field value. If both are empty, the field 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 PayloadToMetadata.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 field value. If both are empty, the field 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 PayloadToMetadata.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 field value. If both are empty, the field 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 PayloadToMetadata.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 field value. If both are empty, the field 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 field value. If both are empty, the field 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 PayloadToMetadata.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 field value. If both are empty, the field 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 field 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 PayloadToMetadata.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 field 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 PayloadToMetadata.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 field value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
    • setRegexValueRewrite

      public PayloadToMetadata.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 field value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
    • mergeRegexValueRewrite

      public PayloadToMetadata.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 field value is used as-is.
      
       This is only used for on_present.
       
      .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
    • clearRegexValueRewrite

      public PayloadToMetadata.KeyValuePair.Builder clearRegexValueRewrite()
       If present, the header's value will be matched and substituted with this.
       If there is no match or substitution, the field 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 field 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 field 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 PayloadToMetadata.KeyValuePairOrBuilder
    • getTypeValue

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

      public PayloadToMetadata.KeyValuePair.Builder setTypeValue(int value)
       The value's type — defaults to string.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.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 PayloadToMetadata.ValueType getType()
       The value's type — defaults to string.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
      Specified by:
      getType in interface PayloadToMetadata.KeyValuePairOrBuilder
      Returns:
      The type.
    • setType

       The value's type — defaults to string.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.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.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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