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:
  • 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:
      internalGetFieldAccessorTable in class com.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:
      hasP99CpuUtilization in interface MetricsOrBuilder
      Returns:
      Whether the p99CpuUtilization field is set.
    • getP99CpuUtilization

      public MetricData 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:
      getP99CpuUtilization in interface MetricsOrBuilder
      Returns:
      The p99CpuUtilization.
    • getP99CpuUtilizationOrBuilder

      public MetricDataOrBuilder 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:
      getP99CpuUtilizationOrBuilder in interface MetricsOrBuilder
    • 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:
      hasP95CpuUtilization in interface MetricsOrBuilder
      Returns:
      Whether the p95CpuUtilization field is set.
    • getP95CpuUtilization

      public MetricData 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:
      getP95CpuUtilization in interface MetricsOrBuilder
      Returns:
      The p95CpuUtilization.
    • getP95CpuUtilizationOrBuilder

      public MetricDataOrBuilder 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:
      getP95CpuUtilizationOrBuilder in interface MetricsOrBuilder
    • 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:
      hasCurrentStorageUsedBytes in interface MetricsOrBuilder
      Returns:
      Whether the currentStorageUsedBytes field is set.
    • getCurrentStorageUsedBytes

      public MetricData getCurrentStorageUsedBytes()
       Current storage used by the resource in bytes.
       
      optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3;
      Specified by:
      getCurrentStorageUsedBytes in interface MetricsOrBuilder
      Returns:
      The currentStorageUsedBytes.
    • getCurrentStorageUsedBytesOrBuilder

      public MetricDataOrBuilder getCurrentStorageUsedBytesOrBuilder()
       Current storage used by the resource in bytes.
       
      optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3;
      Specified by:
      getCurrentStorageUsedBytesOrBuilder in interface MetricsOrBuilder
    • 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:
      hasPeakStorageUtilization in interface MetricsOrBuilder
      Returns:
      Whether the peakStorageUtilization field is set.
    • getPeakStorageUtilization

      public MetricData 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:
      getPeakStorageUtilization in interface MetricsOrBuilder
      Returns:
      The peakStorageUtilization.
    • getPeakStorageUtilizationOrBuilder

      public MetricDataOrBuilder 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:
      getPeakStorageUtilizationOrBuilder in interface MetricsOrBuilder
    • 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:
      hasPeakMemoryUtilization in interface MetricsOrBuilder
      Returns:
      Whether the peakMemoryUtilization field is set.
    • getPeakMemoryUtilization

      public MetricData 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:
      getPeakMemoryUtilization in interface MetricsOrBuilder
      Returns:
      The peakMemoryUtilization.
    • getPeakMemoryUtilizationOrBuilder

      public MetricDataOrBuilder 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:
      getPeakMemoryUtilizationOrBuilder in interface MetricsOrBuilder
    • 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:
      hasPeakNumberConnections in interface MetricsOrBuilder
      Returns:
      Whether the peakNumberConnections field is set.
    • getPeakNumberConnections

      public MetricData 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:
      getPeakNumberConnections in interface MetricsOrBuilder
      Returns:
      The peakNumberConnections.
    • getPeakNumberConnectionsOrBuilder

      public MetricDataOrBuilder 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:
      getPeakNumberConnectionsOrBuilder in interface MetricsOrBuilder
    • hasNodeCount

      public boolean hasNodeCount()
       Number of nodes in instance for spanner or bigtable.
       
      optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7;
      Specified by:
      hasNodeCount in interface MetricsOrBuilder
      Returns:
      Whether the nodeCount field is set.
    • getNodeCount

      public MetricData getNodeCount()
       Number of nodes in instance for spanner or bigtable.
       
      optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7;
      Specified by:
      getNodeCount in interface MetricsOrBuilder
      Returns:
      The nodeCount.
    • getNodeCountOrBuilder

      public MetricDataOrBuilder getNodeCountOrBuilder()
       Number of nodes in instance for spanner or bigtable.
       
      optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7;
      Specified by:
      getNodeCountOrBuilder in interface MetricsOrBuilder
    • hasProcessingUnitCount

      public boolean hasProcessingUnitCount()
       Number of processing units in spanner.
       
      optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8;
      Specified by:
      hasProcessingUnitCount in interface MetricsOrBuilder
      Returns:
      Whether the processingUnitCount field is set.
    • getProcessingUnitCount

      public MetricData getProcessingUnitCount()
       Number of processing units in spanner.
       
      optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8;
      Specified by:
      getProcessingUnitCount in interface MetricsOrBuilder
      Returns:
      The processingUnitCount.
    • getProcessingUnitCountOrBuilder

      public MetricDataOrBuilder getProcessingUnitCountOrBuilder()
       Number of processing units in spanner.
       
      optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8;
      Specified by:
      getProcessingUnitCountOrBuilder in interface MetricsOrBuilder
    • 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:
      hasCurrentMemoryUsedBytes in interface MetricsOrBuilder
      Returns:
      Whether the currentMemoryUsedBytes field is set.
    • getCurrentMemoryUsedBytes

      public MetricData getCurrentMemoryUsedBytes()
       Current memory used by the resource in bytes.
       
      optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9;
      Specified by:
      getCurrentMemoryUsedBytes in interface MetricsOrBuilder
      Returns:
      The currentMemoryUsedBytes.
    • getCurrentMemoryUsedBytesOrBuilder

      public MetricDataOrBuilder getCurrentMemoryUsedBytesOrBuilder()
       Current memory used by the resource in bytes.
       
      optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9;
      Specified by:
      getCurrentMemoryUsedBytesOrBuilder in interface MetricsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Metrics parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Metrics parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Metrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Metrics.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Metrics.Builder newBuilder()
    • newBuilder

      public static Metrics.Builder newBuilder(Metrics prototype)
    • toBuilder

      public Metrics.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Metrics.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Metrics getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Metrics> parser()
    • getParserForType

      public com.google.protobuf.Parser<Metrics> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Metrics getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder