Package namespace.cloud.compute.v1beta
Interface Compute.GetInstanceMetricsRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Compute.GetInstanceMetricsRequest,Compute.GetInstanceMetricsRequest.Builder
- Enclosing class:
Compute
public static interface Compute.GetInstanceMetricsRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampIf set, only metrics data up to this timestamp will be returned.com.google.protobuf.TimestampOrBuilderIf set, only metrics data up to this timestamp will be returned.string instance_id = 1;com.google.protobuf.ByteStringstring instance_id = 1;getMetricResource(int index) Specifies which metrics should be returned.intSpecifies which metrics should be returned.Specifies which metrics should be returned.intgetMetricResourceValue(int index) Specifies which metrics should be returned.Specifies which metrics should be returned.com.google.protobuf.TimestampIf set, only metrics data on or after this timestamp will be returned.com.google.protobuf.TimestampOrBuilderIf set, only metrics data on or after this timestamp will be returned.booleanIf set, only metrics data up to this timestamp will be returned.booleanIf set, only metrics data on or after this timestamp will be returned.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getInstanceId
String getInstanceId()string instance_id = 1;- Returns:
- The instanceId.
-
getInstanceIdBytes
com.google.protobuf.ByteString getInstanceIdBytes()string instance_id = 1;- Returns:
- The bytes for instanceId.
-
hasStartTimestamp
boolean hasStartTimestamp()If set, only metrics data on or after this timestamp will be returned. Note: In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
.google.protobuf.Timestamp start_timestamp = 2;- Returns:
- Whether the startTimestamp field is set.
-
getStartTimestamp
com.google.protobuf.Timestamp getStartTimestamp()If set, only metrics data on or after this timestamp will be returned. Note: In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
.google.protobuf.Timestamp start_timestamp = 2;- Returns:
- The startTimestamp.
-
getStartTimestampOrBuilder
com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder()If set, only metrics data on or after this timestamp will be returned. Note: In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
.google.protobuf.Timestamp start_timestamp = 2; -
hasEndTimestamp
boolean hasEndTimestamp()If set, only metrics data up to this timestamp will be returned. Note: In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
.google.protobuf.Timestamp end_timestamp = 3;- Returns:
- Whether the endTimestamp field is set.
-
getEndTimestamp
com.google.protobuf.Timestamp getEndTimestamp()If set, only metrics data up to this timestamp will be returned. Note: In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
.google.protobuf.Timestamp end_timestamp = 3;- Returns:
- The endTimestamp.
-
getEndTimestampOrBuilder
com.google.protobuf.TimestampOrBuilder getEndTimestampOrBuilder()If set, only metrics data up to this timestamp will be returned. Note: In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
.google.protobuf.Timestamp end_timestamp = 3; -
getMetricResourceList
List<Compute.GetInstanceMetricsRequest.MetricResource> getMetricResourceList()Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Returns:
- A list containing the metricResource.
-
getMetricResourceCount
int getMetricResourceCount()Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Returns:
- The count of metricResource.
-
getMetricResource
Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Parameters:
index- The index of the element to return.- Returns:
- The metricResource at the given index.
-
getMetricResourceValueList
Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Returns:
- A list containing the enum numeric values on the wire for metricResource.
-
getMetricResourceValue
int getMetricResourceValue(int index) Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of metricResource at the given index.
-