Class Compute.GetInstanceMetricsRequest.Builder

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

public static final class Compute.GetInstanceMetricsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.GetInstanceMetricsRequest.Builder> implements Compute.GetInstanceMetricsRequestOrBuilder
Protobuf type namespace.cloud.compute.v1beta.GetInstanceMetricsRequest
  • 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.Builder<Compute.GetInstanceMetricsRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
    • getDefaultInstanceForType

      public Compute.GetInstanceMetricsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Compute.GetInstanceMetricsRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
    • mergeFrom

      public Compute.GetInstanceMetricsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
      Throws:
      IOException
    • 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.
    • setInstanceId

      public Compute.GetInstanceMetricsRequest.Builder setInstanceId(String value)
      string instance_id = 1;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      string instance_id = 1;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public Compute.GetInstanceMetricsRequest.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
      string instance_id = 1;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStartTimestamp

      public Compute.GetInstanceMetricsRequest.Builder setStartTimestamp(com.google.protobuf.Timestamp value)
       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;
    • setStartTimestamp

      public Compute.GetInstanceMetricsRequest.Builder setStartTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       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;
    • mergeStartTimestamp

      public Compute.GetInstanceMetricsRequest.Builder mergeStartTimestamp(com.google.protobuf.Timestamp value)
       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;
    • clearStartTimestamp

      public Compute.GetInstanceMetricsRequest.Builder clearStartTimestamp()
       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;
    • getStartTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimestampBuilder()
       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;
    • 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.
    • setEndTimestamp

      public Compute.GetInstanceMetricsRequest.Builder setEndTimestamp(com.google.protobuf.Timestamp value)
       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;
    • setEndTimestamp

      public Compute.GetInstanceMetricsRequest.Builder setEndTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       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;
    • mergeEndTimestamp

      public Compute.GetInstanceMetricsRequest.Builder mergeEndTimestamp(com.google.protobuf.Timestamp value)
       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;
    • clearEndTimestamp

      public Compute.GetInstanceMetricsRequest.Builder clearEndTimestamp()
       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;
    • getEndTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimestampBuilder()
       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;
    • 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.
    • setMetricResource

       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Parameters:
      index - The index to set the value at.
      value - The metricResource to set.
      Returns:
      This builder for chaining.
    • addMetricResource

       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Parameters:
      value - The metricResource to add.
      Returns:
      This builder for chaining.
    • addAllMetricResource

       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Parameters:
      values - The metricResource to add.
      Returns:
      This builder for chaining.
    • clearMetricResource

      public Compute.GetInstanceMetricsRequest.Builder clearMetricResource()
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Returns:
      This builder for chaining.
    • 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.
    • setMetricResourceValue

      public Compute.GetInstanceMetricsRequest.Builder setMetricResourceValue(int index, int value)
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for metricResource to set.
      Returns:
      This builder for chaining.
    • addMetricResourceValue

      public Compute.GetInstanceMetricsRequest.Builder addMetricResourceValue(int value)
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Parameters:
      value - The enum numeric value on the wire for metricResource to add.
      Returns:
      This builder for chaining.
    • addAllMetricResourceValue

      public Compute.GetInstanceMetricsRequest.Builder addAllMetricResourceValue(Iterable<Integer> values)
       Specifies which metrics should be returned.
       
      repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;
      Parameters:
      values - The enum numeric values on the wire for metricResource to add.
      Returns:
      This builder for chaining.