Class Compute.GetInstanceMetricsRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
namespace.cloud.compute.v1beta.Compute.GetInstanceMetricsRequest
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Compute.GetInstanceMetricsRequestOrBuilder
Enclosing class:
Compute

public static final class Compute.GetInstanceMetricsRequest extends com.google.protobuf.GeneratedMessage implements Compute.GetInstanceMetricsRequestOrBuilder
Protobuf type namespace.cloud.compute.v1beta.GetInstanceMetricsRequest
See Also:
  • Field Details

    • INSTANCE_ID_FIELD_NUMBER

      public static final int INSTANCE_ID_FIELD_NUMBER
      See Also:
    • START_TIMESTAMP_FIELD_NUMBER

      public static final int START_TIMESTAMP_FIELD_NUMBER
      See Also:
    • END_TIMESTAMP_FIELD_NUMBER

      public static final int END_TIMESTAMP_FIELD_NUMBER
      See Also:
    • METRIC_RESOURCE_FIELD_NUMBER

      public static final int METRIC_RESOURCE_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
    • getInstanceId

      public String getInstanceId()
      string instance_id = 1;
      Specified by:
      getInstanceId in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      The bytes for instanceId.
    • hasStartTimestamp

      public 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;
      Specified by:
      hasStartTimestamp in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      Whether the startTimestamp field is set.
    • getStartTimestamp

      public 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;
      Specified by:
      getStartTimestamp in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      The startTimestamp.
    • getStartTimestampOrBuilder

      public 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;
      Specified by:
      getStartTimestampOrBuilder in interface Compute.GetInstanceMetricsRequestOrBuilder
    • hasEndTimestamp

      public 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;
      Specified by:
      hasEndTimestamp in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      Whether the endTimestamp field is set.
    • getEndTimestamp

      public 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;
      Specified by:
      getEndTimestamp in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      The endTimestamp.
    • getEndTimestampOrBuilder

      public 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;
      Specified by:
      getEndTimestampOrBuilder in interface Compute.GetInstanceMetricsRequestOrBuilder
    • getMetricResourceList

      public List<Compute.GetInstanceMetricsRequest.MetricResource> getMetricResourceList()
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Specified by:
      getMetricResourceList in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      A list containing the metricResource.
    • getMetricResourceCount

      public int getMetricResourceCount()
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Specified by:
      getMetricResourceCount in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      The count of metricResource.
    • getMetricResource

      public Compute.GetInstanceMetricsRequest.MetricResource getMetricResource(int index)
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Specified by:
      getMetricResource in interface Compute.GetInstanceMetricsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The metricResource at the given index.
    • getMetricResourceValueList

      public List<Integer> getMetricResourceValueList()
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Specified by:
      getMetricResourceValueList in interface Compute.GetInstanceMetricsRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for metricResource.
    • getMetricResourceValue

      public int getMetricResourceValue(int index)
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Specified by:
      getMetricResourceValue in interface Compute.GetInstanceMetricsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of metricResource at the given index.
    • 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 Compute.GetInstanceMetricsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.GetInstanceMetricsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.GetInstanceMetricsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.GetInstanceMetricsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.GetInstanceMetricsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.GetInstanceMetricsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Compute.GetInstanceMetricsRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Compute.GetInstanceMetricsRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Compute.GetInstanceMetricsRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Compute.GetInstanceMetricsRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Compute.GetInstanceMetricsRequest> 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 Compute.GetInstanceMetricsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder