public final class MetricData extends GeneratedMessage implements MetricDataOrBuilderMetricData represents the metric data for a database resource.
Protobuf type google.cloud.databasecenter.v1beta.MetricData
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > MetricDataImplements
MetricDataOrBuilderStatic Fields
OBSERVATION_TIME_FIELD_NUMBER
public static final int OBSERVATION_TIME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static MetricData getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
MetricData |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static MetricData.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
MetricData.Builder |
|
newBuilder(MetricData prototype)
public static MetricData.Builder newBuilder(MetricData prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
MetricData |
| Returns | |
|---|---|
| Type | Description |
MetricData.Builder |
|
parseDelimitedFrom(InputStream input)
public static MetricData parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MetricData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static MetricData parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MetricData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static MetricData parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MetricData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static MetricData parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MetricData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static MetricData parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MetricData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static MetricData parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MetricData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MetricData |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<MetricData> parser()| Returns | |
|---|---|
| Type | Description |
Parser<MetricData> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public MetricData getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MetricData |
|
getObservationTime()
public Timestamp getObservationTime()The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The observationTime. |
getObservationTimeOrBuilder()
public TimestampOrBuilder getObservationTimeOrBuilder()The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getParserForType()
public Parser<MetricData> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<MetricData> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getValue()
public TypedValue getValue()The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1;
| Returns | |
|---|---|
| Type | Description |
TypedValue |
The value. |
getValueOrBuilder()
public TypedValueOrBuilder getValueOrBuilder()The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1;
| Returns | |
|---|---|
| Type | Description |
TypedValueOrBuilder |
|
hasObservationTime()
public boolean hasObservationTime()The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the observationTime field is set. |
hasValue()
public boolean hasValue()The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public MetricData.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
MetricData.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected MetricData.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
MetricData.Builder |
|
toBuilder()
public MetricData.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
MetricData.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|