Class CreateQuotaPreferenceRequest (0.9.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
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTA_PREFERENCE_FIELD_NUMBER

public static final int QUOTA_PREFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTA_PREFERENCE_ID_FIELD_NUMBER

public static final int QUOTA_PREFERENCE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateQuotaPreferenceRequest getDefaultInstance()
Returns
TypeDescription
CreateQuotaPreferenceRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateQuotaPreferenceRequest prototype)

public static CreateQuotaPreferenceRequest.Builder newBuilder(CreateQuotaPreferenceRequest prototype)
Parameter
NameDescription
prototypeCreateQuotaPreferenceRequest
Returns
TypeDescription
CreateQuotaPreferenceRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CreateQuotaPreferenceRequest getDefaultInstanceForType()
Returns
TypeDescription
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
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 = 4;

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

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateQuotaPreferenceRequest> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
QuotaPreferenceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the quotaPreference 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 CreateQuotaPreferenceRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateQuotaPreferenceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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