Class Instance.Disk.Builder (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Instance.Disk.Builder extends GeneratedMessageV3.Builder<Instance.Disk.Builder> implements Instance.DiskOrBuilder

An instance-attached disk resource.

Protobuf type google.cloud.notebooks.v1.Instance.Disk

Static Methods

getDescriptor()

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

Methods

addAllGuestOsFeatures(Iterable<? extends Instance.Disk.GuestOsFeature> values)

public Instance.Disk.Builder addAllGuestOsFeatures(Iterable<? extends Instance.Disk.GuestOsFeature> values)

Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature>
Returns
TypeDescription
Instance.Disk.Builder

addAllLicenses(Iterable<String> values)

public Instance.Disk.Builder addAllLicenses(Iterable<String> values)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Parameter
NameDescription
valuesIterable<String>

The licenses to add.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

addGuestOsFeatures(Instance.Disk.GuestOsFeature value)

public Instance.Disk.Builder addGuestOsFeatures(Instance.Disk.GuestOsFeature value)

Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
valueInstance.Disk.GuestOsFeature
Returns
TypeDescription
Instance.Disk.Builder

addGuestOsFeatures(Instance.Disk.GuestOsFeature.Builder builderForValue)

public Instance.Disk.Builder addGuestOsFeatures(Instance.Disk.GuestOsFeature.Builder builderForValue)

Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
builderForValueInstance.Disk.GuestOsFeature.Builder
Returns
TypeDescription
Instance.Disk.Builder

addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)

public Instance.Disk.Builder addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)

Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameters
NameDescription
indexint
valueInstance.Disk.GuestOsFeature
Returns
TypeDescription
Instance.Disk.Builder

addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)

public Instance.Disk.Builder addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)

Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameters
NameDescription
indexint
builderForValueInstance.Disk.GuestOsFeature.Builder
Returns
TypeDescription
Instance.Disk.Builder

addGuestOsFeaturesBuilder()

public Instance.Disk.GuestOsFeature.Builder addGuestOsFeaturesBuilder()

Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Returns
TypeDescription
Instance.Disk.GuestOsFeature.Builder

addGuestOsFeaturesBuilder(int index)

public Instance.Disk.GuestOsFeature.Builder addGuestOsFeaturesBuilder(int index)

Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Disk.GuestOsFeature.Builder

addLicenses(String value)

public Instance.Disk.Builder addLicenses(String value)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Parameter
NameDescription
valueString

The licenses to add.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

addLicensesBytes(ByteString value)

public Instance.Disk.Builder addLicensesBytes(ByteString value)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Parameter
NameDescription
valueByteString

The bytes of the licenses to add.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance.Disk build()
Returns
TypeDescription
Instance.Disk

buildPartial()

public Instance.Disk buildPartial()
Returns
TypeDescription
Instance.Disk

clear()

public Instance.Disk.Builder clear()
Returns
TypeDescription
Instance.Disk.Builder
Overrides