Class InstanceConsumptionData (1.46.0)

public final class InstanceConsumptionData extends GeneratedMessageV3 implements InstanceConsumptionDataOrBuilder

Protobuf type google.cloud.compute.v1.InstanceConsumptionData

Static Fields

CONSUMPTION_INFO_FIELD_NUMBER

public static final int CONSUMPTION_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_FIELD_NUMBER

public static final int INSTANCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InstanceConsumptionData getDefaultInstance()
Returns
TypeDescription
InstanceConsumptionData

getDescriptor()

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

newBuilder()

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

newBuilder(InstanceConsumptionData prototype)

public static InstanceConsumptionData.Builder newBuilder(InstanceConsumptionData prototype)
Parameter
NameDescription
prototypeInstanceConsumptionData
Returns
TypeDescription
InstanceConsumptionData.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConsumptionInfo()

public InstanceConsumptionInfo getConsumptionInfo()

Resources consumed by the instance.

optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;

Returns
TypeDescription
InstanceConsumptionInfo

The consumptionInfo.

getConsumptionInfoOrBuilder()

public InstanceConsumptionInfoOrBuilder getConsumptionInfoOrBuilder()

Resources consumed by the instance.

optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;

Returns
TypeDescription
InstanceConsumptionInfoOrBuilder

getDefaultInstanceForType()

public InstanceConsumptionData getDefaultInstanceForType()
Returns
TypeDescription
InstanceConsumptionData

getInstance()

public String getInstance()

Server-defined URL for the instance.

optional string instance = 18257045;

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Server-defined URL for the instance.

optional string instance = 18257045;

Returns
TypeDescription
ByteString

The bytes for instance.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasConsumptionInfo()

public boolean hasConsumptionInfo()

Resources consumed by the instance.

optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;

Returns
TypeDescription
boolean

Whether the consumptionInfo field is set.

hasInstance()

public boolean hasInstance()

Server-defined URL for the instance.

optional string instance = 18257045;

Returns
TypeDescription
boolean

Whether the instance field is set.

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 InstanceConsumptionData.Builder newBuilderForType()
Returns
TypeDescription
InstanceConsumptionData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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