public static final class NodeSelector.Builder extends GeneratedMessageV3.Builder<NodeSelector.Builder> implements NodeSelectorOrBuilder
Hardware constraints configuration.
Protobuf type google.cloud.run.v2.NodeSelector
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NodeSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public NodeSelector build()
buildPartial()
public NodeSelector buildPartial()
clear()
public NodeSelector.Builder clear()
Overrides
clearAccelerator()
public NodeSelector.Builder clearAccelerator()
Required. GPU accelerator type to attach to an instance.
string accelerator = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public NodeSelector.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public NodeSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public NodeSelector.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(NodeSelector other)
public NodeSelector.Builder mergeFrom(NodeSelector other)
public NodeSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public NodeSelector.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NodeSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public NodeSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NodeSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NodeSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides