Class ConsumerQuotaMetric
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.serviceusage.v1beta1.ConsumerQuotaMetric
- All Implemented Interfaces:
ConsumerQuotaMetricOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ConsumerQuotaMetric
extends com.google.protobuf.GeneratedMessage
implements ConsumerQuotaMetricOrBuilder
Consumer quota settings for a quota metric.Protobuf type
google.api.serviceusage.v1beta1.ConsumerQuotaMetric- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConsumer quota settings for a quota metric.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetConsumerQuotaLimits(int index) The consumer quota for each quota limit defined on the metric.intThe consumer quota for each quota limit defined on the metric.The consumer quota for each quota limit defined on the metric.getConsumerQuotaLimitsOrBuilder(int index) The consumer quota for each quota limit defined on the metric.List<? extends ConsumerQuotaLimitOrBuilder>The consumer quota for each quota limit defined on the metric.static ConsumerQuotaMetricgetDescendantConsumerQuotaLimits(int index) The quota limits targeting the descendant containers of the consumer in request.intThe quota limits targeting the descendant containers of the consumer in request.The quota limits targeting the descendant containers of the consumer in request.getDescendantConsumerQuotaLimitsOrBuilder(int index) The quota limits targeting the descendant containers of the consumer in request.List<? extends ConsumerQuotaLimitOrBuilder>The quota limits targeting the descendant containers of the consumer in request.static final com.google.protobuf.Descriptors.DescriptorThe display name of the metric.com.google.protobuf.ByteStringThe display name of the metric.The name of the metric.com.google.protobuf.ByteStringThe name of the metric.getName()The resource name of the quota settings on this metric for this consumer.com.google.protobuf.ByteStringThe resource name of the quota settings on this metric for this consumer.com.google.protobuf.Parser<ConsumerQuotaMetric>intgetUnit()The units in which the metric value is reported.com.google.protobuf.ByteStringThe units in which the metric value is reported.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ConsumerQuotaMetric.Builderstatic ConsumerQuotaMetric.BuildernewBuilder(ConsumerQuotaMetric prototype) protected ConsumerQuotaMetric.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ConsumerQuotaMetricparseDelimitedFrom(InputStream input) static ConsumerQuotaMetricparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConsumerQuotaMetricparseFrom(byte[] data) static ConsumerQuotaMetricparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConsumerQuotaMetricparseFrom(com.google.protobuf.ByteString data) static ConsumerQuotaMetricparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConsumerQuotaMetricparseFrom(com.google.protobuf.CodedInputStream input) static ConsumerQuotaMetricparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConsumerQuotaMetricparseFrom(InputStream input) static ConsumerQuotaMetricparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConsumerQuotaMetricparseFrom(ByteBuffer data) static ConsumerQuotaMetricparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ConsumerQuotaMetric>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
METRIC_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
CONSUMER_QUOTA_LIMITS_FIELD_NUMBER
public static final int CONSUMER_QUOTA_LIMITS_FIELD_NUMBER- See Also:
-
DESCENDANT_CONSUMER_QUOTA_LIMITS_FIELD_NUMBER
public static final int DESCENDANT_CONSUMER_QUOTA_LIMITS_FIELD_NUMBER- See Also:
-
UNIT_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
The resource name of the quota settings on this metric for this consumer. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;- Specified by:
getNamein interfaceConsumerQuotaMetricOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the quota settings on this metric for this consumer. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;- Specified by:
getNameBytesin interfaceConsumerQuotaMetricOrBuilder- Returns:
- The bytes for name.
-
getMetric
The name of the metric. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;- Specified by:
getMetricin interfaceConsumerQuotaMetricOrBuilder- Returns:
- The metric.
-
getMetricBytes
public com.google.protobuf.ByteString getMetricBytes()The name of the metric. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;- Specified by:
getMetricBytesin interfaceConsumerQuotaMetricOrBuilder- Returns:
- The bytes for metric.
-
getDisplayName
The display name of the metric. An example name would be: `CPUs`
string display_name = 2;- Specified by:
getDisplayNamein interfaceConsumerQuotaMetricOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name of the metric. An example name would be: `CPUs`
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceConsumerQuotaMetricOrBuilder- Returns:
- The bytes for displayName.
-
getConsumerQuotaLimitsList
The consumer quota for each quota limit defined on the metric.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;- Specified by:
getConsumerQuotaLimitsListin interfaceConsumerQuotaMetricOrBuilder
-
getConsumerQuotaLimitsOrBuilderList
The consumer quota for each quota limit defined on the metric.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;- Specified by:
getConsumerQuotaLimitsOrBuilderListin interfaceConsumerQuotaMetricOrBuilder
-
getConsumerQuotaLimitsCount
public int getConsumerQuotaLimitsCount()The consumer quota for each quota limit defined on the metric.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;- Specified by:
getConsumerQuotaLimitsCountin interfaceConsumerQuotaMetricOrBuilder
-
getConsumerQuotaLimits
The consumer quota for each quota limit defined on the metric.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;- Specified by:
getConsumerQuotaLimitsin interfaceConsumerQuotaMetricOrBuilder
-
getConsumerQuotaLimitsOrBuilder
The consumer quota for each quota limit defined on the metric.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;- Specified by:
getConsumerQuotaLimitsOrBuilderin interfaceConsumerQuotaMetricOrBuilder
-
getDescendantConsumerQuotaLimitsList
The quota limits targeting the descendant containers of the consumer in request. If the consumer in request is of type `organizations` or `folders`, the field will list per-project limits in the metric; if the consumer in request is of type `project`, the field will be empty. The `quota_buckets` field of each descendant consumer quota limit will not be populated.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;- Specified by:
getDescendantConsumerQuotaLimitsListin interfaceConsumerQuotaMetricOrBuilder
-
getDescendantConsumerQuotaLimitsOrBuilderList
The quota limits targeting the descendant containers of the consumer in request. If the consumer in request is of type `organizations` or `folders`, the field will list per-project limits in the metric; if the consumer in request is of type `project`, the field will be empty. The `quota_buckets` field of each descendant consumer quota limit will not be populated.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;- Specified by:
getDescendantConsumerQuotaLimitsOrBuilderListin interfaceConsumerQuotaMetricOrBuilder
-
getDescendantConsumerQuotaLimitsCount
public int getDescendantConsumerQuotaLimitsCount()The quota limits targeting the descendant containers of the consumer in request. If the consumer in request is of type `organizations` or `folders`, the field will list per-project limits in the metric; if the consumer in request is of type `project`, the field will be empty. The `quota_buckets` field of each descendant consumer quota limit will not be populated.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;- Specified by:
getDescendantConsumerQuotaLimitsCountin interfaceConsumerQuotaMetricOrBuilder
-
getDescendantConsumerQuotaLimits
The quota limits targeting the descendant containers of the consumer in request. If the consumer in request is of type `organizations` or `folders`, the field will list per-project limits in the metric; if the consumer in request is of type `project`, the field will be empty. The `quota_buckets` field of each descendant consumer quota limit will not be populated.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;- Specified by:
getDescendantConsumerQuotaLimitsin interfaceConsumerQuotaMetricOrBuilder
-
getDescendantConsumerQuotaLimitsOrBuilder
The quota limits targeting the descendant containers of the consumer in request. If the consumer in request is of type `organizations` or `folders`, the field will list per-project limits in the metric; if the consumer in request is of type `project`, the field will be empty. The `quota_buckets` field of each descendant consumer quota limit will not be populated.
repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;- Specified by:
getDescendantConsumerQuotaLimitsOrBuilderin interfaceConsumerQuotaMetricOrBuilder
-
getUnit
The units in which the metric value is reported.
string unit = 5;- Specified by:
getUnitin interfaceConsumerQuotaMetricOrBuilder- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()The units in which the metric value is reported.
string unit = 5;- Specified by:
getUnitBytesin interfaceConsumerQuotaMetricOrBuilder- Returns:
- The bytes for unit.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ConsumerQuotaMetric parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsumerQuotaMetric parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsumerQuotaMetric parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsumerQuotaMetric parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsumerQuotaMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsumerQuotaMetric parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ConsumerQuotaMetric parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ConsumerQuotaMetric parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ConsumerQuotaMetric parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ConsumerQuotaMetric parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConsumerQuotaMetric.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-