Class RateLimitResponse.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RateLimitResponseOrBuilder, Cloneable
    Enclosing class:
    RateLimitResponse

    public static final class RateLimitResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder>
    implements RateLimitResponseOrBuilder
     A response from a ShouldRateLimit call.
     
    Protobuf type envoy.service.ratelimit.v2.RateLimitResponse
    • 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<RateLimitResponse.Builder>
      • clear

        public RateLimitResponse.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<RateLimitResponse.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<RateLimitResponse.Builder>
      • getDefaultInstanceForType

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

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

        public RateLimitResponse buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

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

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

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

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

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

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

        public RateLimitResponse.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<RateLimitResponse.Builder>
      • isInitialized

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

        public RateLimitResponse.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<RateLimitResponse.Builder>
        Throws:
        IOException
      • getOverallCodeValue

        public int getOverallCodeValue()
         The overall response code which takes into account all of the descriptors that were passed
         in the RateLimitRequest message.
         
        .envoy.service.ratelimit.v2.RateLimitResponse.Code overall_code = 1;
        Specified by:
        getOverallCodeValue in interface RateLimitResponseOrBuilder
        Returns:
        The enum numeric value on the wire for overallCode.
      • setOverallCodeValue

        public RateLimitResponse.Builder setOverallCodeValue​(int value)
         The overall response code which takes into account all of the descriptors that were passed
         in the RateLimitRequest message.
         
        .envoy.service.ratelimit.v2.RateLimitResponse.Code overall_code = 1;
        Parameters:
        value - The enum numeric value on the wire for overallCode to set.
        Returns:
        This builder for chaining.
      • getOverallCode

        public RateLimitResponse.Code getOverallCode()
         The overall response code which takes into account all of the descriptors that were passed
         in the RateLimitRequest message.
         
        .envoy.service.ratelimit.v2.RateLimitResponse.Code overall_code = 1;
        Specified by:
        getOverallCode in interface RateLimitResponseOrBuilder
        Returns:
        The overallCode.
      • setOverallCode

        public RateLimitResponse.Builder setOverallCode​(RateLimitResponse.Code value)
         The overall response code which takes into account all of the descriptors that were passed
         in the RateLimitRequest message.
         
        .envoy.service.ratelimit.v2.RateLimitResponse.Code overall_code = 1;
        Parameters:
        value - The overallCode to set.
        Returns:
        This builder for chaining.
      • clearOverallCode

        public RateLimitResponse.Builder clearOverallCode()
         The overall response code which takes into account all of the descriptors that were passed
         in the RateLimitRequest message.
         
        .envoy.service.ratelimit.v2.RateLimitResponse.Code overall_code = 1;
        Returns:
        This builder for chaining.
      • getStatusesList

        public List<RateLimitResponse.DescriptorStatus> getStatusesList()
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
        Specified by:
        getStatusesList in interface RateLimitResponseOrBuilder
      • getStatusesCount

        public int getStatusesCount()
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
        Specified by:
        getStatusesCount in interface RateLimitResponseOrBuilder
      • getStatuses

        public RateLimitResponse.DescriptorStatus getStatuses​(int index)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
        Specified by:
        getStatuses in interface RateLimitResponseOrBuilder
      • setStatuses

        public RateLimitResponse.Builder setStatuses​(int index,
                                                     RateLimitResponse.DescriptorStatus value)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • setStatuses

        public RateLimitResponse.Builder setStatuses​(int index,
                                                     RateLimitResponse.DescriptorStatus.Builder builderForValue)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • addStatuses

        public RateLimitResponse.Builder addStatuses​(RateLimitResponse.DescriptorStatus value)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • addStatuses

        public RateLimitResponse.Builder addStatuses​(int index,
                                                     RateLimitResponse.DescriptorStatus value)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • addStatuses

        public RateLimitResponse.Builder addStatuses​(RateLimitResponse.DescriptorStatus.Builder builderForValue)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • addStatuses

        public RateLimitResponse.Builder addStatuses​(int index,
                                                     RateLimitResponse.DescriptorStatus.Builder builderForValue)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • addAllStatuses

        public RateLimitResponse.Builder addAllStatuses​(Iterable<? extends RateLimitResponse.DescriptorStatus> values)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • clearStatuses

        public RateLimitResponse.Builder clearStatuses()
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • removeStatuses

        public RateLimitResponse.Builder removeStatuses​(int index)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • getStatusesBuilder

        public RateLimitResponse.DescriptorStatus.Builder getStatusesBuilder​(int index)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • getStatusesOrBuilder

        public RateLimitResponse.DescriptorStatusOrBuilder getStatusesOrBuilder​(int index)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
        Specified by:
        getStatusesOrBuilder in interface RateLimitResponseOrBuilder
      • getStatusesOrBuilderList

        public List<? extends RateLimitResponse.DescriptorStatusOrBuilder> getStatusesOrBuilderList()
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
        Specified by:
        getStatusesOrBuilderList in interface RateLimitResponseOrBuilder
      • addStatusesBuilder

        public RateLimitResponse.DescriptorStatus.Builder addStatusesBuilder()
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • addStatusesBuilder

        public RateLimitResponse.DescriptorStatus.Builder addStatusesBuilder​(int index)
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • getStatusesBuilderList

        public List<RateLimitResponse.DescriptorStatus.Builder> getStatusesBuilderList()
         A list of DescriptorStatus messages which matches the length of the descriptor list passed
         in the RateLimitRequest. This can be used by the caller to determine which individual
         descriptors failed and/or what the currently configured limits are for all of them.
         
        repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;
      • getHeadersCount

        public int getHeadersCount()
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getHeadersCount in interface RateLimitResponseOrBuilder
      • getHeaders

        public HeaderValue getHeaders​(int index)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getHeaders in interface RateLimitResponseOrBuilder
      • setHeaders

        public RateLimitResponse.Builder setHeaders​(int index,
                                                    HeaderValue value)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • setHeaders

        public RateLimitResponse.Builder setHeaders​(int index,
                                                    HeaderValue.Builder builderForValue)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • addHeaders

        public RateLimitResponse.Builder addHeaders​(HeaderValue value)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • addHeaders

        public RateLimitResponse.Builder addHeaders​(int index,
                                                    HeaderValue value)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • addHeaders

        public RateLimitResponse.Builder addHeaders​(HeaderValue.Builder builderForValue)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • addHeaders

        public RateLimitResponse.Builder addHeaders​(int index,
                                                    HeaderValue.Builder builderForValue)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • addAllHeaders

        public RateLimitResponse.Builder addAllHeaders​(Iterable<? extends HeaderValue> values)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • clearHeaders

        public RateLimitResponse.Builder clearHeaders()
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • removeHeaders

        public RateLimitResponse.Builder removeHeaders​(int index)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • getHeadersBuilder

        public HeaderValue.Builder getHeadersBuilder​(int index)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • addHeadersBuilder

        public HeaderValue.Builder addHeadersBuilder()
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • addHeadersBuilder

        public HeaderValue.Builder addHeadersBuilder​(int index)
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • getHeadersBuilderList

        public List<HeaderValue.Builder> getHeadersBuilderList()
         A list of headers to add to the response
         
        repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
      • getRequestHeadersToAddCount

        public int getRequestHeadersToAddCount()
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
        Specified by:
        getRequestHeadersToAddCount in interface RateLimitResponseOrBuilder
      • setRequestHeadersToAdd

        public RateLimitResponse.Builder setRequestHeadersToAdd​(int index,
                                                                HeaderValue value)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • setRequestHeadersToAdd

        public RateLimitResponse.Builder setRequestHeadersToAdd​(int index,
                                                                HeaderValue.Builder builderForValue)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • addRequestHeadersToAdd

        public RateLimitResponse.Builder addRequestHeadersToAdd​(HeaderValue value)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • addRequestHeadersToAdd

        public RateLimitResponse.Builder addRequestHeadersToAdd​(int index,
                                                                HeaderValue value)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • addRequestHeadersToAdd

        public RateLimitResponse.Builder addRequestHeadersToAdd​(HeaderValue.Builder builderForValue)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • addRequestHeadersToAdd

        public RateLimitResponse.Builder addRequestHeadersToAdd​(int index,
                                                                HeaderValue.Builder builderForValue)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • addAllRequestHeadersToAdd

        public RateLimitResponse.Builder addAllRequestHeadersToAdd​(Iterable<? extends HeaderValue> values)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • clearRequestHeadersToAdd

        public RateLimitResponse.Builder clearRequestHeadersToAdd()
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • removeRequestHeadersToAdd

        public RateLimitResponse.Builder removeRequestHeadersToAdd​(int index)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • getRequestHeadersToAddBuilder

        public HeaderValue.Builder getRequestHeadersToAddBuilder​(int index)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • addRequestHeadersToAddBuilder

        public HeaderValue.Builder addRequestHeadersToAddBuilder()
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • addRequestHeadersToAddBuilder

        public HeaderValue.Builder addRequestHeadersToAddBuilder​(int index)
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • getRequestHeadersToAddBuilderList

        public List<HeaderValue.Builder> getRequestHeadersToAddBuilderList()
         A list of headers to add to the request when forwarded
         
        repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;
      • setUnknownFields

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

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