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()
      Corresponds to the type of reservation consumption.
      int getConsumeReservationTypeValue()
      Corresponds to the type of reservation consumption.
      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 value(s) of reservation resource(s).
      com.google.protobuf.ByteString getValuesBytes​(int index)
      Corresponds to the label value(s) of reservation resource(s).
      int getValuesCount()
      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.MessageLiteOrBuilder

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

        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.