public final class CreateConsumerOverrideRequest extends GeneratedMessageV3 implements CreateConsumerOverrideRequestOrBuilder
Request message for CreateConsumerOverride.
Protobuf type google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest
Static Fields
FORCE_FIELD_NUMBER
public static final int FORCE_FIELD_NUMBER
Field Value
FORCE_ONLY_FIELD_NUMBER
public static final int FORCE_ONLY_FIELD_NUMBER
Field Value
OVERRIDE_FIELD_NUMBER
public static final int OVERRIDE_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CreateConsumerOverrideRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CreateConsumerOverrideRequest.Builder newBuilder()
Returns
newBuilder(CreateConsumerOverrideRequest prototype)
public static CreateConsumerOverrideRequest.Builder newBuilder(CreateConsumerOverrideRequest prototype)
Parameter
Returns
public static CreateConsumerOverrideRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateConsumerOverrideRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CreateConsumerOverrideRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateConsumerOverrideRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CreateConsumerOverrideRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateConsumerOverrideRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateConsumerOverrideRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CreateConsumerOverrideRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateConsumerOverrideRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateConsumerOverrideRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CreateConsumerOverrideRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateConsumerOverrideRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CreateConsumerOverrideRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public CreateConsumerOverrideRequest getDefaultInstanceForType()
Returns
getForce()
public boolean getForce()
Whether to force the creation of the quota override.
Setting the force parameter to 'true' ignores all quota safety checks that
would fail the request. QuotaSafetyCheck lists all such validations.
bool force = 3;
Returns
getForceOnly(int index)
public QuotaSafetyCheck getForceOnly(int index)
The list of quota safety checks to ignore before the override mutation.
Unlike 'force' field that ignores all the quota safety checks, the
'force_only' field ignores only the specified checks; other checks are
still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 4;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
getForceOnlyCount()
public int getForceOnlyCount()
The list of quota safety checks to ignore before the override mutation.
Unlike 'force' field that ignores all the quota safety checks, the
'force_only' field ignores only the specified checks; other checks are
still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 4;
Returns
Type | Description |
int | The count of forceOnly.
|
getForceOnlyList()
public List<QuotaSafetyCheck> getForceOnlyList()
The list of quota safety checks to ignore before the override mutation.
Unlike 'force' field that ignores all the quota safety checks, the
'force_only' field ignores only the specified checks; other checks are
still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 4;
Returns
getForceOnlyValue(int index)
public int getForceOnlyValue(int index)
The list of quota safety checks to ignore before the override mutation.
Unlike 'force' field that ignores all the quota safety checks, the
'force_only' field ignores only the specified checks; other checks are
still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 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 forceOnly at the given index.
|
getForceOnlyValueList()
public List<Integer> getForceOnlyValueList()
The list of quota safety checks to ignore before the override mutation.
Unlike 'force' field that ignores all the quota safety checks, the
'force_only' field ignores only the specified checks; other checks are
still enforced. The 'force' and 'force_only' fields cannot both be set.
repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 4;
Returns
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for forceOnly.
|
getOverride()
public QuotaOverride getOverride()
The override to create.
.google.api.serviceusage.v1beta1.QuotaOverride override = 2;
Returns
getOverrideOrBuilder()
public QuotaOverrideOrBuilder getOverrideOrBuilder()
The override to create.
.google.api.serviceusage.v1beta1.QuotaOverride override = 2;
Returns
getParent()
public String getParent()
The resource name of the parent quota limit, returned by a
ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
An example name would be:
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion
string parent = 1;
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
The resource name of the parent quota limit, returned by a
ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
An example name would be:
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion
string parent = 1;
Returns
getParserForType()
public Parser<CreateConsumerOverrideRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasOverride()
public boolean hasOverride()
The override to create.
.google.api.serviceusage.v1beta1.QuotaOverride override = 2;
Returns
Type | Description |
boolean | Whether the override field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CreateConsumerOverrideRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateConsumerOverrideRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CreateConsumerOverrideRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions