Interface WorkstationConfig.Host.GceInstance.ReservationAffinityOrBuilder (0.81.0)

public static interface WorkstationConfig.Host.GceInstance.ReservationAffinityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConsumeReservationType()

public abstract WorkstationConfig.Host.GceInstance.ReservationAffinity.Type getConsumeReservationType()

Optional. Corresponds to the type of reservation consumption.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkstationConfig.Host.GceInstance.ReservationAffinity.Type

The consumeReservationType.

getConsumeReservationTypeValue()

public abstract int getConsumeReservationTypeValue()

Optional. Corresponds to the type of reservation consumption.

.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for consumeReservationType.

getKey()

public abstract String getKey()

Optional. Corresponds to the label key of reservation resource.

string key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The key.

getKeyBytes()

public abstract ByteString getKeyBytes()

Optional. Corresponds to the label key of reservation resource.

string key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for key.

getValues(int index)

public abstract String getValues(int index)

Optional. Corresponds to the label values of reservation resources. Valid values are either the name of a reservation in the same project or "projects/{project}/reservations/{reservation}" to target a shared reservation in the same zone but in a different project.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The values at the given index.

getValuesBytes(int index)

public abstract ByteString getValuesBytes(int index)

Optional. Corresponds to the label values of reservation resources. Valid values are either the name of a reservation in the same project or "projects/{project}/reservations/{reservation}" to target a shared reservation in the same zone but in a different project.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the values at the given index.

getValuesCount()

public abstract int getValuesCount()

Optional. Corresponds to the label values of reservation resources. Valid values are either the name of a reservation in the same project or "projects/{project}/reservations/{reservation}" to target a shared reservation in the same zone but in a different project.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of values.

getValuesList()

public abstract List<String> getValuesList()

Optional. Corresponds to the label values of reservation resources. Valid values are either the name of a reservation in the same project or "projects/{project}/reservations/{reservation}" to target a shared reservation in the same zone but in a different project.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the values.