public static final class ScratchDisks.Builder extends GeneratedMessageV3.Builder<ScratchDisks.Builder> implements ScratchDisksOrBuilder
Protobuf type google.cloud.compute.v1.ScratchDisks
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 ScratchDisks.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ScratchDisks build()
Returns
buildPartial()
public ScratchDisks buildPartial()
Returns
clear()
public ScratchDisks.Builder clear()
Returns
Overrides
clearDiskGb()
public ScratchDisks.Builder clearDiskGb()
Size of the scratch disk, defined in GB.
optional int32 disk_gb = 60990141;
Returns
clearField(Descriptors.FieldDescriptor field)
public ScratchDisks.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ScratchDisks.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ScratchDisks.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ScratchDisks getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDiskGb()
Size of the scratch disk, defined in GB.
optional int32 disk_gb = 60990141;
Returns
Type | Description |
int | The diskGb.
|
hasDiskGb()
public boolean hasDiskGb()
Size of the scratch disk, defined in GB.
optional int32 disk_gb = 60990141;
Returns
Type | Description |
boolean | Whether the diskGb field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ScratchDisks other)
public ScratchDisks.Builder mergeFrom(ScratchDisks other)
Parameter
Returns
public ScratchDisks.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ScratchDisks.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ScratchDisks.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDiskGb(int value)
public ScratchDisks.Builder setDiskGb(int value)
Size of the scratch disk, defined in GB.
optional int32 disk_gb = 60990141;
Parameter
Name | Description |
value | int
The diskGb to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ScratchDisks.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ScratchDisks.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ScratchDisks.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides