Class QuotaAdjusterSettings.Builder (0.24.0)

public static final class QuotaAdjusterSettings.Builder extends GeneratedMessageV3.Builder<QuotaAdjusterSettings.Builder> implements QuotaAdjusterSettingsOrBuilder

The QuotaAdjusterSettings resource defines the settings for the Quota Adjuster.

Protobuf type google.api.cloudquotas.v1beta.QuotaAdjusterSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QuotaAdjusterSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

build()

public QuotaAdjusterSettings build()
Returns
Type Description
QuotaAdjusterSettings

buildPartial()

public QuotaAdjusterSettings buildPartial()
Returns
Type Description
QuotaAdjusterSettings

clear()

public QuotaAdjusterSettings.Builder clear()
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

clearEnablement()

public QuotaAdjusterSettings.Builder clearEnablement()

Required. The configured value of the enablement at the given resource.

.google.api.cloudquotas.v1beta.QuotaAdjusterSettings.Enablement enablement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

clearEtag()

public QuotaAdjusterSettings.Builder clearEtag()

Optional. The current etag of the QuotaAdjusterSettings. If an etag is provided on update and does not match the current server's etag of the QuotaAdjusterSettings, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public QuotaAdjusterSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

clearName()

public QuotaAdjusterSettings.Builder clearName()

Identifier. Name of the config would be of the format: projects/12345/locations/global/quotaAdjusterSettings

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaAdjusterSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

clearUpdateTime()

public QuotaAdjusterSettings.Builder clearUpdateTime()

Output only. The timestamp when the QuotaAdjusterSettings was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuotaAdjusterSettings.Builder

clone()

public QuotaAdjusterSettings.Builder clone()
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

getDefaultInstanceForType()

public QuotaAdjusterSettings getDefaultInstanceForType()
Returns
Type Description
QuotaAdjusterSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnablement()

public QuotaAdjusterSettings.Enablement getEnablement()

Required. The configured value of the enablement at the given resource.

.google.api.cloudquotas.v1beta.QuotaAdjusterSettings.Enablement enablement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuotaAdjusterSettings.Enablement

The enablement.

getEnablementValue()

public int getEnablementValue()

Required. The configured value of the enablement at the given resource.

.google.api.cloudquotas.v1beta.QuotaAdjusterSettings.Enablement enablement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for enablement.

getEtag()

public String getEtag()

Optional. The current etag of the QuotaAdjusterSettings. If an etag is provided on update and does not match the current server's etag of the QuotaAdjusterSettings, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. The current etag of the QuotaAdjusterSettings. If an etag is provided on update and does not match the current server's etag of the QuotaAdjusterSettings, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Identifier. Name of the config would be of the format: projects/12345/locations/global/quotaAdjusterSettings

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the config would be of the format: projects/12345/locations/global/quotaAdjusterSettings

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the QuotaAdjusterSettings was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the QuotaAdjusterSettings was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the QuotaAdjusterSettings was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the QuotaAdjusterSettings was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QuotaAdjusterSettings other)

public QuotaAdjusterSettings.Builder mergeFrom(QuotaAdjusterSettings other)
Parameter
Name Description
other QuotaAdjusterSettings
Returns
Type Description
QuotaAdjusterSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QuotaAdjusterSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QuotaAdjusterSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotaAdjusterSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

mergeUpdateTime(Timestamp value)

public QuotaAdjusterSettings.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the QuotaAdjusterSettings was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
QuotaAdjusterSettings.Builder

setEnablement(QuotaAdjusterSettings.Enablement value)

public QuotaAdjusterSettings.Builder setEnablement(QuotaAdjusterSettings.Enablement value)

Required. The configured value of the enablement at the given resource.

.google.api.cloudquotas.v1beta.QuotaAdjusterSettings.Enablement enablement = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QuotaAdjusterSettings.Enablement

The enablement to set.

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

setEnablementValue(int value)

public QuotaAdjusterSettings.Builder setEnablementValue(int value)

Required. The configured value of the enablement at the given resource.

.google.api.cloudquotas.v1beta.QuotaAdjusterSettings.Enablement enablement = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for enablement to set.

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

setEtag(String value)

public QuotaAdjusterSettings.Builder setEtag(String value)

Optional. The current etag of the QuotaAdjusterSettings. If an etag is provided on update and does not match the current server's etag of the QuotaAdjusterSettings, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public QuotaAdjusterSettings.Builder setEtagBytes(ByteString value)

Optional. The current etag of the QuotaAdjusterSettings. If an etag is provided on update and does not match the current server's etag of the QuotaAdjusterSettings, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public QuotaAdjusterSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

setName(String value)

public QuotaAdjusterSettings.Builder setName(String value)

Identifier. Name of the config would be of the format: projects/12345/locations/global/quotaAdjusterSettings

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public QuotaAdjusterSettings.Builder setNameBytes(ByteString value)

Identifier. Name of the config would be of the format: projects/12345/locations/global/quotaAdjusterSettings

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
QuotaAdjusterSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QuotaAdjusterSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QuotaAdjusterSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QuotaAdjusterSettings.Builder
Overrides

setUpdateTime(Timestamp value)

public QuotaAdjusterSettings.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the QuotaAdjusterSettings was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
QuotaAdjusterSettings.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public QuotaAdjusterSettings.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the QuotaAdjusterSettings was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
QuotaAdjusterSettings.Builder