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

public static final class PayloadToMetadata.Rule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder> implements PayloadToMetadata.RuleOrBuilder
 A Rule defines what metadata to apply when a field is present or missing.
 [#next-free-field: 6]
 
Protobuf type envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule
  • 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.Rule.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.Rule.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.Rule.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public PayloadToMetadata.Rule.MatchSpecifierCase getMatchSpecifierCase()
      Specified by:
      getMatchSpecifierCase in interface PayloadToMetadata.RuleOrBuilder
    • clearMatchSpecifier

      public PayloadToMetadata.Rule.Builder clearMatchSpecifier()
    • hasMethodName

      public boolean hasMethodName()
       If specified, the route must exactly match the request method name. As a special case,
       an empty string matches any request method name.
       
      string method_name = 1;
      Specified by:
      hasMethodName in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      Whether the methodName field is set.
    • getMethodName

      public String getMethodName()
       If specified, the route must exactly match the request method name. As a special case,
       an empty string matches any request method name.
       
      string method_name = 1;
      Specified by:
      getMethodName in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      The methodName.
    • getMethodNameBytes

      public com.google.protobuf.ByteString getMethodNameBytes()
       If specified, the route must exactly match the request method name. As a special case,
       an empty string matches any request method name.
       
      string method_name = 1;
      Specified by:
      getMethodNameBytes in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      The bytes for methodName.
    • setMethodName

      public PayloadToMetadata.Rule.Builder setMethodName(String value)
       If specified, the route must exactly match the request method name. As a special case,
       an empty string matches any request method name.
       
      string method_name = 1;
      Parameters:
      value - The methodName to set.
      Returns:
      This builder for chaining.
    • clearMethodName

      public PayloadToMetadata.Rule.Builder clearMethodName()
       If specified, the route must exactly match the request method name. As a special case,
       an empty string matches any request method name.
       
      string method_name = 1;
      Returns:
      This builder for chaining.
    • setMethodNameBytes

      public PayloadToMetadata.Rule.Builder setMethodNameBytes(com.google.protobuf.ByteString value)
       If specified, the route must exactly match the request method name. As a special case,
       an empty string matches any request method name.
       
      string method_name = 1;
      Parameters:
      value - The bytes for methodName to set.
      Returns:
      This builder for chaining.
    • hasServiceName

      public boolean hasServiceName()
       If specified, the route must have the service name as the request method name prefix.
       As a special case, an empty string matches any service name. Only relevant when service
       multiplexing.
       
      string service_name = 2;
      Specified by:
      hasServiceName in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      Whether the serviceName field is set.
    • getServiceName

      public String getServiceName()
       If specified, the route must have the service name as the request method name prefix.
       As a special case, an empty string matches any service name. Only relevant when service
       multiplexing.
       
      string service_name = 2;
      Specified by:
      getServiceName in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       If specified, the route must have the service name as the request method name prefix.
       As a special case, an empty string matches any service name. Only relevant when service
       multiplexing.
       
      string service_name = 2;
      Specified by:
      getServiceNameBytes in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      The bytes for serviceName.
    • setServiceName

      public PayloadToMetadata.Rule.Builder setServiceName(String value)
       If specified, the route must have the service name as the request method name prefix.
       As a special case, an empty string matches any service name. Only relevant when service
       multiplexing.
       
      string service_name = 2;
      Parameters:
      value - The serviceName to set.
      Returns:
      This builder for chaining.
    • clearServiceName

      public PayloadToMetadata.Rule.Builder clearServiceName()
       If specified, the route must have the service name as the request method name prefix.
       As a special case, an empty string matches any service name. Only relevant when service
       multiplexing.
       
      string service_name = 2;
      Returns:
      This builder for chaining.
    • setServiceNameBytes

      public PayloadToMetadata.Rule.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       If specified, the route must have the service name as the request method name prefix.
       As a special case, an empty string matches any service name. Only relevant when service
       multiplexing.
       
      string service_name = 2;
      Parameters:
      value - The bytes for serviceName to set.
      Returns:
      This builder for chaining.
    • hasFieldSelector

      public boolean hasFieldSelector()
       Specifies that a match will be performed on the value of a field.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }
      Specified by:
      hasFieldSelector in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      Whether the fieldSelector field is set.
    • getFieldSelector

      public PayloadToMetadata.FieldSelector getFieldSelector()
       Specifies that a match will be performed on the value of a field.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }
      Specified by:
      getFieldSelector in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      The fieldSelector.
    • setFieldSelector

       Specifies that a match will be performed on the value of a field.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }
    • setFieldSelector

       Specifies that a match will be performed on the value of a field.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }
    • mergeFieldSelector

       Specifies that a match will be performed on the value of a field.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }
    • clearFieldSelector

      public PayloadToMetadata.Rule.Builder clearFieldSelector()
       Specifies that a match will be performed on the value of a field.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }
    • getFieldSelectorBuilder

      public PayloadToMetadata.FieldSelector.Builder getFieldSelectorBuilder()
       Specifies that a match will be performed on the value of a field.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }
    • getFieldSelectorOrBuilder

      public PayloadToMetadata.FieldSelectorOrBuilder getFieldSelectorOrBuilder()
       Specifies that a match will be performed on the value of a field.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }
      Specified by:
      getFieldSelectorOrBuilder in interface PayloadToMetadata.RuleOrBuilder
    • hasOnPresent

      public boolean hasOnPresent()
       If the field is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;
      Specified by:
      hasOnPresent in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      Whether the onPresent field is set.
    • getOnPresent

      public PayloadToMetadata.KeyValuePair getOnPresent()
       If the field is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;
      Specified by:
      getOnPresent in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      The onPresent.
    • setOnPresent

       If the field is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;
    • setOnPresent

       If the field is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;
    • mergeOnPresent

       If the field is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;
    • clearOnPresent

      public PayloadToMetadata.Rule.Builder clearOnPresent()
       If the field is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;
    • getOnPresentBuilder

      public PayloadToMetadata.KeyValuePair.Builder getOnPresentBuilder()
       If the field is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;
    • getOnPresentOrBuilder

      public PayloadToMetadata.KeyValuePairOrBuilder getOnPresentOrBuilder()
       If the field is present, apply this metadata KeyValuePair.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;
      Specified by:
      getOnPresentOrBuilder in interface PayloadToMetadata.RuleOrBuilder
    • hasOnMissing

      public boolean hasOnMissing()
       If the field is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set, since it'll be used in lieu
       of the missing field value.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;
      Specified by:
      hasOnMissing in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      Whether the onMissing field is set.
    • getOnMissing

      public PayloadToMetadata.KeyValuePair getOnMissing()
       If the field is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set, since it'll be used in lieu
       of the missing field value.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;
      Specified by:
      getOnMissing in interface PayloadToMetadata.RuleOrBuilder
      Returns:
      The onMissing.
    • setOnMissing

       If the field is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set, since it'll be used in lieu
       of the missing field value.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;
    • setOnMissing

       If the field is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set, since it'll be used in lieu
       of the missing field value.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;
    • mergeOnMissing

       If the field is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set, since it'll be used in lieu
       of the missing field value.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;
    • clearOnMissing

      public PayloadToMetadata.Rule.Builder clearOnMissing()
       If the field is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set, since it'll be used in lieu
       of the missing field value.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;
    • getOnMissingBuilder

      public PayloadToMetadata.KeyValuePair.Builder getOnMissingBuilder()
       If the field is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set, since it'll be used in lieu
       of the missing field value.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;
    • getOnMissingOrBuilder

      public PayloadToMetadata.KeyValuePairOrBuilder getOnMissingOrBuilder()
       If the field is missing, apply this metadata KeyValuePair.
      
       The value in the KeyValuePair must be set, since it'll be used in lieu
       of the missing field value.
       
      .envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;
      Specified by:
      getOnMissingOrBuilder in interface PayloadToMetadata.RuleOrBuilder
    • setUnknownFields

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

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