Class NodeTemplateNodeTypeFlexibility.Builder (1.61.0)

public static final class NodeTemplateNodeTypeFlexibility.Builder extends GeneratedMessageV3.Builder<NodeTemplateNodeTypeFlexibility.Builder> implements NodeTemplateNodeTypeFlexibilityOrBuilder

Protobuf type google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeTemplateNodeTypeFlexibility build()
Returns
Type Description
NodeTemplateNodeTypeFlexibility

buildPartial()

public NodeTemplateNodeTypeFlexibility buildPartial()
Returns
Type Description
NodeTemplateNodeTypeFlexibility

clear()

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

clearCpus()

public NodeTemplateNodeTypeFlexibility.Builder clearCpus()

optional string cpus = 3060683;

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLocalSsd()

public NodeTemplateNodeTypeFlexibility.Builder clearLocalSsd()

optional string local_ssd = 405741360;

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

clearMemory()

public NodeTemplateNodeTypeFlexibility.Builder clearMemory()

optional string memory = 532856065;

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCpus()

public String getCpus()

optional string cpus = 3060683;

Returns
Type Description
String

The cpus.

getCpusBytes()

public ByteString getCpusBytes()

optional string cpus = 3060683;

Returns
Type Description
ByteString

The bytes for cpus.

getDefaultInstanceForType()

public NodeTemplateNodeTypeFlexibility getDefaultInstanceForType()
Returns
Type Description
NodeTemplateNodeTypeFlexibility

getDescriptorForType()

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

getLocalSsd()

public String getLocalSsd()

optional string local_ssd = 405741360;

Returns
Type Description
String

The localSsd.

getLocalSsdBytes()

public ByteString getLocalSsdBytes()

optional string local_ssd = 405741360;

Returns
Type Description
ByteString

The bytes for localSsd.

getMemory()

public String getMemory()

optional string memory = 532856065;

Returns
Type Description
String

The memory.

getMemoryBytes()

public ByteString getMemoryBytes()

optional string memory = 532856065;

Returns
Type Description
ByteString

The bytes for memory.

hasCpus()

public boolean hasCpus()

optional string cpus = 3060683;

Returns
Type Description
boolean

Whether the cpus field is set.

hasLocalSsd()

public boolean hasLocalSsd()

optional string local_ssd = 405741360;

Returns
Type Description
boolean

Whether the localSsd field is set.

hasMemory()

public boolean hasMemory()

optional string memory = 532856065;

Returns
Type Description
boolean

Whether the memory field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeTemplateNodeTypeFlexibility other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCpus(String value)

public NodeTemplateNodeTypeFlexibility.Builder setCpus(String value)

optional string cpus = 3060683;

Parameter
Name Description
value String

The cpus to set.

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setCpusBytes(ByteString value)

public NodeTemplateNodeTypeFlexibility.Builder setCpusBytes(ByteString value)

optional string cpus = 3060683;

Parameter
Name Description
value ByteString

The bytes for cpus to set.

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocalSsd(String value)

public NodeTemplateNodeTypeFlexibility.Builder setLocalSsd(String value)

optional string local_ssd = 405741360;

Parameter
Name Description
value String

The localSsd to set.

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setLocalSsdBytes(ByteString value)

public NodeTemplateNodeTypeFlexibility.Builder setLocalSsdBytes(ByteString value)

optional string local_ssd = 405741360;

Parameter
Name Description
value ByteString

The bytes for localSsd to set.

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setMemory(String value)

public NodeTemplateNodeTypeFlexibility.Builder setMemory(String value)

optional string memory = 532856065;

Parameter
Name Description
value String

The memory to set.

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setMemoryBytes(ByteString value)

public NodeTemplateNodeTypeFlexibility.Builder setMemoryBytes(ByteString value)

optional string memory = 532856065;

Parameter
Name Description
value ByteString

The bytes for memory to set.

Returns
Type Description
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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