Class 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 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<PayloadToMetadata.Rule.Builder>
      • clear

        public 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

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

        public PayloadToMetadata.Rule.Builder setFieldSelector​(PayloadToMetadata.FieldSelector value)
         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

        public PayloadToMetadata.Rule.Builder setFieldSelector​(PayloadToMetadata.FieldSelector.Builder builderForValue)
         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

        public PayloadToMetadata.Rule.Builder mergeFieldSelector​(PayloadToMetadata.FieldSelector value)
         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) = { ... }
      • 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.
      • 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;
      • 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

        public PayloadToMetadata.Rule.Builder setOnMissing​(PayloadToMetadata.KeyValuePair value)
         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

        public PayloadToMetadata.Rule.Builder setOnMissing​(PayloadToMetadata.KeyValuePair.Builder builderForValue)
         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

        public PayloadToMetadata.Rule.Builder mergeOnMissing​(PayloadToMetadata.KeyValuePair value)
         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>