Class InstanceConsumptionData.Builder (1.63.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceConsumptionData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceConsumptionData.Builder
Overrides

build()

public InstanceConsumptionData build()
Returns
Type Description
InstanceConsumptionData

buildPartial()

public InstanceConsumptionData buildPartial()
Returns
Type Description
InstanceConsumptionData

clear()

public InstanceConsumptionData.Builder clear()
Returns
Type Description
InstanceConsumptionData.Builder
Overrides

clearConsumptionInfo()

public InstanceConsumptionData.Builder clearConsumptionInfo()

Resources consumed by the instance.

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

Returns
Type Description
InstanceConsumptionData.Builder

clearField(Descriptors.FieldDescriptor field)

public InstanceConsumptionData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceConsumptionData.Builder
Overrides

clearInstance()

public InstanceConsumptionData.Builder clearInstance()

Server-defined URL for the instance.

optional string instance = 18257045;

Returns
Type Description
InstanceConsumptionData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceConsumptionData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstanceConsumptionData.Builder
Overrides

clone()

public InstanceConsumptionData.Builder clone()
Returns
Type Description
InstanceConsumptionData.Builder
Overrides

getConsumptionInfo()

public InstanceConsumptionInfo getConsumptionInfo()

Resources consumed by the instance.

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

Returns
Type Description
InstanceConsumptionInfo

The consumptionInfo.

getConsumptionInfoBuilder()

public InstanceConsumptionInfo.Builder getConsumptionInfoBuilder()

Resources consumed by the instance.

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

Returns
Type Description
InstanceConsumptionInfo.Builder

getConsumptionInfoOrBuilder()

public InstanceConsumptionInfoOrBuilder getConsumptionInfoOrBuilder()

Resources consumed by the instance.

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

Returns
Type Description
InstanceConsumptionInfoOrBuilder

getDefaultInstanceForType()

public InstanceConsumptionData getDefaultInstanceForType()
Returns
Type Description
InstanceConsumptionData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstance()

public String getInstance()

Server-defined URL for the instance.

optional string instance = 18257045;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Server-defined URL for the instance.

optional string instance = 18257045;

Returns
Type Description
ByteString

The bytes for instance.

hasConsumptionInfo()

public boolean hasConsumptionInfo()

Resources consumed by the instance.

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

Returns
Type Description
boolean

Whether the consumptionInfo field is set.

hasInstance()

public boolean hasInstance()

Server-defined URL for the instance.

optional string instance = 18257045;

Returns
Type Description
boolean

Whether the instance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value InstanceConsumptionInfo
Returns
Type Description
InstanceConsumptionData.Builder

mergeFrom(InstanceConsumptionData other)

public InstanceConsumptionData.Builder mergeFrom(InstanceConsumptionData other)
Parameter
Name Description
other InstanceConsumptionData
Returns
Type Description
InstanceConsumptionData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceConsumptionData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceConsumptionData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceConsumptionData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceConsumptionData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConsumptionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value InstanceConsumptionInfo
Returns
Type Description
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
Name Description
builderForValue InstanceConsumptionInfo.Builder
Returns
Type Description
InstanceConsumptionData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceConsumptionData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceConsumptionData.Builder
Overrides

setInstance(String value)

public InstanceConsumptionData.Builder setInstance(String value)

Server-defined URL for the instance.

optional string instance = 18257045;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceConsumptionData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConsumptionData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceConsumptionData.Builder
Overrides