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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitInfobuild()RateLimitInfobuildPartial()RateLimitInfo.Builderclear()RateLimitInfo.BuilderclearFactor()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.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RateLimitInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RateLimitInfo.BuilderclearPeriod()Time that clients should wait before adjusting the target rate again.RateLimitInfo.Builderclone()RateLimitInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()doublegetFactor()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.DurationgetPeriod()Time that clients should wait before adjusting the target rate again.com.google.protobuf.Duration.BuildergetPeriodBuilder()Time that clients should wait before adjusting the target rate again.com.google.protobuf.DurationOrBuildergetPeriodOrBuilder()Time that clients should wait before adjusting the target rate again.booleanhasPeriod()Time that clients should wait before adjusting the target rate again.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RateLimitInfo.BuildermergeFrom(RateLimitInfo other)RateLimitInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RateLimitInfo.BuildermergeFrom(com.google.protobuf.Message other)RateLimitInfo.BuildermergePeriod(com.google.protobuf.Duration value)Time that clients should wait before adjusting the target rate again.RateLimitInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RateLimitInfo.BuildersetFactor(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitInfo.BuildersetPeriod(com.google.protobuf.Duration value)Time that clients should wait before adjusting the target rate again.RateLimitInfo.BuildersetPeriod(com.google.protobuf.Duration.Builder builderForValue)Time that clients should wait before adjusting the target rate again.RateLimitInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RateLimitInfo.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
clear
public RateLimitInfo.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<RateLimitInfo.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<RateLimitInfo.Builder>
-
getDefaultInstanceForType
public RateLimitInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RateLimitInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RateLimitInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RateLimitInfo.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<RateLimitInfo.Builder>
-
setField
public RateLimitInfo.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<RateLimitInfo.Builder>
-
clearField
public RateLimitInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
clearOneof
public RateLimitInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
setRepeatedField
public RateLimitInfo.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<RateLimitInfo.Builder>
-
addRepeatedField
public RateLimitInfo.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<RateLimitInfo.Builder>
-
mergeFrom
public RateLimitInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimitInfo.Builder>
-
mergeFrom
public RateLimitInfo.Builder mergeFrom(RateLimitInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasPeriodin 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:
getPeriodin 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:
getPeriodOrBuilderin 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:
getFactorin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
mergeUnknownFields
public final RateLimitInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitInfo.Builder>
-
-