Class NodeSelector.Builder (0.52.0)

public static final class NodeSelector.Builder extends GeneratedMessageV3.Builder<NodeSelector.Builder> implements NodeSelectorOrBuilder

Hardware constraints configuration.

Protobuf type google.cloud.run.v2.NodeSelector

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeSelector.Builder
Overrides

build()

public NodeSelector build()
Returns
Type Description
NodeSelector

buildPartial()

public NodeSelector buildPartial()
Returns
Type Description
NodeSelector

clear()

public NodeSelector.Builder clear()
Returns
Type Description
NodeSelector.Builder
Overrides

clearAccelerator()

public NodeSelector.Builder clearAccelerator()

Required. GPU accelerator type to attach to an instance.

string accelerator = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NodeSelector.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NodeSelector.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NodeSelector.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NodeSelector.Builder
Overrides

clone()

public NodeSelector.Builder clone()
Returns
Type Description
NodeSelector.Builder
Overrides

getAccelerator()

public String getAccelerator()

Required. GPU accelerator type to attach to an instance.

string accelerator = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The accelerator.

getAcceleratorBytes()

public ByteString getAcceleratorBytes()

Required. GPU accelerator type to attach to an instance.

string accelerator = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for accelerator.

getDefaultInstanceForType()

public NodeSelector getDefaultInstanceForType()
Returns
Type Description
NodeSelector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeSelector other)

public NodeSelector.Builder mergeFrom(NodeSelector other)
Parameter
Name Description
other NodeSelector
Returns
Type Description
NodeSelector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeSelector.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NodeSelector.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NodeSelector.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeSelector.Builder
Overrides

setAccelerator(String value)

public NodeSelector.Builder setAccelerator(String value)

Required. GPU accelerator type to attach to an instance.

string accelerator = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The accelerator to set.

Returns
Type Description
NodeSelector.Builder

This builder for chaining.

setAcceleratorBytes(ByteString value)

public NodeSelector.Builder setAcceleratorBytes(ByteString value)

Required. GPU accelerator type to attach to an instance.

string accelerator = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for accelerator to set.

Returns
Type Description
NodeSelector.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NodeSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeSelector.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NodeSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NodeSelector.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeSelector.Builder
Overrides