Class UpdateQuotaPreferenceRequest (0.3.0)

public final class UpdateQuotaPreferenceRequest extends GeneratedMessageV3 implements UpdateQuotaPreferenceRequestOrBuilder

Message for updating a QuotaPreference

Protobuf type google.api.cloudquotas.v1.UpdateQuotaPreferenceRequest

Static Fields

ALLOW_MISSING_FIELD_NUMBER

public static final int ALLOW_MISSING_FIELD_NUMBER
Field Value
TypeDescription
int

IGNORE_SAFETY_CHECKS_FIELD_NUMBER

public static final int IGNORE_SAFETY_CHECKS_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTA_PREFERENCE_FIELD_NUMBER

public static final int QUOTA_PREFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATE_ONLY_FIELD_NUMBER

public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateQuotaPreferenceRequest getDefaultInstance()
Returns
TypeDescription
UpdateQuotaPreferenceRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UpdateQuotaPreferenceRequest.Builder newBuilder()
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

newBuilder(UpdateQuotaPreferenceRequest prototype)

public static UpdateQuotaPreferenceRequest.Builder newBuilder(UpdateQuotaPreferenceRequest prototype)
Parameter
NameDescription
prototypeUpdateQuotaPreferenceRequest
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

parseDelimitedFrom(InputStream input)

public static UpdateQuotaPreferenceRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateQuotaPreferenceRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UpdateQuotaPreferenceRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateQuotaPreferenceRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateQuotaPreferenceRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateQuotaPreferenceRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateQuotaPreferenceRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateQuotaPreferenceRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UpdateQuotaPreferenceRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateQuotaPreferenceRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UpdateQuotaPreferenceRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateQuotaPreferenceRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateQuotaPreferenceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UpdateQuotaPreferenceRequest> parser()
Returns
TypeDescription
Parser<UpdateQuotaPreferenceRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAllowMissing()

public boolean getAllowMissing()

Optional. If set to true, and the quota preference is not found, a new one will be created. In this situation, update_mask is ignored.

bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateQuotaPreferenceRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateQuotaPreferenceRequest

getIgnoreSafetyChecks(int index)

public QuotaSafetyCheck getIgnoreSafetyChecks(int index)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
QuotaSafetyCheck

The ignoreSafetyChecks at the given index.

getIgnoreSafetyChecksCount()

public int getIgnoreSafetyChecksCount()

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;

Returns
TypeDescription
int

The count of ignoreSafetyChecks.

getIgnoreSafetyChecksList()

public List<QuotaSafetyCheck> getIgnoreSafetyChecksList()

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;

Returns
TypeDescription
List<QuotaSafetyCheck>

A list containing the ignoreSafetyChecks.

getIgnoreSafetyChecksValue(int index)

public int getIgnoreSafetyChecksValue(int index)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of ignoreSafetyChecks at the given index.

getIgnoreSafetyChecksValueList()

public List<Integer> getIgnoreSafetyChecksValueList()

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for ignoreSafetyChecks.

getParserForType()

public Parser<UpdateQuotaPreferenceRequest> getParserForType()
Returns
TypeDescription
Parser<UpdateQuotaPreferenceRequest>
Overrides

getQuotaPreference()

public QuotaPreference getQuotaPreference()

Required. The resource being updated

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QuotaPreference

The quotaPreference.

getQuotaPreferenceOrBuilder()

public QuotaPreferenceOrBuilder getQuotaPreferenceOrBuilder()

Required. The resource being updated

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QuotaPreferenceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. If set to true, validate the request, but do not actually update. Note that a request being valid does not mean that the request is guaranteed to be fulfilled.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The validateOnly.

hasQuotaPreference()

public boolean hasQuotaPreference()

Required. The resource being updated

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the quotaPreference field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UpdateQuotaPreferenceRequest.Builder newBuilderForType()
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateQuotaPreferenceRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UpdateQuotaPreferenceRequest.Builder toBuilder()
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException