Class AwsAutoscalingGroupMetricsCollection (0.33.0)

public final class AwsAutoscalingGroupMetricsCollection extends GeneratedMessageV3 implements AwsAutoscalingGroupMetricsCollectionOrBuilder

Configuration related to CloudWatch metrics collection in an AWS Auto Scaling group.

Protobuf type google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AwsAutoscalingGroupMetricsCollection

Static Fields

GRANULARITY_FIELD_NUMBER

public static final int GRANULARITY_FIELD_NUMBER
Field Value
TypeDescription
int

METRICS_FIELD_NUMBER

public static final int METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AwsAutoscalingGroupMetricsCollection getDefaultInstance()
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AwsAutoscalingGroupMetricsCollection.Builder newBuilder()
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection.Builder

newBuilder(AwsAutoscalingGroupMetricsCollection prototype)

public static AwsAutoscalingGroupMetricsCollection.Builder newBuilder(AwsAutoscalingGroupMetricsCollection prototype)
Parameter
NameDescription
prototypeAwsAutoscalingGroupMetricsCollection
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection.Builder

parseDelimitedFrom(InputStream input)

public static AwsAutoscalingGroupMetricsCollection parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AwsAutoscalingGroupMetricsCollection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AwsAutoscalingGroupMetricsCollection parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AwsAutoscalingGroupMetricsCollection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AwsAutoscalingGroupMetricsCollection parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AwsAutoscalingGroupMetricsCollection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AwsAutoscalingGroupMetricsCollection parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AwsAutoscalingGroupMetricsCollection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AwsAutoscalingGroupMetricsCollection parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AwsAutoscalingGroupMetricsCollection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AwsAutoscalingGroupMetricsCollection parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AwsAutoscalingGroupMetricsCollection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AwsAutoscalingGroupMetricsCollection> parser()
Returns
TypeDescription
Parser<AwsAutoscalingGroupMetricsCollection>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AwsAutoscalingGroupMetricsCollection getDefaultInstanceForType()
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection

getGranularity()

public String getGranularity()

Required. The frequency at which EC2 Auto Scaling sends aggregated data to AWS CloudWatch. The only valid value is "1Minute".

string granularity = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The granularity.

getGranularityBytes()

public ByteString getGranularityBytes()

Required. The frequency at which EC2 Auto Scaling sends aggregated data to AWS CloudWatch. The only valid value is "1Minute".

string granularity = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for granularity.

getMetrics(int index)

public String getMetrics(int index)

Optional. The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. If you specify Granularity and don't specify any metrics, all metrics are enabled.

repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The metrics at the given index.

getMetricsBytes(int index)

public ByteString getMetricsBytes(int index)

Optional. The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. If you specify Granularity and don't specify any metrics, all metrics are enabled.

repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the metrics at the given index.

getMetricsCount()

public int getMetricsCount()

Optional. The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. If you specify Granularity and don't specify any metrics, all metrics are enabled.

repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of metrics.

getMetricsList()

public ProtocolStringList getMetricsList()

Optional. The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. If you specify Granularity and don't specify any metrics, all metrics are enabled.

repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the metrics.

getParserForType()

public Parser<AwsAutoscalingGroupMetricsCollection> getParserForType()
Returns
TypeDescription
Parser<AwsAutoscalingGroupMetricsCollection>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AwsAutoscalingGroupMetricsCollection.Builder newBuilderForType()
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AwsAutoscalingGroupMetricsCollection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AwsAutoscalingGroupMetricsCollection.Builder toBuilder()
Returns
TypeDescription
AwsAutoscalingGroupMetricsCollection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException