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
      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.
      • 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 Detail

      • 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 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;
        Returns:
        Whether the key field is set.
      • getKey

        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;
        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 googleapis.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.