Class CreateQuotaPreferenceRequest (0.12.0)

public final class CreateQuotaPreferenceRequest extends GeneratedMessageV3 implements CreateQuotaPreferenceRequestOrBuilder

Message for creating a QuotaPreference

Protobuf type google.api.cloudquotas.v1.CreateQuotaPreferenceRequest

Static Fields

IGNORE_SAFETY_CHECKS_FIELD_NUMBER

public static final int IGNORE_SAFETY_CHECKS_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

QUOTA_PREFERENCE_FIELD_NUMBER

public static final int QUOTA_PREFERENCE_FIELD_NUMBER
Field Value
Type Description
int

QUOTA_PREFERENCE_ID_FIELD_NUMBER

public static final int QUOTA_PREFERENCE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateQuotaPreferenceRequest getDefaultInstance()
Returns
Type Description
CreateQuotaPreferenceRequest

getDescriptor()

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

newBuilder()

public static CreateQuotaPreferenceRequest.Builder newBuilder()
Returns
Type Description
CreateQuotaPreferenceRequest.Builder

newBuilder(CreateQuotaPreferenceRequest prototype)

public static CreateQuotaPreferenceRequest.Builder newBuilder(CreateQuotaPreferenceRequest prototype)
Parameter
Name Description
prototype CreateQuotaPreferenceRequest
Returns
Type Description
CreateQuotaPreferenceRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateQuotaPreferenceRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateQuotaPreferenceRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateQuotaPreferenceRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateQuotaPreferenceRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateQuotaPreferenceRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateQuotaPreferenceRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateQuotaPreferenceRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateQuotaPreferenceRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateQuotaPreferenceRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateQuotaPreferenceRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateQuotaPreferenceRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateQuotaPreferenceRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateQuotaPreferenceRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateQuotaPreferenceRequest> parser()
Returns
Type Description
Parser<CreateQuotaPreferenceRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateQuotaPreferenceRequest getDefaultInstanceForType()
Returns
Type Description
CreateQuotaPreferenceRequest

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 = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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 = 4;

Returns
Type Description
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 = 4;

Returns
Type Description
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 = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
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 = 4;

Returns
Type Description
List<Integer>

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

getParent()

public String getParent()

Required. Value for parent.

Example: projects/123/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

Example: projects/123/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateQuotaPreferenceRequest> getParserForType()
Returns
Type Description
Parser<CreateQuotaPreferenceRequest>
Overrides

getQuotaPreference()

public QuotaPreference getQuotaPreference()

Required. The resource being created

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

Returns
Type Description
QuotaPreference

The quotaPreference.

getQuotaPreferenceId()

public String getQuotaPreferenceId()

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The quotaPreferenceId.

getQuotaPreferenceIdBytes()

public ByteString getQuotaPreferenceIdBytes()

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for quotaPreferenceId.

getQuotaPreferenceOrBuilder()

public QuotaPreferenceOrBuilder getQuotaPreferenceOrBuilder()

Required. The resource being created

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

Returns
Type Description
QuotaPreferenceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasQuotaPreference()

public boolean hasQuotaPreference()

Required. The resource being created

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

Returns
Type Description
boolean

Whether the quotaPreference field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateQuotaPreferenceRequest.Builder newBuilderForType()
Returns
Type Description
CreateQuotaPreferenceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateQuotaPreferenceRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateQuotaPreferenceRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateQuotaPreferenceRequest.Builder toBuilder()
Returns
Type Description
CreateQuotaPreferenceRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException