public interface ReservationAffinityOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
com.google.protobuf.ByteString |
getConsumeReservationTypeBytes()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
String |
getKey()
Corresponds to the label key of a reservation resource.
|
com.google.protobuf.ByteString |
getKeyBytes()
Corresponds to the label key of a reservation resource.
|
String |
getValues(int index)
Corresponds to the label values of a reservation resource.
|
com.google.protobuf.ByteString |
getValuesBytes(int index)
Corresponds to the label values of a reservation resource.
|
int |
getValuesCount()
Corresponds to the label values of a reservation resource.
|
List<String> |
getValuesList()
Corresponds to the label values of a reservation resource.
|
boolean |
hasConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
boolean |
hasKey()
Corresponds to the label key of a reservation resource.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;String getConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;com.google.protobuf.ByteString getConsumeReservationTypeBytes()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;boolean hasKey()
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;String getKey()
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;com.google.protobuf.ByteString getKeyBytes()
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;List<String> getValuesList()
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;int getValuesCount()
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;String getValues(int index)
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;index - The index of the element to return.com.google.protobuf.ByteString getValuesBytes(int index)
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;index - The index of the value to return.Copyright © 2023 Google LLC. All rights reserved.