Package com.google.cloud.dataproc.v1
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.Type
getConsumeReservationType()
Optional.int
getConsumeReservationTypeValue()
Optional.String
getKey()
Optional.com.google.protobuf.ByteString
getKeyBytes()
Optional.String
getValues(int index)
Optional.com.google.protobuf.ByteString
getValuesBytes(int index)
Optional.int
getValuesCount()
Optional.List<String>
getValuesList()
Optional.-
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()
Optional. Type of reservation to consume
.google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The enum numeric value on the wire for consumeReservationType.
-
getConsumeReservationType
ReservationAffinity.Type getConsumeReservationType()
Optional. Type of reservation to consume
.google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The consumeReservationType.
-
getKey
String getKey()
Optional. Corresponds to the label key of reservation resource.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()
Optional. Corresponds to the label key of reservation resource.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The bytes for key.
-
getValuesList
List<String> getValuesList()
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- A list containing the values.
-
getValuesCount
int getValuesCount()
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The count of values.
-
getValues
String getValues(int index)
Optional. Corresponds to the label values of reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
- 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 reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
-