Package com.google.cloud.aiplatform.v1
Interface ReservationAffinityOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ReservationAffinity,ReservationAffinity.Builder
@Generated
public interface ReservationAffinityOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()Optional.com.google.protobuf.ByteStringOptional.Required.intRequired.getValues(int index) Optional.com.google.protobuf.ByteStringgetValuesBytes(int index) Optional.intOptional.Optional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getReservationAffinityTypeValue
int getReservationAffinityTypeValue()Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for reservationAffinityType.
-
getReservationAffinityType
ReservationAffinity.Type getReservationAffinityType()Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The reservationAffinityType.
-
getKey
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:
- The key.
-
getKeyBytes
com.google.protobuf.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:
- The bytes for key.
-
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:
- A list containing the values.
-
getValuesCount
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:
- The count of values.
-
getValues
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) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
com.google.protobuf.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) = { ... }- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-