Interface ReservationAffinityOrBuilder (1.39.0)

public interface ReservationAffinityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConsumeReservationType()

public abstract ReservationAffinity.Type getConsumeReservationType()

Optional. Type of reservation to consume

.google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ReservationAffinity.Type

The consumeReservationType.

getConsumeReservationTypeValue()

public abstract int getConsumeReservationTypeValue()

Optional. Type of reservation to consume

.google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for key.

getValues(int index)

public abstract String getValues(int index)

Optional. Corresponds to the label values of reservation resource.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public abstract ByteString getValuesBytes(int index)

Optional. Corresponds to the label values of reservation resource.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public abstract int getValuesCount()

Optional. Corresponds to the label values of reservation resource.

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

Returns
TypeDescription
int

The count of values.

getValuesList()

public abstract List<String> getValuesList()

Optional. Corresponds to the label values of reservation resource.

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

Returns
TypeDescription
List<String>

A list containing the values.