public static final class WorkstationConfig.Host.GceInstance.BoostConfig extends GeneratedMessage implements WorkstationConfig.Host.GceInstance.BoostConfigOrBuilder
A boost configuration is a set of resources that a workstation can use
to increase its performance. If you specify a boost configuration, upon
startup, workstation users can choose to use a VM provisioned under the
boost config by passing the boost config ID in the start request. If
the workstation user does not provide a boost config ID in the start
request, the system will choose a VM from the pool provisioned under
the default config.
Protobuf type
google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.BoostConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ACCELERATORS_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
BOOT_DISK_SIZE_GB_FIELD_NUMBER
public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER
public static final int ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
POOL_SIZE_FIELD_NUMBER
public static final int POOL_SIZE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RESERVATION_AFFINITY_FIELD_NUMBER
public static final int RESERVATION_AFFINITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static WorkstationConfig.Host.GceInstance.BoostConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static WorkstationConfig.Host.GceInstance.BoostConfig.Builder newBuilder()
newBuilder(WorkstationConfig.Host.GceInstance.BoostConfig prototype)
public static WorkstationConfig.Host.GceInstance.BoostConfig.Builder newBuilder(WorkstationConfig.Host.GceInstance.BoostConfig prototype)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseDelimitedFrom(InputStream input)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(CodedInputStream input)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(InputStream input)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Host.GceInstance.BoostConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<WorkstationConfig.Host.GceInstance.BoostConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAccelerators(int index)
public WorkstationConfig.Host.GceInstance.Accelerator getAccelerators(int index)
Optional. A list of the type and count of accelerator cards attached
to the boost instance. Defaults to none.
repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getAcceleratorsCount()
public int getAcceleratorsCount()
Optional. A list of the type and count of accelerator cards attached
to the boost instance. Defaults to none.
repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getAcceleratorsList()
public List<WorkstationConfig.Host.GceInstance.Accelerator> getAcceleratorsList()
Optional. A list of the type and count of accelerator cards attached
to the boost instance. Defaults to none.
repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 3 [(.google.api.field_behavior) = OPTIONAL];
getAcceleratorsOrBuilder(int index)
public WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
Optional. A list of the type and count of accelerator cards attached
to the boost instance. Defaults to none.
repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getAcceleratorsOrBuilderList()
public List<? extends WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
Optional. A list of the type and count of accelerator cards attached
to the boost instance. Defaults to none.
repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder> |
|
getBootDiskSizeGb()
public int getBootDiskSizeGb()
Optional. The size of the boot disk for the VM in gigabytes (GB).
The minimum boot disk size is 30 GB. Defaults to 50 GB.
int32 boot_disk_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The bootDiskSizeGb.
|
getDefaultInstanceForType()
public WorkstationConfig.Host.GceInstance.BoostConfig getDefaultInstanceForType()
getEnableNestedVirtualization()
public boolean getEnableNestedVirtualization()
Optional. Whether to enable nested virtualization on boosted Cloud
Workstations VMs running using this boost configuration.
Defaults to false.
Nested virtualization lets you run virtual machine (VM) instances
inside your workstation. Before enabling nested virtualization,
consider the following important considerations. Cloud Workstations
instances are subject to the same restrictions as Compute Engine
instances:
- Organization policy: projects, folders, or
organizations may be restricted from creating nested VMs if the
Disable VM nested virtualization constraint is enforced in
the organization policy. For more information, see the
Compute Engine section,
Checking whether nested virtualization is
allowed.
- Performance: nested VMs might experience a 10% or greater
decrease in performance for workloads that are CPU-bound and
possibly greater than a 10% decrease for workloads that are
input/output bound.
- Machine Type: nested virtualization can only be enabled on
boost configurations that specify a
machine_type
in the N1 or N2 machine series.
bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The enableNestedVirtualization.
|
getId()
Required. The ID to be used for the boost configuration.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The id.
|
getIdBytes()
public ByteString getIdBytes()
Required. The ID to be used for the boost configuration.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for id.
|
getMachineType()
public String getMachineType()
Optional. The type of machine that boosted VM instances will use—for
example, e2-standard-4. For more information about machine types
that Cloud Workstations supports, see the list of available machine
types.
Defaults to e2-standard-4.
string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The machineType.
|
getMachineTypeBytes()
public ByteString getMachineTypeBytes()
Optional. The type of machine that boosted VM instances will use—for
example, e2-standard-4. For more information about machine types
that Cloud Workstations supports, see the list of available machine
types.
Defaults to e2-standard-4.
string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for machineType.
|
getParserForType()
public Parser<WorkstationConfig.Host.GceInstance.BoostConfig> getParserForType()
Overrides
getPoolSize()
Optional. The number of boost VMs that the system should keep idle so
that workstations can be boosted quickly. Defaults to 0.
int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The poolSize.
|
getReservationAffinity()
public WorkstationConfig.Host.GceInstance.ReservationAffinity getReservationAffinity()
Optional.
ReservationAffinity
specifies a reservation that can be consumed to create boost VM
instances. If SPECIFIC_RESERVATION is specified, Cloud Workstations
will only create VMs in the zone where the reservation is located.
This would affect availability since the service will no longer be
resilient to zonal outages. If ANY_RESERVATION is specified, creating
reservations in both zones that the config creates VMs in will ensure
higher availability.
Important Considerations for Reservation Affinity:
- This feature is intended for advanced users and requires
familiarity with Google Compute Engine reservations.
- Using reservations incurs charges, regardless of utilization.
- The resources in the pool will consume the specified
reservation. Take this into account when setting the
pool size.
.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.ReservationAffinity reservation_affinity = 6 [(.google.api.field_behavior) = OPTIONAL];
getReservationAffinityOrBuilder()
public WorkstationConfig.Host.GceInstance.ReservationAffinityOrBuilder getReservationAffinityOrBuilder()
Optional.
ReservationAffinity
specifies a reservation that can be consumed to create boost VM
instances. If SPECIFIC_RESERVATION is specified, Cloud Workstations
will only create VMs in the zone where the reservation is located.
This would affect availability since the service will no longer be
resilient to zonal outages. If ANY_RESERVATION is specified, creating
reservations in both zones that the config creates VMs in will ensure
higher availability.
Important Considerations for Reservation Affinity:
- This feature is intended for advanced users and requires
familiarity with Google Compute Engine reservations.
- Using reservations incurs charges, regardless of utilization.
- The resources in the pool will consume the specified
reservation. Take this into account when setting the
pool size.
.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.ReservationAffinity reservation_affinity = 6 [(.google.api.field_behavior) = OPTIONAL];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasReservationAffinity()
public boolean hasReservationAffinity()
Optional.
ReservationAffinity
specifies a reservation that can be consumed to create boost VM
instances. If SPECIFIC_RESERVATION is specified, Cloud Workstations
will only create VMs in the zone where the reservation is located.
This would affect availability since the service will no longer be
resilient to zonal outages. If ANY_RESERVATION is specified, creating
reservations in both zones that the config creates VMs in will ensure
higher availability.
Important Considerations for Reservation Affinity:
- This feature is intended for advanced users and requires
familiarity with Google Compute Engine reservations.
- Using reservations incurs charges, regardless of utilization.
- The resources in the pool will consume the specified
reservation. Take this into account when setting the
pool size.
.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.ReservationAffinity reservation_affinity = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the reservationAffinity field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public WorkstationConfig.Host.GceInstance.BoostConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected WorkstationConfig.Host.GceInstance.BoostConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public WorkstationConfig.Host.GceInstance.BoostConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides