publicfinalclass AllocationAffinityextendsGeneratedMessageV3implementsAllocationAffinityOrBuilder
Specifies the reservations that this instance can consume from.
Protobuf type google.cloud.backupdr.v1.AllocationAffinity
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONSUME_ALLOCATION_TYPE_FIELD_NUMBER
publicstaticfinalintCONSUME_ALLOCATION_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
KEY_FIELD_NUMBER
publicstaticfinalintKEY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VALUES_FIELD_NUMBER
publicstaticfinalintVALUES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticAllocationAffinitygetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticAllocationAffinity.BuildernewBuilder()
newBuilder(AllocationAffinity prototype)
publicstaticAllocationAffinity.BuildernewBuilder(AllocationAffinityprototype)
publicstaticAllocationAffinityparseDelimitedFrom(InputStreaminput)
publicstaticAllocationAffinityparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticAllocationAffinityparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAllocationAffinityparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticAllocationAffinityparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAllocationAffinityparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticAllocationAffinityparseFrom(CodedInputStreaminput)
publicstaticAllocationAffinityparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticAllocationAffinityparseFrom(InputStreaminput)
publicstaticAllocationAffinityparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticAllocationAffinityparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAllocationAffinityparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<AllocationAffinity>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getConsumeAllocationType()
publicAllocationAffinity.TypegetConsumeAllocationType()
Optional. Specifies the type of reservation from which this instance can
consume
optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
getConsumeAllocationTypeValue()
publicintgetConsumeAllocationTypeValue()
Optional. Specifies the type of reservation from which this instance can
consume
optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for consumeAllocationType.
|
getDefaultInstanceForType()
publicAllocationAffinitygetDefaultInstanceForType()
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()
publicByteStringgetKeyBytes()
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.
|
getParserForType()
publicParser<AllocationAffinity>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getValues(int index)
publicStringgetValues(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)
publicByteStringgetValuesBytes(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()
publicintgetValuesCount()
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()
publicProtocolStringListgetValuesList()
Optional. Corresponds to the label values of a reservation resource.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];
hasConsumeAllocationType()
publicbooleanhasConsumeAllocationType()
Optional. Specifies the type of reservation from which this instance can
consume
optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the consumeAllocationType field is set.
|
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicAllocationAffinity.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAllocationAffinity.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicAllocationAffinity.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides