public final class QuotaConfig extends GeneratedMessageV3 implements QuotaConfigOrBuilder
The preferred quota configuration.
Protobuf type google.api.cloudquotas.v1.QuotaConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
GRANTED_VALUE_FIELD_NUMBER
public static final int GRANTED_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PREFERRED_VALUE_FIELD_NUMBER
public static final int PREFERRED_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REQUEST_ORIGIN_FIELD_NUMBER
public static final int REQUEST_ORIGIN_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STATE_DETAIL_FIELD_NUMBER
public static final int STATE_DETAIL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRACE_ID_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static QuotaConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static QuotaConfig.Builder newBuilder()
newBuilder(QuotaConfig prototype)
public static QuotaConfig.Builder newBuilder(QuotaConfig prototype)
public static QuotaConfig parseDelimitedFrom(InputStream input)
public static QuotaConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static QuotaConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QuotaConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static QuotaConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QuotaConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QuotaConfig parseFrom(CodedInputStream input)
public static QuotaConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QuotaConfig parseFrom(InputStream input)
public static QuotaConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static QuotaConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static QuotaConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<QuotaConfig> parser()
Methods
containsAnnotations(String key)
public boolean containsAnnotations(String key)
The annotations map for clients to store small amounts of arbitrary data.
Do not put PII or other sensitive information here.
See https://google.aip.dev/128#annotations
map<string, string> annotations = 5;
Parameter |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getAnnotations() (deprecated)
public Map<String,String> getAnnotations()
getAnnotationsCount()
public int getAnnotationsCount()
The annotations map for clients to store small amounts of arbitrary data.
Do not put PII or other sensitive information here.
See https://google.aip.dev/128#annotations
map<string, string> annotations = 5;
Returns |
---|
Type | Description |
int | |
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
The annotations map for clients to store small amounts of arbitrary data.
Do not put PII or other sensitive information here.
See https://google.aip.dev/128#annotations
map<string, string> annotations = 5;
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
The annotations map for clients to store small amounts of arbitrary data.
Do not put PII or other sensitive information here.
See https://google.aip.dev/128#annotations
map<string, string> annotations = 5;
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
The annotations map for clients to store small amounts of arbitrary data.
Do not put PII or other sensitive information here.
See https://google.aip.dev/128#annotations
map<string, string> annotations = 5;
Parameter |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public QuotaConfig getDefaultInstanceForType()
getGrantedValue()
public Int64Value getGrantedValue()
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getGrantedValueOrBuilder()
public Int64ValueOrBuilder getGrantedValueOrBuilder()
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParserForType()
public Parser<QuotaConfig> getParserForType()
Overrides
getPreferredValue()
public long getPreferredValue()
Required. The preferred value. Must be greater than or equal to -1. If set
to -1, it means the value is "unlimited".
int64 preferred_value = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
long | The preferredValue.
|
getRequestOrigin()
public QuotaConfig.Origin getRequestOrigin()
Output only. The origin of the quota preference request.
.google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRequestOriginValue()
public int getRequestOriginValue()
Output only. The origin of the quota preference request.
.google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for requestOrigin.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getStateDetail()
public String getStateDetail()
Output only. Optional details about the state of this quota preference.
string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
String | The stateDetail.
|
getStateDetailBytes()
public ByteString getStateDetailBytes()
Output only. Optional details about the state of this quota preference.
string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
ByteString | The bytes for stateDetail.
|
getTraceId()
public String getTraceId()
Output only. The trace id that the Google Cloud uses to provision the
requested quota. This trace id may be used by the client to contact Cloud
support to track the state of a quota preference request. The trace id is
only produced for increase requests and is unique for each request. The
quota decrease requests do not have a trace id.
string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
String | The traceId.
|
getTraceIdBytes()
public ByteString getTraceIdBytes()
Output only. The trace id that the Google Cloud uses to provision the
requested quota. This trace id may be used by the client to contact Cloud
support to track the state of a quota preference request. The trace id is
only produced for increase requests and is unique for each request. The
quota decrease requests do not have a trace id.
string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
ByteString | The bytes for traceId.
|
hasGrantedValue()
public boolean hasGrantedValue()
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
boolean | Whether the grantedValue field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public QuotaConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected QuotaConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public QuotaConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides