Class Instance.Builder (1.4.0)

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

The definition of a notebook instance.

Protobuf type google.cloud.notebooks.v1.Instance

Implements

InstanceOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDisks(Iterable<? extends Instance.Disk> values)

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

Output only. Attached disks to notebook instance.

repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addAllInstanceOwners(Iterable<String> values)

public Instance.Builder addAllInstanceOwners(Iterable<String> values)

Input only. The owner of this instance after creation. Format: alias@example.com Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The instanceOwners to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

addAllServiceAccountScopes(Iterable<String> values)

public Instance.Builder addAllServiceAccountScopes(Iterable<String> values)

Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following scopes are defined:

repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The serviceAccountScopes to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

addAllTags(Iterable<String> values)

public Instance.Builder addAllTags(Iterable<String> values)

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

addAllUpgradeHistory(Iterable<? extends Instance.UpgradeHistoryEntry> values)

public Instance.Builder addAllUpgradeHistory(Iterable<? extends Instance.UpgradeHistoryEntry> values)

The upgrade history of this instance.

repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;

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

addDisks(Instance.Disk value)

public Instance.Builder addDisks(Instance.Disk value)

Output only. Attached disks to notebook instance.

repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInstance.Disk
Returns
TypeDescription
Instance.Builder

addDisks(Instance.Disk.Builder builderForValue)

public Instance.Builder addDisks(Instance.Disk.Builder builderForValue)

Output only. Attached disks to notebook instance.

repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addDisks(int index, Instance.Disk value)

public Instance.Builder addDisks(int index, Instance.Disk value)

Output only. Attached disks to notebook instance.

repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueInstance.Disk
Returns
TypeDescription
Instance.Builder

addDisks(int index, Instance.Disk.Builder builderForValue)

public Instance.Builder addDisks(int index, Instance.Disk.Builder builderForValue)

Output only. Attached disks to notebook instance.

repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addDisksBuilder()

public Instance.Disk.Builder addDisksBuilder()

Output only. Attached disks to notebook instance.

repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.Disk.Builder

addDisksBuilder(int index)

public Instance.Disk.Builder addDisksBuilder(int index)

Output only. Attached disks to notebook instance.

repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Disk.Builder

addInstanceOwners(String value)

public Instance.Builder addInstanceOwners(String value)

Input only. The owner of this instance after creation. Format: alias@example.com Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueString

The instanceOwners to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

addInstanceOwnersBytes(ByteString value)

public Instance.Builder addInstanceOwnersBytes(ByteString value)

Input only. The owner of this instance after creation. Format: alias@example.com Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the instanceOwners to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.