Interface AllocationAffinityOrBuilder (0.33.0)

publicinterface AllocationAffinityOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.