Package com.google.container.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 TypeMethodDescriptionCorresponds to the type of reservation consumption.intCorresponds to the type of reservation consumption.getKey()Corresponds to the label key of a reservation resource.com.google.protobuf.ByteStringCorresponds to the label key of a reservation resource.getValues(int index) Corresponds to the label value(s) of reservation resource(s).com.google.protobuf.ByteStringgetValuesBytes(int index) Corresponds to the label value(s) of reservation resource(s).intCorresponds to the label value(s) of reservation resource(s).Corresponds to the label value(s) of reservation resource(s).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
-
getConsumeReservationTypeValue
int getConsumeReservationTypeValue()Corresponds to the type of reservation consumption.
.google.container.v1.ReservationAffinity.Type consume_reservation_type = 1;- Returns:
- The enum numeric value on the wire for consumeReservationType.
-
getConsumeReservationType
ReservationAffinity.Type getConsumeReservationType()Corresponds to the type of reservation consumption.
.google.container.v1.ReservationAffinity.Type consume_reservation_type = 1;- Returns:
- The consumeReservationType.
-
getKey
String getKey()Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.
string key = 2;- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.
string key = 2;- Returns:
- The bytes for key.
-
getValuesList
Corresponds to the label value(s) of reservation resource(s).
repeated string values = 3;- Returns:
- A list containing the values.
-
getValuesCount
int getValuesCount()Corresponds to the label value(s) of reservation resource(s).
repeated string values = 3;- Returns:
- The count of values.
-
getValues
Corresponds to the label value(s) of reservation resource(s).
repeated string values = 3;- Parameters:
index- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
com.google.protobuf.ByteString getValuesBytes(int index) Corresponds to the label value(s) of reservation resource(s).
repeated string values = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-