Class SecondaryBootDisk.Builder (2.43.0)

public static final class SecondaryBootDisk.Builder extends GeneratedMessageV3.Builder<SecondaryBootDisk.Builder> implements SecondaryBootDiskOrBuilder

SecondaryBootDisk represents a persistent disk attached to a node with special configurations based on its mode.

Protobuf type google.container.v1.SecondaryBootDisk

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecondaryBootDisk build()
Returns
TypeDescription
SecondaryBootDisk

buildPartial()

public SecondaryBootDisk buildPartial()
Returns
TypeDescription
SecondaryBootDisk

clear()

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

clearDiskImage()

public SecondaryBootDisk.Builder clearDiskImage()

Fully-qualified resource ID for an existing disk image.

string disk_image = 2;

Returns
TypeDescription
SecondaryBootDisk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public SecondaryBootDisk.Builder clearMode()

Disk mode (container image cache, etc.)

.google.container.v1.SecondaryBootDisk.Mode mode = 1;

Returns
TypeDescription
SecondaryBootDisk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SecondaryBootDisk getDefaultInstanceForType()
Returns
TypeDescription
SecondaryBootDisk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskImage()

public String getDiskImage()

Fully-qualified resource ID for an existing disk image.

string disk_image = 2;

Returns
TypeDescription
String

The diskImage.

getDiskImageBytes()

public ByteString getDiskImageBytes()

Fully-qualified resource ID for an existing disk image.

string disk_image = 2;

Returns
TypeDescription
ByteString

The bytes for diskImage.

getMode()

public SecondaryBootDisk.Mode getMode()

Disk mode (container image cache, etc.)

.google.container.v1.SecondaryBootDisk.Mode mode = 1;

Returns
TypeDescription
SecondaryBootDisk.Mode

The mode.

getModeValue()

public int getModeValue()

Disk mode (container image cache, etc.)

.google.container.v1.SecondaryBootDisk.Mode mode = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecondaryBootDisk other)

public SecondaryBootDisk.Builder mergeFrom(SecondaryBootDisk other)
Parameter
NameDescription
otherSecondaryBootDisk
Returns
TypeDescription
SecondaryBootDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDiskImage(String value)

public SecondaryBootDisk.Builder setDiskImage(String value)

Fully-qualified resource ID for an existing disk image.

string disk_image = 2;

Parameter
NameDescription
valueString

The diskImage to set.

Returns
TypeDescription
SecondaryBootDisk.Builder

This builder for chaining.

setDiskImageBytes(ByteString value)

public SecondaryBootDisk.Builder setDiskImageBytes(ByteString value)

Fully-qualified resource ID for an existing disk image.

string disk_image = 2;

Parameter
NameDescription
valueByteString

The bytes for diskImage to set.

Returns
TypeDescription
SecondaryBootDisk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(SecondaryBootDisk.Mode value)

public SecondaryBootDisk.Builder setMode(SecondaryBootDisk.Mode value)

Disk mode (container image cache, etc.)

.google.container.v1.SecondaryBootDisk.Mode mode = 1;

Parameter
NameDescription
valueSecondaryBootDisk.Mode

The mode to set.

Returns
TypeDescription
SecondaryBootDisk.Builder

This builder for chaining.

setModeValue(int value)

public SecondaryBootDisk.Builder setModeValue(int value)

Disk mode (container image cache, etc.)

.google.container.v1.SecondaryBootDisk.Mode mode = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for mode to set.

Returns
TypeDescription
SecondaryBootDisk.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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