public interface AllocationAffinityOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getConsumeAllocationType()
public abstract AllocationAffinity.Type getConsumeAllocationType()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()
public abstract int getConsumeAllocationTypeValue()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()
public abstract String getKey()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()
public abstract ByteString getKeyBytes()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)
public abstract String getValues(int index)Optional. Corresponds to the label values of a reservation resource.
 repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| index | intThe index of the element to return. | 
| Returns | |
|---|---|
| Type | Description | 
| String | The values at the given index. | 
getValuesBytes(int index)
public abstract ByteString getValuesBytes(int index)Optional. Corresponds to the label values of a reservation resource.
 repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| index | intThe index of the value to return. | 
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes of the values at the given index. | 
getValuesCount()
public abstract int getValuesCount()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()
public abstract List<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()
public abstract boolean hasConsumeAllocationType()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()
public abstract boolean hasKey()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. |