Class Metrics
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.databasecenter.v1beta.Metrics
- All Implemented Interfaces:
MetricsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Metrics
extends com.google.protobuf.GeneratedMessage
implements MetricsOrBuilder
Metrics represents the metrics for a database resource.Protobuf type
google.cloud.databasecenter.v1beta.Metrics- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetrics represents the metrics for a database resource.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 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 TypeMethodDescriptionbooleanCurrent memory used by the resource in bytes.Current memory used by the resource in bytes.Current storage used by the resource in bytes.Current storage used by the resource in bytes.static Metricsstatic final com.google.protobuf.Descriptors.DescriptorNumber of nodes in instance for spanner or bigtable.Number of nodes in instance for spanner or bigtable.P95 CPU utilization observed for the resource.P95 CPU utilization observed for the resource.P99 CPU utilization observed for the resource.P99 CPU utilization observed for the resource.com.google.protobuf.Parser<Metrics>Peak memory utilization observed for the resource.Peak memory utilization observed for the resource.Peak number of connections observed for the resource.Peak number of connections observed for the resource.Peak storage utilization observed for the resource.Peak storage utilization observed for the resource.Number of processing units in spanner.Number of processing units in spanner.intbooleanCurrent memory used by the resource in bytes.booleanCurrent storage used by the resource in bytes.inthashCode()booleanNumber of nodes in instance for spanner or bigtable.booleanP95 CPU utilization observed for the resource.booleanP99 CPU utilization observed for the resource.booleanPeak memory utilization observed for the resource.booleanPeak number of connections observed for the resource.booleanPeak storage utilization observed for the resource.booleanNumber of processing units in spanner.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Metrics.Builderstatic Metrics.BuildernewBuilder(Metrics prototype) protected Metrics.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MetricsparseDelimitedFrom(InputStream input) static MetricsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsparseFrom(byte[] data) static MetricsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsparseFrom(com.google.protobuf.ByteString data) static MetricsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsparseFrom(com.google.protobuf.CodedInputStream input) static MetricsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsparseFrom(InputStream input) static MetricsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsparseFrom(ByteBuffer data) static MetricsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Metrics>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
-
P99_CPU_UTILIZATION_FIELD_NUMBER
public static final int P99_CPU_UTILIZATION_FIELD_NUMBER- See Also:
-
P95_CPU_UTILIZATION_FIELD_NUMBER
public static final int P95_CPU_UTILIZATION_FIELD_NUMBER- See Also:
-
CURRENT_STORAGE_USED_BYTES_FIELD_NUMBER
public static final int CURRENT_STORAGE_USED_BYTES_FIELD_NUMBER- See Also:
-
PEAK_STORAGE_UTILIZATION_FIELD_NUMBER
public static final int PEAK_STORAGE_UTILIZATION_FIELD_NUMBER- See Also:
-
PEAK_MEMORY_UTILIZATION_FIELD_NUMBER
public static final int PEAK_MEMORY_UTILIZATION_FIELD_NUMBER- See Also:
-
PEAK_NUMBER_CONNECTIONS_FIELD_NUMBER
public static final int PEAK_NUMBER_CONNECTIONS_FIELD_NUMBER- See Also:
-
NODE_COUNT_FIELD_NUMBER
public static final int NODE_COUNT_FIELD_NUMBER- See Also:
-
PROCESSING_UNIT_COUNT_FIELD_NUMBER
public static final int PROCESSING_UNIT_COUNT_FIELD_NUMBER- See Also:
-
CURRENT_MEMORY_USED_BYTES_FIELD_NUMBER
public static final int CURRENT_MEMORY_USED_BYTES_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
-
hasP99CpuUtilization
public boolean hasP99CpuUtilization()P99 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1;- Specified by:
hasP99CpuUtilizationin interfaceMetricsOrBuilder- Returns:
- Whether the p99CpuUtilization field is set.
-
getP99CpuUtilization
P99 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1;- Specified by:
getP99CpuUtilizationin interfaceMetricsOrBuilder- Returns:
- The p99CpuUtilization.
-
getP99CpuUtilizationOrBuilder
P99 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1;- Specified by:
getP99CpuUtilizationOrBuilderin interfaceMetricsOrBuilder
-
hasP95CpuUtilization
public boolean hasP95CpuUtilization()P95 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2;- Specified by:
hasP95CpuUtilizationin interfaceMetricsOrBuilder- Returns:
- Whether the p95CpuUtilization field is set.
-
getP95CpuUtilization
P95 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2;- Specified by:
getP95CpuUtilizationin interfaceMetricsOrBuilder- Returns:
- The p95CpuUtilization.
-
getP95CpuUtilizationOrBuilder
P95 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2;- Specified by:
getP95CpuUtilizationOrBuilderin interfaceMetricsOrBuilder
-
hasCurrentStorageUsedBytes
public boolean hasCurrentStorageUsedBytes()Current storage used by the resource in bytes.
optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3;- Specified by:
hasCurrentStorageUsedBytesin interfaceMetricsOrBuilder- Returns:
- Whether the currentStorageUsedBytes field is set.
-
getCurrentStorageUsedBytes
Current storage used by the resource in bytes.
optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3;- Specified by:
getCurrentStorageUsedBytesin interfaceMetricsOrBuilder- Returns:
- The currentStorageUsedBytes.
-
getCurrentStorageUsedBytesOrBuilder
Current storage used by the resource in bytes.
optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3;- Specified by:
getCurrentStorageUsedBytesOrBuilderin interfaceMetricsOrBuilder
-
hasPeakStorageUtilization
public boolean hasPeakStorageUtilization()Peak storage utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4;- Specified by:
hasPeakStorageUtilizationin interfaceMetricsOrBuilder- Returns:
- Whether the peakStorageUtilization field is set.
-
getPeakStorageUtilization
Peak storage utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4;- Specified by:
getPeakStorageUtilizationin interfaceMetricsOrBuilder- Returns:
- The peakStorageUtilization.
-
getPeakStorageUtilizationOrBuilder
Peak storage utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4;- Specified by:
getPeakStorageUtilizationOrBuilderin interfaceMetricsOrBuilder
-
hasPeakMemoryUtilization
public boolean hasPeakMemoryUtilization()Peak memory utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5;- Specified by:
hasPeakMemoryUtilizationin interfaceMetricsOrBuilder- Returns:
- Whether the peakMemoryUtilization field is set.
-
getPeakMemoryUtilization
Peak memory utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5;- Specified by:
getPeakMemoryUtilizationin interfaceMetricsOrBuilder- Returns:
- The peakMemoryUtilization.
-
getPeakMemoryUtilizationOrBuilder
Peak memory utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5;- Specified by:
getPeakMemoryUtilizationOrBuilderin interfaceMetricsOrBuilder
-
hasPeakNumberConnections
public boolean hasPeakNumberConnections()Peak number of connections observed for the resource. The value is a positive integer.
optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6;- Specified by:
hasPeakNumberConnectionsin interfaceMetricsOrBuilder- Returns:
- Whether the peakNumberConnections field is set.
-
getPeakNumberConnections
Peak number of connections observed for the resource. The value is a positive integer.
optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6;- Specified by:
getPeakNumberConnectionsin interfaceMetricsOrBuilder- Returns:
- The peakNumberConnections.
-
getPeakNumberConnectionsOrBuilder
Peak number of connections observed for the resource. The value is a positive integer.
optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6;- Specified by:
getPeakNumberConnectionsOrBuilderin interfaceMetricsOrBuilder
-
hasNodeCount
public boolean hasNodeCount()Number of nodes in instance for spanner or bigtable.
optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7;- Specified by:
hasNodeCountin interfaceMetricsOrBuilder- Returns:
- Whether the nodeCount field is set.
-
getNodeCount
Number of nodes in instance for spanner or bigtable.
optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7;- Specified by:
getNodeCountin interfaceMetricsOrBuilder- Returns:
- The nodeCount.
-
getNodeCountOrBuilder
Number of nodes in instance for spanner or bigtable.
optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7;- Specified by:
getNodeCountOrBuilderin interfaceMetricsOrBuilder
-
hasProcessingUnitCount
public boolean hasProcessingUnitCount()Number of processing units in spanner.
optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8;- Specified by:
hasProcessingUnitCountin interfaceMetricsOrBuilder- Returns:
- Whether the processingUnitCount field is set.
-
getProcessingUnitCount
Number of processing units in spanner.
optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8;- Specified by:
getProcessingUnitCountin interfaceMetricsOrBuilder- Returns:
- The processingUnitCount.
-
getProcessingUnitCountOrBuilder
Number of processing units in spanner.
optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8;- Specified by:
getProcessingUnitCountOrBuilderin interfaceMetricsOrBuilder
-
hasCurrentMemoryUsedBytes
public boolean hasCurrentMemoryUsedBytes()Current memory used by the resource in bytes.
optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9;- Specified by:
hasCurrentMemoryUsedBytesin interfaceMetricsOrBuilder- Returns:
- Whether the currentMemoryUsedBytes field is set.
-
getCurrentMemoryUsedBytes
Current memory used by the resource in bytes.
optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9;- Specified by:
getCurrentMemoryUsedBytesin interfaceMetricsOrBuilder- Returns:
- The currentMemoryUsedBytes.
-
getCurrentMemoryUsedBytesOrBuilder
Current memory used by the resource in bytes.
optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9;- Specified by:
getCurrentMemoryUsedBytesOrBuilderin interfaceMetricsOrBuilder
-
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 Metrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Metrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Metrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Metrics 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 Metrics.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
-