Class RateLimit.HitsAddend.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
io.envoyproxy.envoy.config.route.v3.RateLimit.HitsAddend.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimit.HitsAddendOrBuilder,Cloneable
- Enclosing class:
- RateLimit.HitsAddend
public static final class RateLimit.HitsAddend.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
implements RateLimit.HitsAddendOrBuilder
Protobuf type
envoy.config.route.v3.RateLimit.HitsAddend-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Substitution format string to extract the number of hits to add to the rate limit descriptor.Fixed number of hits to add to the rate limit descriptor.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSubstitution format string to extract the number of hits to add to the rate limit descriptor.com.google.protobuf.ByteStringSubstitution format string to extract the number of hits to add to the rate limit descriptor.com.google.protobuf.UInt64ValueFixed number of hits to add to the rate limit descriptor.com.google.protobuf.UInt64Value.BuilderFixed number of hits to add to the rate limit descriptor.com.google.protobuf.UInt64ValueOrBuilderFixed number of hits to add to the rate limit descriptor.booleanFixed number of hits to add to the rate limit descriptor.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RateLimit.HitsAddend other) mergeNumber(com.google.protobuf.UInt64Value value) Fixed number of hits to add to the rate limit descriptor.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Substitution format string to extract the number of hits to add to the rate limit descriptor.setFormatBytes(com.google.protobuf.ByteString value) Substitution format string to extract the number of hits to add to the rate limit descriptor.setNumber(com.google.protobuf.UInt64Value value) Fixed number of hits to add to the rate limit descriptor.setNumber(com.google.protobuf.UInt64Value.Builder builderForValue) Fixed number of hits to add to the rate limit descriptor.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
setField
public RateLimit.HitsAddend.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
clearField
public RateLimit.HitsAddend.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
clearOneof
public RateLimit.HitsAddend.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
setRepeatedField
public RateLimit.HitsAddend.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
addRepeatedField
public RateLimit.HitsAddend.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimit.HitsAddend.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
mergeFrom
public RateLimit.HitsAddend.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimit.HitsAddend.Builder>- Throws:
IOException
-
hasNumber
public boolean hasNumber()Fixed number of hits to add to the rate limit descriptor. One of the ``number`` or ``format`` fields should be set but not both.
.google.protobuf.UInt64Value number = 1 [(.validate.rules) = { ... }- Specified by:
hasNumberin interfaceRateLimit.HitsAddendOrBuilder- Returns:
- Whether the number field is set.
-
getNumber
public com.google.protobuf.UInt64Value getNumber()Fixed number of hits to add to the rate limit descriptor. One of the ``number`` or ``format`` fields should be set but not both.
.google.protobuf.UInt64Value number = 1 [(.validate.rules) = { ... }- Specified by:
getNumberin interfaceRateLimit.HitsAddendOrBuilder- Returns:
- The number.
-
setNumber
Fixed number of hits to add to the rate limit descriptor. One of the ``number`` or ``format`` fields should be set but not both.
.google.protobuf.UInt64Value number = 1 [(.validate.rules) = { ... } -
setNumber
public RateLimit.HitsAddend.Builder setNumber(com.google.protobuf.UInt64Value.Builder builderForValue) Fixed number of hits to add to the rate limit descriptor. One of the ``number`` or ``format`` fields should be set but not both.
.google.protobuf.UInt64Value number = 1 [(.validate.rules) = { ... } -
mergeNumber
Fixed number of hits to add to the rate limit descriptor. One of the ``number`` or ``format`` fields should be set but not both.
.google.protobuf.UInt64Value number = 1 [(.validate.rules) = { ... } -
clearNumber
Fixed number of hits to add to the rate limit descriptor. One of the ``number`` or ``format`` fields should be set but not both.
.google.protobuf.UInt64Value number = 1 [(.validate.rules) = { ... } -
getNumberBuilder
public com.google.protobuf.UInt64Value.Builder getNumberBuilder()Fixed number of hits to add to the rate limit descriptor. One of the ``number`` or ``format`` fields should be set but not both.
.google.protobuf.UInt64Value number = 1 [(.validate.rules) = { ... } -
getNumberOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getNumberOrBuilder()Fixed number of hits to add to the rate limit descriptor. One of the ``number`` or ``format`` fields should be set but not both.
.google.protobuf.UInt64Value number = 1 [(.validate.rules) = { ... }- Specified by:
getNumberOrBuilderin interfaceRateLimit.HitsAddendOrBuilder
-
getFormat
Substitution format string to extract the number of hits to add to the rate limit descriptor. The same :ref:`format specifier <config_access_log_format>` as used for :ref:`HTTP access logging <config_access_log>` applies here. .. note:: The format string must contains only single valid substitution field. If the format string not meets the requirement, the configuration will be rejected. The substitution field should generates a non-negative number or string representation of a non-negative number. The value of the non-negative number should be less than or equal to 1000000000 like the ``number`` field. If the output of the substitution field not meet the requirement, this will be treated as an error and the current descriptor will be ignored. For example, the ``%BYTES_RECEIVED%`` format string will be replaced with the number of bytes received in the request. One of the ``number`` or ``format`` fields should be set but not both.
string format = 2 [(.validate.rules) = { ... }- Specified by:
getFormatin interfaceRateLimit.HitsAddendOrBuilder- Returns:
- The format.
-
getFormatBytes
public com.google.protobuf.ByteString getFormatBytes()Substitution format string to extract the number of hits to add to the rate limit descriptor. The same :ref:`format specifier <config_access_log_format>` as used for :ref:`HTTP access logging <config_access_log>` applies here. .. note:: The format string must contains only single valid substitution field. If the format string not meets the requirement, the configuration will be rejected. The substitution field should generates a non-negative number or string representation of a non-negative number. The value of the non-negative number should be less than or equal to 1000000000 like the ``number`` field. If the output of the substitution field not meet the requirement, this will be treated as an error and the current descriptor will be ignored. For example, the ``%BYTES_RECEIVED%`` format string will be replaced with the number of bytes received in the request. One of the ``number`` or ``format`` fields should be set but not both.
string format = 2 [(.validate.rules) = { ... }- Specified by:
getFormatBytesin interfaceRateLimit.HitsAddendOrBuilder- Returns:
- The bytes for format.
-
setFormat
Substitution format string to extract the number of hits to add to the rate limit descriptor. The same :ref:`format specifier <config_access_log_format>` as used for :ref:`HTTP access logging <config_access_log>` applies here. .. note:: The format string must contains only single valid substitution field. If the format string not meets the requirement, the configuration will be rejected. The substitution field should generates a non-negative number or string representation of a non-negative number. The value of the non-negative number should be less than or equal to 1000000000 like the ``number`` field. If the output of the substitution field not meet the requirement, this will be treated as an error and the current descriptor will be ignored. For example, the ``%BYTES_RECEIVED%`` format string will be replaced with the number of bytes received in the request. One of the ``number`` or ``format`` fields should be set but not both.
string format = 2 [(.validate.rules) = { ... }- Parameters:
value- The format to set.- Returns:
- This builder for chaining.
-
clearFormat
Substitution format string to extract the number of hits to add to the rate limit descriptor. The same :ref:`format specifier <config_access_log_format>` as used for :ref:`HTTP access logging <config_access_log>` applies here. .. note:: The format string must contains only single valid substitution field. If the format string not meets the requirement, the configuration will be rejected. The substitution field should generates a non-negative number or string representation of a non-negative number. The value of the non-negative number should be less than or equal to 1000000000 like the ``number`` field. If the output of the substitution field not meet the requirement, this will be treated as an error and the current descriptor will be ignored. For example, the ``%BYTES_RECEIVED%`` format string will be replaced with the number of bytes received in the request. One of the ``number`` or ``format`` fields should be set but not both.
string format = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setFormatBytes
Substitution format string to extract the number of hits to add to the rate limit descriptor. The same :ref:`format specifier <config_access_log_format>` as used for :ref:`HTTP access logging <config_access_log>` applies here. .. note:: The format string must contains only single valid substitution field. If the format string not meets the requirement, the configuration will be rejected. The substitution field should generates a non-negative number or string representation of a non-negative number. The value of the non-negative number should be less than or equal to 1000000000 like the ``number`` field. If the output of the substitution field not meet the requirement, this will be treated as an error and the current descriptor will be ignored. For example, the ``%BYTES_RECEIVED%`` format string will be replaced with the number of bytes received in the request. One of the ``number`` or ``format`` fields should be set but not both.
string format = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for format to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RateLimit.HitsAddend.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-
mergeUnknownFields
public final RateLimit.HitsAddend.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.HitsAddend.Builder>
-