Class Scheduling.NodeAffinity (0.13.0)

publicstaticfinalclass Scheduling.NodeAffinityextendsGeneratedMessageV3implementsScheduling.NodeAffinityOrBuilder

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

Protobuf type google.cloud.backupdr.v1.Scheduling.NodeAffinity

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

KEY_FIELD_NUMBER

publicstaticfinalintKEY_FIELD_NUMBER
Field Value
Type Description
int

OPERATOR_FIELD_NUMBER

publicstaticfinalintOPERATOR_FIELD_NUMBER
Field Value
Type Description
int

VALUES_FIELD_NUMBER

publicstaticfinalintVALUES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticScheduling.NodeAffinitygetDefaultInstance()
Returns
Type Description
Scheduling.NodeAffinity

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticScheduling.NodeAffinity.BuildernewBuilder()
Returns
Type Description
Scheduling.NodeAffinity.Builder

newBuilder(Scheduling.NodeAffinity prototype)

publicstaticScheduling.NodeAffinity.BuildernewBuilder(Scheduling.NodeAffinityprototype)
Parameter
Name Description
prototype Scheduling.NodeAffinity
Returns
Type Description
Scheduling.NodeAffinity.Builder

parseDelimitedFrom(InputStream input)

publicstaticScheduling.NodeAffinityparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticScheduling.NodeAffinityparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticScheduling.NodeAffinityparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticScheduling.NodeAffinityparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticScheduling.NodeAffinityparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticScheduling.NodeAffinityparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticScheduling.NodeAffinityparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticScheduling.NodeAffinityparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticScheduling.NodeAffinityparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticScheduling.NodeAffinityparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticScheduling.NodeAffinityparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticScheduling.NodeAffinityparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.NodeAffinity
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Scheduling.NodeAffinity>parser()
Returns
Type Description
Parser<NodeAffinity>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicScheduling.NodeAffinitygetDefaultInstanceForType()
Returns
Type Description
Scheduling.NodeAffinity

getKey()

publicStringgetKey()

Optional. Corresponds to the label key of Node resource.

optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The key.

getKeyBytes()

publicByteStringgetKeyBytes()

Optional. Corresponds to the label key of Node resource.

optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for key.

getOperator()

publicScheduling.NodeAffinity.OperatorgetOperator()

Optional. Defines the operation of node selection.

optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Scheduling.NodeAffinity.Operator

The operator.

getOperatorValue()

publicintgetOperatorValue()

Optional. Defines the operation of node selection.

optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for operator.

getParserForType()

publicParser<Scheduling.NodeAffinity>getParserForType()
Returns
Type Description
Parser<NodeAffinity>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getValues(int index)

publicStringgetValues(intindex)

Optional. Corresponds to the label values of Node 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 Node 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 Node 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 Node resource.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the values.

hasKey()

publicbooleanhasKey()

Optional. Corresponds to the label key of Node resource.

optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the key field is set.

hasOperator()

publicbooleanhasOperator()

Optional. Defines the operation of node selection.

optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the operator field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicScheduling.NodeAffinity.BuildernewBuilderForType()
Returns
Type Description
Scheduling.NodeAffinity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedScheduling.NodeAffinity.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicScheduling.NodeAffinity.BuildertoBuilder()
Returns
Type Description
Scheduling.NodeAffinity.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.