Package namespace.cloud.compute.v1beta
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 Summary
Modifier and TypeMethodDescriptionaddAllMetricResource(Iterable<? extends Compute.GetInstanceMetricsRequest.MetricResource> values) Specifies which metrics should be returned.addAllMetricResourceValue(Iterable<Integer> values) Specifies which metrics should be returned.Specifies which metrics should be returned.addMetricResourceValue(int value) Specifies which metrics should be returned.build()clear()If set, only metrics data up to this timestamp will be returned.string instance_id = 1;Specifies which metrics should be returned.If set, only metrics data on or after this timestamp will be returned.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampIf set, only metrics data up to this timestamp will be returned.com.google.protobuf.Timestamp.BuilderIf 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.Timestamp.BuilderIf 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndTimestamp(com.google.protobuf.Timestamp value) If set, only metrics data up to this timestamp will be returned.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTimestamp(com.google.protobuf.Timestamp value) If set, only metrics data on or after this timestamp will be returned.setEndTimestamp(com.google.protobuf.Timestamp value) If set, only metrics data up to this timestamp will be returned.setEndTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) If set, only metrics data up to this timestamp will be returned.setInstanceId(String value) string instance_id = 1;setInstanceIdBytes(com.google.protobuf.ByteString value) string instance_id = 1;setMetricResource(int index, Compute.GetInstanceMetricsRequest.MetricResource value) Specifies which metrics should be returned.setMetricResourceValue(int index, int value) Specifies which metrics should be returned.setStartTimestamp(com.google.protobuf.Timestamp value) If set, only metrics data on or after this timestamp will be returned.setStartTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) If set, only metrics data on or after this timestamp will be returned.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.GetInstanceMetricsRequest.Builder>- Throws:
IOException
-
getInstanceId
string instance_id = 1;- Specified by:
getInstanceIdin interfaceCompute.GetInstanceMetricsRequestOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()string instance_id = 1;- Specified by:
getInstanceIdBytesin interfaceCompute.GetInstanceMetricsRequestOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
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:
hasStartTimestampin interfaceCompute.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:
getStartTimestampin interfaceCompute.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
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:
getStartTimestampOrBuilderin interfaceCompute.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:
hasEndTimestampin interfaceCompute.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:
getEndTimestampin interfaceCompute.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
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:
getEndTimestampOrBuilderin interfaceCompute.GetInstanceMetricsRequestOrBuilder
-
getMetricResourceList
Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Specified by:
getMetricResourceListin interfaceCompute.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:
getMetricResourceCountin interfaceCompute.GetInstanceMetricsRequestOrBuilder- Returns:
- The count of metricResource.
-
getMetricResource
Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Specified by:
getMetricResourcein interfaceCompute.GetInstanceMetricsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The metricResource at the given index.
-
setMetricResource
public Compute.GetInstanceMetricsRequest.Builder setMetricResource(int index, Compute.GetInstanceMetricsRequest.MetricResource 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 metricResource to set.- Returns:
- This builder for chaining.
-
addMetricResource
public Compute.GetInstanceMetricsRequest.Builder addMetricResource(Compute.GetInstanceMetricsRequest.MetricResource value) 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
public Compute.GetInstanceMetricsRequest.Builder addAllMetricResource(Iterable<? extends Compute.GetInstanceMetricsRequest.MetricResource> values) 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
Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Returns:
- This builder for chaining.
-
getMetricResourceValueList
Specifies which metrics should be returned.
repeated .namespace.cloud.compute.v1beta.GetInstanceMetricsRequest.MetricResource metric_resource = 4;- Specified by:
getMetricResourceValueListin interfaceCompute.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:
getMetricResourceValuein interfaceCompute.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
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
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.
-