Interface AllocationAffinityOrBuilder (0.33.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface AllocationAffinityOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getConsumeAllocationType()
publicabstractAllocationAffinity.TypegetConsumeAllocationType()Optional. Specifies the type of reservation from which this instance can consume
optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [json_name = "consumeReservationType", (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AllocationAffinity.Type |
The consumeAllocationType. |
getConsumeAllocationTypeValue()
publicabstractintgetConsumeAllocationTypeValue()Optional. Specifies the type of reservation from which this instance can consume
optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [json_name = "consumeReservationType", (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for consumeAllocationType. |
getKey()
publicabstractStringgetKey()Optional. Corresponds to the label key of a reservation resource.
optional string key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
publicabstractByteStringgetKeyBytes()Optional. Corresponds to the label key of a reservation resource.
optional string key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for key. |
getValues(int index)
publicabstractStringgetValues(intindex)Optional. Corresponds to the label values of a reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The values at the given index. |
getValuesBytes(int index)
publicabstractByteStringgetValuesBytes(intindex)Optional. Corresponds to the label values of a reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the values at the given index. |
getValuesCount()
publicabstractintgetValuesCount()Optional. Corresponds to the label values of a reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of values. |
getValuesList()
publicabstractList<String>getValuesList()Optional. Corresponds to the label values of a reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the values. |
hasConsumeAllocationType()
publicabstractbooleanhasConsumeAllocationType()Optional. Specifies the type of reservation from which this instance can consume
optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [json_name = "consumeReservationType", (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the consumeAllocationType field is set. |
hasKey()
publicabstractbooleanhasKey()Optional. Corresponds to the label key of a reservation resource.
optional string key = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the key field is set. |