Class RateLimitConfig.Action.MetaData.Builder

    • 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<RateLimitConfig.Action.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<RateLimitConfig.Action.MetaData.Builder>
      • getDefaultInstanceForType

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

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

        public RateLimitConfig.Action.MetaData buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RateLimitConfig.Action.MetaData.Builder>
      • getDescriptorKeyBytes

        public com.google.protobuf.ByteString getDescriptorKeyBytes()
         The key to use in the descriptor entry.
         
        string descriptor_key = 1 [(.validate.rules) = { ... }
        Specified by:
        getDescriptorKeyBytes in interface RateLimitConfig.Action.MetaDataOrBuilder
        Returns:
        The bytes for descriptorKey.
      • setDescriptorKey

        public RateLimitConfig.Action.MetaData.Builder setDescriptorKey​(String value)
         The key to use in the descriptor entry.
         
        string descriptor_key = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The descriptorKey to set.
        Returns:
        This builder for chaining.
      • clearDescriptorKey

        public RateLimitConfig.Action.MetaData.Builder clearDescriptorKey()
         The key to use in the descriptor entry.
         
        string descriptor_key = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setDescriptorKeyBytes

        public RateLimitConfig.Action.MetaData.Builder setDescriptorKeyBytes​(com.google.protobuf.ByteString value)
         The key to use in the descriptor entry.
         
        string descriptor_key = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for descriptorKey to set.
        Returns:
        This builder for chaining.
      • hasMetadataKey

        public boolean hasMetadataKey()
         Metadata struct that defines the key and path to retrieve the string value. A match will
         only happen if the value in the metadata is of type string.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }
        Specified by:
        hasMetadataKey in interface RateLimitConfig.Action.MetaDataOrBuilder
        Returns:
        Whether the metadataKey field is set.
      • getMetadataKey

        public MetadataKey getMetadataKey()
         Metadata struct that defines the key and path to retrieve the string value. A match will
         only happen if the value in the metadata is of type string.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }
        Specified by:
        getMetadataKey in interface RateLimitConfig.Action.MetaDataOrBuilder
        Returns:
        The metadataKey.
      • setMetadataKey

        public RateLimitConfig.Action.MetaData.Builder setMetadataKey​(MetadataKey value)
         Metadata struct that defines the key and path to retrieve the string value. A match will
         only happen if the value in the metadata is of type string.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }
      • setMetadataKey

        public RateLimitConfig.Action.MetaData.Builder setMetadataKey​(MetadataKey.Builder builderForValue)
         Metadata struct that defines the key and path to retrieve the string value. A match will
         only happen if the value in the metadata is of type string.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }
      • mergeMetadataKey

        public RateLimitConfig.Action.MetaData.Builder mergeMetadataKey​(MetadataKey value)
         Metadata struct that defines the key and path to retrieve the string value. A match will
         only happen if the value in the metadata is of type string.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }
      • clearMetadataKey

        public RateLimitConfig.Action.MetaData.Builder clearMetadataKey()
         Metadata struct that defines the key and path to retrieve the string value. A match will
         only happen if the value in the metadata is of type string.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }
      • getMetadataKeyBuilder

        public MetadataKey.Builder getMetadataKeyBuilder()
         Metadata struct that defines the key and path to retrieve the string value. A match will
         only happen if the value in the metadata is of type string.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }
      • getDefaultValue

        public String getDefaultValue()
         An optional value to use if ``metadata_key`` is empty. If not set and
         no value is present under the metadata_key then no descriptor is generated.
         
        string default_value = 3;
        Specified by:
        getDefaultValue in interface RateLimitConfig.Action.MetaDataOrBuilder
        Returns:
        The defaultValue.
      • getDefaultValueBytes

        public com.google.protobuf.ByteString getDefaultValueBytes()
         An optional value to use if ``metadata_key`` is empty. If not set and
         no value is present under the metadata_key then no descriptor is generated.
         
        string default_value = 3;
        Specified by:
        getDefaultValueBytes in interface RateLimitConfig.Action.MetaDataOrBuilder
        Returns:
        The bytes for defaultValue.
      • setDefaultValue

        public RateLimitConfig.Action.MetaData.Builder setDefaultValue​(String value)
         An optional value to use if ``metadata_key`` is empty. If not set and
         no value is present under the metadata_key then no descriptor is generated.
         
        string default_value = 3;
        Parameters:
        value - The defaultValue to set.
        Returns:
        This builder for chaining.
      • clearDefaultValue

        public RateLimitConfig.Action.MetaData.Builder clearDefaultValue()
         An optional value to use if ``metadata_key`` is empty. If not set and
         no value is present under the metadata_key then no descriptor is generated.
         
        string default_value = 3;
        Returns:
        This builder for chaining.
      • setDefaultValueBytes

        public RateLimitConfig.Action.MetaData.Builder setDefaultValueBytes​(com.google.protobuf.ByteString value)
         An optional value to use if ``metadata_key`` is empty. If not set and
         no value is present under the metadata_key then no descriptor is generated.
         
        string default_value = 3;
        Parameters:
        value - The bytes for defaultValue to set.
        Returns:
        This builder for chaining.
      • getSourceValue

        public int getSourceValue()
         Source of metadata
         
        .envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Action.MetaData.Source source = 4 [(.validate.rules) = { ... }
        Specified by:
        getSourceValue in interface RateLimitConfig.Action.MetaDataOrBuilder
        Returns:
        The enum numeric value on the wire for source.
      • setSourceValue

        public RateLimitConfig.Action.MetaData.Builder setSourceValue​(int value)
         Source of metadata
         
        .envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Action.MetaData.Source source = 4 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for source to set.
        Returns:
        This builder for chaining.
      • clearSource

        public RateLimitConfig.Action.MetaData.Builder clearSource()
         Source of metadata
         
        .envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Action.MetaData.Source source = 4 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.