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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WorkstationConfig.Host.GceInstance.BuilderImplements
WorkstationConfig.Host.GceInstanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The tags to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
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 | |
---|---|
Name | Description |
value | String The tags to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the tags to add. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder | This builder for chaining. |
build()
public WorkstationConfig.Host.GceInstance build()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance |
buildPartial()
public WorkstationConfig.Host.GceInstance buildPartial()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance |
clear()
public WorkstationConfig.Host.GceInstance.Builder clear()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
clearBootDiskSizeGb()
public WorkstationConfig.Host.GceInstance.Builder clearBootDiskSizeGb()
Size of the boot disk in GB.
int32 boot_disk_size_gb = 9;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public WorkstationConfig.Host.GceInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
clearMachineType()
public WorkstationConfig.Host.GceInstance.Builder clearMachineType()
The name of a Compute Engine machine type.
string machine_type = 1;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public WorkstationConfig.Host.GceInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
clearPoolSize()
public WorkstationConfig.Host.GceInstance.Builder clearPoolSize()
Number of instances to pool for faster workstation starup.
int32 pool_size = 5;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder | This builder for chaining. |
clearServiceAccount()
public WorkstationConfig.Host.GceInstance.Builder clearServiceAccount()
Email address of the service account that will be used on VM instances used to support this config. This service account must have permission to pull the specified container image. If not set, VMs will run without a service account, in which case the image must be publicly accessible.
string service_account = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder | This builder for chaining. |
clone()
public WorkstationConfig.Host.GceInstance.Builder clone()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
getBootDiskSizeGb()
public int getBootDiskSizeGb()
Size of the boot disk in GB.
int32 boot_disk_size_gb = 9;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder |
getDefaultInstanceForType()
public WorkstationConfig.Host.GceInstance getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisablePublicIpAddresses()
public boolean getDisablePublicIpAddresses()
Whether instances have no public IP address.
bool disable_public_ip_addresses = 6;
Returns | |
---|---|
Type | Description |
boolean | The disablePublicIpAddresses. |
getMachineType()
public String getMachineType()
The name of a Compute Engine machine type.
string machine_type = 1;
Returns | |
---|---|
Type | Description |
String | The machineType. |
getMachineTypeBytes()
public ByteString getMachineTypeBytes()
The name of a Compute Engine machine type.
string machine_type = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for machineType. |
getPoolSize()
public int getPoolSize()
Number of instances to pool for faster workstation starup.
int32 pool_size = 5;
Returns | |
---|---|
Type | Description |
int | The poolSize. |
getServiceAccount()
public String getServiceAccount()
Email address of the service account that will be used on VM instances used to support this config. This service account must have permission to pull the specified container image. If not set, VMs will run without a service account, in which case the image must be publicly accessible.
string service_account = 2;
Returns | |
---|---|
Type | Description |
String | The serviceAccount. |
getServiceAccountBytes()
public ByteString getServiceAccountBytes()
Email address of the service account that will be used on VM instances used to support this config. This service account must have permission to pull the specified container image. If not set, VMs will run without a service account, in which case the image must be publicly accessible.
string service_account = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the shieldedInstanceConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
value | WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
mergeFrom(WorkstationConfig.Host.GceInstance other)
public WorkstationConfig.Host.GceInstance.Builder mergeFrom(WorkstationConfig.Host.GceInstance other)
Parameter | |
---|---|
Name | Description |
other | WorkstationConfig.Host.GceInstance |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WorkstationConfig.Host.GceInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public WorkstationConfig.Host.GceInstance.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
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 | |
---|---|
Name | Description |
value | WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WorkstationConfig.Host.GceInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
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 | |
---|---|
Name | Description |
value | int The bootDiskSizeGb to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | boolean The disablePublicIpAddresses to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
setMachineType(String value)
public WorkstationConfig.Host.GceInstance.Builder setMachineType(String value)
The name of a Compute Engine machine type.
string machine_type = 1;
Parameter | |
---|---|
Name | Description |
value | String The machineType to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for machineType to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The poolSize to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |
setServiceAccount(String value)
public WorkstationConfig.Host.GceInstance.Builder setServiceAccount(String value)
Email address of the service account that will be used on VM instances used to support this config. This service account must have permission to pull the specified container image. If not set, VMs will run without a service account, in which case the image must be publicly accessible.
string service_account = 2;
Parameter | |
---|---|
Name | Description |
value | String The serviceAccount to set. |
Returns | |
---|---|
Type | Description |
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 that will be used on VM instances used to support this config. This service account must have permission to pull the specified container image. If not set, VMs will run without a service account, in which case the image must be publicly accessible.
string service_account = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for serviceAccount to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The tags to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final WorkstationConfig.Host.GceInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.GceInstance.Builder |