Package com.google.bigtable.v2
Class RateLimitInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
- com.google.bigtable.v2.RateLimitInfo.Builder
-
- All Implemented Interfaces:
RateLimitInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RateLimitInfo
public static final class RateLimitInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder> implements RateLimitInfoOrBuilder
Information about how client should adjust the load to Bigtable.
Protobuf typegoogle.bigtable.v2.RateLimitInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RateLimitInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RateLimitInfo
build()
RateLimitInfo
buildPartial()
RateLimitInfo.Builder
clear()
RateLimitInfo.Builder
clearFactor()
If it has been at least one `period` since the last load adjustment, the client should multiply the current load by this value to get the new target load.RateLimitInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RateLimitInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RateLimitInfo.Builder
clearPeriod()
Time that clients should wait before adjusting the target rate again.RateLimitInfo.Builder
clone()
RateLimitInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
double
getFactor()
If it has been at least one `period` since the last load adjustment, the client should multiply the current load by this value to get the new target load.com.google.protobuf.Duration
getPeriod()
Time that clients should wait before adjusting the target rate again.com.google.protobuf.Duration.Builder
getPeriodBuilder()
Time that clients should wait before adjusting the target rate again.com.google.protobuf.DurationOrBuilder
getPeriodOrBuilder()
Time that clients should wait before adjusting the target rate again.boolean
hasPeriod()
Time that clients should wait before adjusting the target rate again.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RateLimitInfo.Builder
mergeFrom(RateLimitInfo other)
RateLimitInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RateLimitInfo.Builder
mergeFrom(com.google.protobuf.Message other)
RateLimitInfo.Builder
mergePeriod(com.google.protobuf.Duration value)
Time that clients should wait before adjusting the target rate again.RateLimitInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RateLimitInfo.Builder
setFactor(double value)
If it has been at least one `period` since the last load adjustment, the client should multiply the current load by this value to get the new target load.RateLimitInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RateLimitInfo.Builder
setPeriod(com.google.protobuf.Duration value)
Time that clients should wait before adjusting the target rate again.RateLimitInfo.Builder
setPeriod(com.google.protobuf.Duration.Builder builderForValue)
Time that clients should wait before adjusting the target rate again.RateLimitInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RateLimitInfo.Builder
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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
clear
public RateLimitInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
getDefaultInstanceForType
public RateLimitInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RateLimitInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RateLimitInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RateLimitInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
setField
public RateLimitInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
clearField
public RateLimitInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
clearOneof
public RateLimitInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
setRepeatedField
public RateLimitInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
addRepeatedField
public RateLimitInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
mergeFrom
public RateLimitInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RateLimitInfo.Builder>
-
mergeFrom
public RateLimitInfo.Builder mergeFrom(RateLimitInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
mergeFrom
public RateLimitInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RateLimitInfo.Builder>
- Throws:
IOException
-
hasPeriod
public boolean hasPeriod()
Time that clients should wait before adjusting the target rate again. If clients adjust rate too frequently, the impact of the previous adjustment may not have been taken into account and may over-throttle or under-throttle. If clients adjust rate too slowly, they will not be responsive to load changes on server side, and may over-throttle or under-throttle.
.google.protobuf.Duration period = 1;
- Specified by:
hasPeriod
in interfaceRateLimitInfoOrBuilder
- Returns:
- Whether the period field is set.
-
getPeriod
public com.google.protobuf.Duration getPeriod()
Time that clients should wait before adjusting the target rate again. If clients adjust rate too frequently, the impact of the previous adjustment may not have been taken into account and may over-throttle or under-throttle. If clients adjust rate too slowly, they will not be responsive to load changes on server side, and may over-throttle or under-throttle.
.google.protobuf.Duration period = 1;
- Specified by:
getPeriod
in interfaceRateLimitInfoOrBuilder
- Returns:
- The period.
-
setPeriod
public RateLimitInfo.Builder setPeriod(com.google.protobuf.Duration value)
Time that clients should wait before adjusting the target rate again. If clients adjust rate too frequently, the impact of the previous adjustment may not have been taken into account and may over-throttle or under-throttle. If clients adjust rate too slowly, they will not be responsive to load changes on server side, and may over-throttle or under-throttle.
.google.protobuf.Duration period = 1;
-
setPeriod
public RateLimitInfo.Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue)
Time that clients should wait before adjusting the target rate again. If clients adjust rate too frequently, the impact of the previous adjustment may not have been taken into account and may over-throttle or under-throttle. If clients adjust rate too slowly, they will not be responsive to load changes on server side, and may over-throttle or under-throttle.
.google.protobuf.Duration period = 1;
-
mergePeriod
public RateLimitInfo.Builder mergePeriod(com.google.protobuf.Duration value)
Time that clients should wait before adjusting the target rate again. If clients adjust rate too frequently, the impact of the previous adjustment may not have been taken into account and may over-throttle or under-throttle. If clients adjust rate too slowly, they will not be responsive to load changes on server side, and may over-throttle or under-throttle.
.google.protobuf.Duration period = 1;
-
clearPeriod
public RateLimitInfo.Builder clearPeriod()
Time that clients should wait before adjusting the target rate again. If clients adjust rate too frequently, the impact of the previous adjustment may not have been taken into account and may over-throttle or under-throttle. If clients adjust rate too slowly, they will not be responsive to load changes on server side, and may over-throttle or under-throttle.
.google.protobuf.Duration period = 1;
-
getPeriodBuilder
public com.google.protobuf.Duration.Builder getPeriodBuilder()
Time that clients should wait before adjusting the target rate again. If clients adjust rate too frequently, the impact of the previous adjustment may not have been taken into account and may over-throttle or under-throttle. If clients adjust rate too slowly, they will not be responsive to load changes on server side, and may over-throttle or under-throttle.
.google.protobuf.Duration period = 1;
-
getPeriodOrBuilder
public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder()
Time that clients should wait before adjusting the target rate again. If clients adjust rate too frequently, the impact of the previous adjustment may not have been taken into account and may over-throttle or under-throttle. If clients adjust rate too slowly, they will not be responsive to load changes on server side, and may over-throttle or under-throttle.
.google.protobuf.Duration period = 1;
- Specified by:
getPeriodOrBuilder
in interfaceRateLimitInfoOrBuilder
-
getFactor
public double getFactor()
If it has been at least one `period` since the last load adjustment, the client should multiply the current load by this value to get the new target load. For example, if the current load is 100 and `factor` is 0.8, the new target load should be 80. After adjusting, the client should ignore `factor` until another `period` has passed. The client can measure its load using any unit that's comparable over time For example, QPS can be used as long as each request involves a similar amount of work.
double factor = 2;
- Specified by:
getFactor
in interfaceRateLimitInfoOrBuilder
- Returns:
- The factor.
-
setFactor
public RateLimitInfo.Builder setFactor(double value)
If it has been at least one `period` since the last load adjustment, the client should multiply the current load by this value to get the new target load. For example, if the current load is 100 and `factor` is 0.8, the new target load should be 80. After adjusting, the client should ignore `factor` until another `period` has passed. The client can measure its load using any unit that's comparable over time For example, QPS can be used as long as each request involves a similar amount of work.
double factor = 2;
- Parameters:
value
- The factor to set.- Returns:
- This builder for chaining.
-
clearFactor
public RateLimitInfo.Builder clearFactor()
If it has been at least one `period` since the last load adjustment, the client should multiply the current load by this value to get the new target load. For example, if the current load is 100 and `factor` is 0.8, the new target load should be 80. After adjusting, the client should ignore `factor` until another `period` has passed. The client can measure its load using any unit that's comparable over time For example, QPS can be used as long as each request involves a similar amount of work.
double factor = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final RateLimitInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
mergeUnknownFields
public final RateLimitInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
-