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 Type
    Method
    Description
    Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION.
    com.google.protobuf.ByteString
    Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION.
    Corresponds to the label key of a reservation resource.
    com.google.protobuf.ByteString
    Corresponds to the label key of a reservation resource.
    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
    Corresponds to the label values of a reservation resource.
    Corresponds to the label values of a reservation resource.
    boolean
    Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION.
    boolean
    Corresponds to the label key of a reservation resource.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasConsumeReservationType

      boolean 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;
      Returns:
      Whether the consumeReservationType field is set.
    • getConsumeReservationType

      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;
      Returns:
      The consumeReservationType.
    • getConsumeReservationTypeBytes

      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;
      Returns:
      The bytes for consumeReservationType.
    • hasKey

      boolean hasKey()
       Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by name, specifygoogleapis.com/reservation-name as the key and specify
       the name of your reservation as its value.
       
      optional string key = 106079;
      Returns:
      Whether the key field is set.
    • getKey

      String getKey()
       Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by name, specifygoogleapis.com/reservation-name as the key and specify
       the name of your reservation as its value.
       
      optional string key = 106079;
      Returns:
      The key.
    • getKeyBytes

      com.google.protobuf.ByteString getKeyBytes()
       Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by name, specifygoogleapis.com/reservation-name as the key and specify
       the name of your reservation as its value.
       
      optional string key = 106079;
      Returns:
      The bytes for key.
    • getValuesList

      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;
      Returns:
      A list containing the values.
    • getValuesCount

      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;
      Returns:
      The count of values.
    • getValues

      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;
      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 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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the values at the given index.