Package com.google.container.v1beta1
Interface ReservationAffinityOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ReservationAffinity,ReservationAffinity.Builder
public interface ReservationAffinityOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservationAffinity.TypegetConsumeReservationType()Corresponds to the type of reservation consumption.intgetConsumeReservationTypeValue()Corresponds to the type of reservation consumption.StringgetKey()Corresponds to the label key of a reservation resource.com.google.protobuf.ByteStringgetKeyBytes()Corresponds to the label key of a reservation resource.StringgetValues(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).intgetValuesCount()Corresponds to the label value(s) of reservation resource(s).List<String>getValuesList()Corresponds to the label value(s) of reservation resource(s).-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getConsumeReservationTypeValue
int getConsumeReservationTypeValue()
Corresponds to the type of reservation consumption.
.google.container.v1beta1.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.v1beta1.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
List<String> 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
String getValues(int index)
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.
-
-