Class WorkstationConfig.Host.GceInstance.Builder (0.3.0)

public static final class WorkstationConfig.Host.GceInstance.Builder extends GeneratedMessageV3.Builder<WorkstationConfig.Host.GceInstance.Builder> implements WorkstationConfig.Host.GceInstanceOrBuilder

A runtime using a Compute Engine instance.

Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance

Static Methods

getDescriptor()

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

Methods

addAllTags(Iterable<String> values)

public WorkstationConfig.Host.GceInstance.Builder addAllTags(Iterable<String> values)

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Parameter
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTags(String value)

public WorkstationConfig.Host.GceInstance.Builder addTags(String value)

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Parameter
NameDescription
valueString

The tags to add.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public WorkstationConfig.Host.GceInstance.Builder addTagsBytes(ByteString value)

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Parameter
NameDescription
valueByteString

The bytes of the tags to add.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

build()

public WorkstationConfig.Host.GceInstance build()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance

buildPartial()

public WorkstationConfig.Host.GceInstance buildPartial()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance

clear()

public WorkstationConfig.Host.GceInstance.Builder clear()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder
Overrides

clearBootDiskSizeGb()

public WorkstationConfig.Host.GceInstance.Builder clearBootDiskSizeGb()

Size of the boot disk in GB.

int32 boot_disk_size_gb = 9;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

clearConfidentialInstanceConfig()

public WorkstationConfig.Host.GceInstance.Builder clearConfidentialInstanceConfig()

A set of Compute Engine Confidential VM instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

clearDisablePublicIpAddresses()

public WorkstationConfig.Host.GceInstance.Builder clearDisablePublicIpAddresses()

Whether instances have no public IP address.

bool disable_public_ip_addresses = 6;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WorkstationConfig.Host.GceInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder
Overrides

clearMachineType()

public WorkstationConfig.Host.GceInstance.Builder clearMachineType()

The name of a Compute Engine machine type.

string machine_type = 1;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkstationConfig.Host.GceInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder
Overrides

clearPoolSize()

public WorkstationConfig.Host.GceInstance.Builder clearPoolSize()

Number of instances to pool for faster workstation starup.

int32 pool_size = 5;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

clearServiceAccount()

public WorkstationConfig.Host.GceInstance.Builder clearServiceAccount()

Email address of the service account used on VM instances used to support this configuration. If not set, VMs run with a Google-managed service account. This service account must have permission to pull the specified container image; otherwise, the image must be publicly accessible.

string service_account = 2;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

clearShieldedInstanceConfig()

public WorkstationConfig.Host.GceInstance.Builder clearShieldedInstanceConfig()

A set of Compute Engine Shielded instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

clearTags()

public WorkstationConfig.Host.GceInstance.Builder clearTags()

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

clone()

public WorkstationConfig.Host.GceInstance.Builder clone()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder
Overrides

getBootDiskSizeGb()

public int getBootDiskSizeGb()

Size of the boot disk in GB.

int32 boot_disk_size_gb = 9;

Returns
TypeDescription
int

The bootDiskSizeGb.

getConfidentialInstanceConfig()

public WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig()

A set of Compute Engine Confidential VM instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig

The confidentialInstanceConfig.

getConfidentialInstanceConfigBuilder()

public WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder()

A set of Compute Engine Confidential VM instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder

getConfidentialInstanceConfigOrBuilder()

public WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder()

A set of Compute Engine Confidential VM instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder

getDefaultInstanceForType()

public WorkstationConfig.Host.GceInstance getDefaultInstanceForType()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisablePublicIpAddresses()

public boolean getDisablePublicIpAddresses()

Whether instances have no public IP address.

bool disable_public_ip_addresses = 6;

Returns
TypeDescription
boolean

The disablePublicIpAddresses.

getMachineType()

public String getMachineType()

The name of a Compute Engine machine type.

string machine_type = 1;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The name of a Compute Engine machine type.

string machine_type = 1;

Returns
TypeDescription
ByteString

The bytes for machineType.

getPoolSize()

public int getPoolSize()

Number of instances to pool for faster workstation starup.

int32 pool_size = 5;

Returns
TypeDescription
int

The poolSize.

getServiceAccount()

public String getServiceAccount()

Email address of the service account used on VM instances used to support this configuration. If not set, VMs run with a Google-managed service account. This service account must have permission to pull the specified container image; otherwise, the image must be publicly accessible.

string service_account = 2;

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Email address of the service account used on VM instances used to support this configuration. If not set, VMs run with a Google-managed service account. This service account must have permission to pull the specified container image; otherwise, the image must be publicly accessible.

string service_account = 2;

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getShieldedInstanceConfig()

public WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig()

A set of Compute Engine Shielded instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig

The shieldedInstanceConfig.

getShieldedInstanceConfigBuilder()

public WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder()

A set of Compute Engine Shielded instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder

getShieldedInstanceConfigOrBuilder()

public WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()

A set of Compute Engine Shielded instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder

getTags(int index)

public String getTags(int index)

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Returns
TypeDescription
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the tags.

hasConfidentialInstanceConfig()

public boolean hasConfidentialInstanceConfig()

A set of Compute Engine Confidential VM instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10;

Returns
TypeDescription
boolean

Whether the confidentialInstanceConfig field is set.

hasShieldedInstanceConfig()

public boolean hasShieldedInstanceConfig()

A set of Compute Engine Shielded instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
boolean

Whether the shieldedInstanceConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConfidentialInstanceConfig(WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value)

public WorkstationConfig.Host.GceInstance.Builder mergeConfidentialInstanceConfig(WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value)

A set of Compute Engine Confidential VM instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10;

Parameter
NameDescription
valueWorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

mergeFrom(WorkstationConfig.Host.GceInstance other)

public WorkstationConfig.Host.GceInstance.Builder mergeFrom(WorkstationConfig.Host.GceInstance other)
Parameter
NameDescription
otherWorkstationConfig.Host.GceInstance
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WorkstationConfig.Host.GceInstance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder
Overrides

mergeShieldedInstanceConfig(WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value)

public WorkstationConfig.Host.GceInstance.Builder mergeShieldedInstanceConfig(WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value)

A set of Compute Engine Shielded instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8;

Parameter
NameDescription
valueWorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.Host.GceInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder
Overrides

setBootDiskSizeGb(int value)

public WorkstationConfig.Host.GceInstance.Builder setBootDiskSizeGb(int value)

Size of the boot disk in GB.

int32 boot_disk_size_gb = 9;

Parameter
NameDescription
valueint

The bootDiskSizeGb to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

setConfidentialInstanceConfig(WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value)

public WorkstationConfig.Host.GceInstance.Builder setConfidentialInstanceConfig(WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value)

A set of Compute Engine Confidential VM instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10;

Parameter
NameDescription
valueWorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

setConfidentialInstanceConfig(WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue)

public WorkstationConfig.Host.GceInstance.Builder setConfidentialInstanceConfig(WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue)

A set of Compute Engine Confidential VM instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10;

Parameter
NameDescription
builderForValueWorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

setDisablePublicIpAddresses(boolean value)

public WorkstationConfig.Host.GceInstance.Builder setDisablePublicIpAddresses(boolean value)

Whether instances have no public IP address.

bool disable_public_ip_addresses = 6;

Parameter
NameDescription
valueboolean

The disablePublicIpAddresses to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineType(String value)

public WorkstationConfig.Host.GceInstance.Builder setMachineType(String value)

The name of a Compute Engine machine type.

string machine_type = 1;

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public WorkstationConfig.Host.GceInstance.Builder setMachineTypeBytes(ByteString value)

The name of a Compute Engine machine type.

string machine_type = 1;

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

setPoolSize(int value)

public WorkstationConfig.Host.GceInstance.Builder setPoolSize(int value)

Number of instances to pool for faster workstation starup.

int32 pool_size = 5;

Parameter
NameDescription
valueint

The poolSize to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

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

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

setServiceAccount(String value)

public WorkstationConfig.Host.GceInstance.Builder setServiceAccount(String value)

Email address of the service account used on VM instances used to support this configuration. If not set, VMs run with a Google-managed service account. This service account must have permission to pull the specified container image; otherwise, the image must be publicly accessible.

string service_account = 2;

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public WorkstationConfig.Host.GceInstance.Builder setServiceAccountBytes(ByteString value)

Email address of the service account used on VM instances used to support this configuration. If not set, VMs run with a Google-managed service account. This service account must have permission to pull the specified container image; otherwise, the image must be publicly accessible.

string service_account = 2;

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

setShieldedInstanceConfig(WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value)

public WorkstationConfig.Host.GceInstance.Builder setShieldedInstanceConfig(WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value)

A set of Compute Engine Shielded instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8;

Parameter
NameDescription
valueWorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

setShieldedInstanceConfig(WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue)

public WorkstationConfig.Host.GceInstance.Builder setShieldedInstanceConfig(WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue)

A set of Compute Engine Shielded instance options.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8;

Parameter
NameDescription
builderForValueWorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

setTags(int index, String value)

public WorkstationConfig.Host.GceInstance.Builder setTags(int index, String value)

Network tags to add to the Compute Engine machines backing the Workstations.

repeated string tags = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The tags to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.Host.GceInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Builder
Overrides