Class BootDiskConfig.Builder (2.35.0)

public static final class BootDiskConfig.Builder extends GeneratedMessageV3.Builder<BootDiskConfig.Builder> implements BootDiskConfigOrBuilder

Boot disk configurations.

Protobuf type google.cloud.tpu.v2alpha1.BootDiskConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BootDiskConfig build()
Returns
TypeDescription
BootDiskConfig

buildPartial()

public BootDiskConfig buildPartial()
Returns
TypeDescription
BootDiskConfig

clear()

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

clearCustomerEncryptionKey()

public BootDiskConfig.Builder clearCustomerEncryptionKey()

Optional. Customer encryption key for boot disk.

.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BootDiskConfig.Builder

clearEnableConfidentialCompute()

public BootDiskConfig.Builder clearEnableConfidentialCompute()

Optional. Whether the boot disk will be created with confidential compute mode.

bool enable_confidential_compute = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BootDiskConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCustomerEncryptionKey()

public CustomerEncryptionKey getCustomerEncryptionKey()

Optional. Customer encryption key for boot disk.

.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CustomerEncryptionKey

The customerEncryptionKey.

getCustomerEncryptionKeyBuilder()

public CustomerEncryptionKey.Builder getCustomerEncryptionKeyBuilder()

Optional. Customer encryption key for boot disk.

.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CustomerEncryptionKey.Builder

getCustomerEncryptionKeyOrBuilder()

public CustomerEncryptionKeyOrBuilder getCustomerEncryptionKeyOrBuilder()

Optional. Customer encryption key for boot disk.

.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CustomerEncryptionKeyOrBuilder

getDefaultInstanceForType()

public BootDiskConfig getDefaultInstanceForType()
Returns
TypeDescription
BootDiskConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableConfidentialCompute()

public boolean getEnableConfidentialCompute()

Optional. Whether the boot disk will be created with confidential compute mode.

bool enable_confidential_compute = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The enableConfidentialCompute.

hasCustomerEncryptionKey()

public boolean hasCustomerEncryptionKey()

Optional. Customer encryption key for boot disk.

.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the customerEncryptionKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomerEncryptionKey(CustomerEncryptionKey value)

public BootDiskConfig.Builder mergeCustomerEncryptionKey(CustomerEncryptionKey value)

Optional. Customer encryption key for boot disk.

.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCustomerEncryptionKey
Returns
TypeDescription
BootDiskConfig.Builder

mergeFrom(BootDiskConfig other)

public BootDiskConfig.Builder mergeFrom(BootDiskConfig other)
Parameter
NameDescription
otherBootDiskConfig
Returns
TypeDescription
BootDiskConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomerEncryptionKey(CustomerEncryptionKey value)

public BootDiskConfig.Builder setCustomerEncryptionKey(CustomerEncryptionKey value)

Optional. Customer encryption key for boot disk.

.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCustomerEncryptionKey
Returns
TypeDescription
BootDiskConfig.Builder

setCustomerEncryptionKey(CustomerEncryptionKey.Builder builderForValue)

public BootDiskConfig.Builder setCustomerEncryptionKey(CustomerEncryptionKey.Builder builderForValue)

Optional. Customer encryption key for boot disk.

.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueCustomerEncryptionKey.Builder
Returns
TypeDescription
BootDiskConfig.Builder

setEnableConfidentialCompute(boolean value)

public BootDiskConfig.Builder setEnableConfidentialCompute(boolean value)

Optional. Whether the boot disk will be created with confidential compute mode.

bool enable_confidential_compute = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The enableConfidentialCompute to set.

Returns
TypeDescription
BootDiskConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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