[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface ReservationAffinityOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.notebooks.v1.ReservationAffinityOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.notebooks.v1.ReservationAffinityOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.notebooks.v1.ReservationAffinityOrBuilder) \n\n public interface ReservationAffinityOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getConsumeReservationType()\n\n public abstract ReservationAffinity.Type getConsumeReservationType()\n\nOptional. Type of reservation to consume\n\n`.google.events.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1;\n`\n\n### getConsumeReservationTypeValue()\n\n public abstract int getConsumeReservationTypeValue()\n\nOptional. Type of reservation to consume\n\n`.google.events.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1;\n`\n\n### getKey()\n\n public abstract String getKey()\n\nOptional. Corresponds to the label key of reservation resource.\n\n`string key = 2;`\n\n### getKeyBytes()\n\n public abstract ByteString getKeyBytes()\n\nOptional. Corresponds to the label key of reservation resource.\n\n`string key = 2;`\n\n### getValues(int index)\n\n public abstract String getValues(int index)\n\nOptional. Corresponds to the label values of reservation resource.\n\n`repeated string values = 3;`\n\n### getValuesBytes(int index)\n\n public abstract ByteString getValuesBytes(int index)\n\nOptional. Corresponds to the label values of reservation resource.\n\n`repeated string values = 3;`\n\n### getValuesCount()\n\n public abstract int getValuesCount()\n\nOptional. Corresponds to the label values of reservation resource.\n\n`repeated string values = 3;`\n\n### getValuesList()\n\n public abstract List\u003cString\u003e getValuesList()\n\nOptional. Corresponds to the label values of reservation resource.\n\n`repeated string values = 3;`"]]