public static final class InstanceConsumptionData.Builder extends GeneratedMessageV3.Builder<InstanceConsumptionData.Builder> implements InstanceConsumptionDataOrBuilder
Protobuf type google.cloud.compute.v1.InstanceConsumptionData
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceConsumptionData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InstanceConsumptionData build()
Returns
buildPartial()
public InstanceConsumptionData buildPartial()
Returns
clear()
public InstanceConsumptionData.Builder clear()
Returns
Overrides
clearConsumptionInfo()
public InstanceConsumptionData.Builder clearConsumptionInfo()
Resources consumed by the instance.
optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;
Returns
clearField(Descriptors.FieldDescriptor field)
public InstanceConsumptionData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInstance()
public InstanceConsumptionData.Builder clearInstance()
Server-defined URL for the instance.
optional string instance = 18257045;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceConsumptionData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public InstanceConsumptionData.Builder clone()
Returns
Overrides
getConsumptionInfo()
public InstanceConsumptionInfo getConsumptionInfo()
Resources consumed by the instance.
optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;
Returns
getConsumptionInfoBuilder()
public InstanceConsumptionInfo.Builder getConsumptionInfoBuilder()
Resources consumed by the instance.
optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;
Returns
getConsumptionInfoOrBuilder()
public InstanceConsumptionInfoOrBuilder getConsumptionInfoOrBuilder()
Resources consumed by the instance.
optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;
Returns
getDefaultInstanceForType()
public InstanceConsumptionData getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(InstanceConsumptionData other)
public InstanceConsumptionData.Builder mergeFrom(InstanceConsumptionData other)
Parameter
Returns
public InstanceConsumptionData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InstanceConsumptionData.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceConsumptionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceConsumptionData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceConsumptionData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceConsumptionData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides