Class InstanceConsumptionData.Builder (1.46.0)

public static final class InstanceConsumptionData.Builder extends GeneratedMessageV3.Builder<InstanceConsumptionData.Builder> implements InstanceConsumptionDataOrBuilder

Protobuf type google.cloud.compute.v1.InstanceConsumptionData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceConsumptionData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

build()

public InstanceConsumptionData build()
Returns
TypeDescription
InstanceConsumptionData

buildPartial()

public InstanceConsumptionData buildPartial()
Returns
TypeDescription
InstanceConsumptionData

clear()

public InstanceConsumptionData.Builder clear()
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

clearConsumptionInfo()

public InstanceConsumptionData.Builder clearConsumptionInfo()

Resources consumed by the instance.

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

Returns
TypeDescription
InstanceConsumptionData.Builder

clearField(Descriptors.FieldDescriptor field)

public InstanceConsumptionData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

clearInstance()

public InstanceConsumptionData.Builder clearInstance()

Server-defined URL for the instance.

optional string instance = 18257045;

Returns
TypeDescription
InstanceConsumptionData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceConsumptionData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

clone()

public InstanceConsumptionData.Builder clone()
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

getConsumptionInfo()

public InstanceConsumptionInfo getConsumptionInfo()

Resources consumed by the instance.

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

Returns
TypeDescription
InstanceConsumptionInfo

The consumptionInfo.

getConsumptionInfoBuilder()

public InstanceConsumptionInfo.Builder getConsumptionInfoBuilder()

Resources consumed by the instance.

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

Returns
TypeDescription
InstanceConsumptionInfo.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConsumptionInfo(InstanceConsumptionInfo value)

public InstanceConsumptionData.Builder mergeConsumptionInfo(InstanceConsumptionInfo value)

Resources consumed by the instance.

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

Parameter
NameDescription
valueInstanceConsumptionInfo
Returns
TypeDescription
InstanceConsumptionData.Builder

mergeFrom(InstanceConsumptionData other)

public InstanceConsumptionData.Builder mergeFrom(InstanceConsumptionData other)
Parameter
NameDescription
otherInstanceConsumptionData
Returns
TypeDescription
InstanceConsumptionData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceConsumptionData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstanceConsumptionData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConsumptionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

setConsumptionInfo(InstanceConsumptionInfo value)

public InstanceConsumptionData.Builder setConsumptionInfo(InstanceConsumptionInfo value)

Resources consumed by the instance.

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

Parameter
NameDescription
valueInstanceConsumptionInfo
Returns
TypeDescription
InstanceConsumptionData.Builder

setConsumptionInfo(InstanceConsumptionInfo.Builder builderForValue)

public InstanceConsumptionData.Builder setConsumptionInfo(InstanceConsumptionInfo.Builder builderForValue)

Resources consumed by the instance.

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

Parameter
NameDescription
builderForValueInstanceConsumptionInfo.Builder
Returns
TypeDescription
InstanceConsumptionData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceConsumptionData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

setInstance(String value)

public InstanceConsumptionData.Builder setInstance(String value)

Server-defined URL for the instance.

optional string instance = 18257045;

Parameter
NameDescription
valueString

The instance to set.

Returns
TypeDescription
InstanceConsumptionData.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public InstanceConsumptionData.Builder setInstanceBytes(ByteString value)

Server-defined URL for the instance.

optional string instance = 18257045;

Parameter
NameDescription
valueByteString

The bytes for instance to set.

Returns
TypeDescription
InstanceConsumptionData.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceConsumptionData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConsumptionData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceConsumptionData.Builder
Overrides