public interface ReservationAffinityOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getKey()
public abstract String getKey()
Optional. Corresponds to the label key of a reservation resource. To target
a SPECIFIC_RESERVATION by name, use
compute.googleapis.com/reservation-name
as the key and specify the name
of your reservation as its value.
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 a reservation resource. To target
a SPECIFIC_RESERVATION by name, use
compute.googleapis.com/reservation-name
as the key and specify the name
of your reservation as its value.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for key. |
getReservationAffinityType()
public abstract ReservationAffinity.Type getReservationAffinityType()
Required. Specifies the reservation affinity type.
.google.cloud.vertexai.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ReservationAffinity.Type |
The reservationAffinityType. |
getReservationAffinityTypeValue()
public abstract int getReservationAffinityTypeValue()
Required. Specifies the reservation affinity type.
.google.cloud.vertexai.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for reservationAffinityType. |
getValues(int index)
public abstract String getValues(int index)
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
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 a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
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 a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
int |
The count of values. |
getValuesList()
public abstract List<String> getValuesList()
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
List<String> |
A list containing the values. |