Interface ReservationAffinityOrBuilder (1.41.0)

public interface ReservationAffinityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConsumeReservationType()

public abstract ReservationAffinity.Type getConsumeReservationType()

Optional. Type of reservation to consume

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

Returns
Type Description
ReservationAffinity.Type

The consumeReservationType.

getConsumeReservationTypeValue()

public abstract int getConsumeReservationTypeValue()

Optional. Type of reservation to consume

.google.cloud.notebooks.v1beta1.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 resource.

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 resource.

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 resource.

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 resource.

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

Returns
Type Description
List<String>

A list containing the values.