Class NodeTemplateNodeTypeFlexibility.Builder (1.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeTemplateNodeTypeFlexibility.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

build()

public NodeTemplateNodeTypeFlexibility build()
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility

buildPartial()

public NodeTemplateNodeTypeFlexibility buildPartial()
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility

clear()

public NodeTemplateNodeTypeFlexibility.Builder clear()
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

clearCpus()

public NodeTemplateNodeTypeFlexibility.Builder clearCpus()

optional string cpus = 3060683;

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NodeTemplateNodeTypeFlexibility.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

clearLocalSsd()

public NodeTemplateNodeTypeFlexibility.Builder clearLocalSsd()

optional string local_ssd = 405741360;

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

clearMemory()

public NodeTemplateNodeTypeFlexibility.Builder clearMemory()

optional string memory = 532856065;

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeTemplateNodeTypeFlexibility.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

clone()

public NodeTemplateNodeTypeFlexibility.Builder clone()
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

getCpus()

public String getCpus()

optional string cpus = 3060683;

Returns
TypeDescription
String

The cpus.

getCpusBytes()

public ByteString getCpusBytes()

optional string cpus = 3060683;

Returns
TypeDescription
ByteString

The bytes for cpus.

getDefaultInstanceForType()

public NodeTemplateNodeTypeFlexibility getDefaultInstanceForType()
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocalSsd()

public String getLocalSsd()

optional string local_ssd = 405741360;

Returns
TypeDescription
String

The localSsd.

getLocalSsdBytes()

public ByteString getLocalSsdBytes()

optional string local_ssd = 405741360;

Returns
TypeDescription
ByteString

The bytes for localSsd.

getMemory()

public String getMemory()

optional string memory = 532856065;

Returns
TypeDescription
String

The memory.

getMemoryBytes()

public ByteString getMemoryBytes()

optional string memory = 532856065;

Returns
TypeDescription
ByteString

The bytes for memory.

hasCpus()

public boolean hasCpus()

optional string cpus = 3060683;

Returns
TypeDescription
boolean

Whether the cpus field is set.

hasLocalSsd()

public boolean hasLocalSsd()

optional string local_ssd = 405741360;

Returns
TypeDescription
boolean

Whether the localSsd field is set.

hasMemory()

public boolean hasMemory()

optional string memory = 532856065;

Returns
TypeDescription
boolean

Whether the memory field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeTemplateNodeTypeFlexibility other)

public NodeTemplateNodeTypeFlexibility.Builder mergeFrom(NodeTemplateNodeTypeFlexibility other)
Parameter
NameDescription
otherNodeTemplateNodeTypeFlexibility
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeTemplateNodeTypeFlexibility.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NodeTemplateNodeTypeFlexibility.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeTemplateNodeTypeFlexibility.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

setCpus(String value)

public NodeTemplateNodeTypeFlexibility.Builder setCpus(String value)

optional string cpus = 3060683;

Parameter
NameDescription
valueString

The cpus to set.

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setCpusBytes(ByteString value)

public NodeTemplateNodeTypeFlexibility.Builder setCpusBytes(ByteString value)

optional string cpus = 3060683;

Parameter
NameDescription
valueByteString

The bytes for cpus to set.

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NodeTemplateNodeTypeFlexibility.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

setLocalSsd(String value)

public NodeTemplateNodeTypeFlexibility.Builder setLocalSsd(String value)

optional string local_ssd = 405741360;

Parameter
NameDescription
valueString

The localSsd to set.

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setLocalSsdBytes(ByteString value)

public NodeTemplateNodeTypeFlexibility.Builder setLocalSsdBytes(ByteString value)

optional string local_ssd = 405741360;

Parameter
NameDescription
valueByteString

The bytes for localSsd to set.

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setMemory(String value)

public NodeTemplateNodeTypeFlexibility.Builder setMemory(String value)

optional string memory = 532856065;

Parameter
NameDescription
valueString

The memory to set.

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

This builder for chaining.

setMemoryBytes(ByteString value)

public NodeTemplateNodeTypeFlexibility.Builder setMemoryBytes(ByteString value)

optional string memory = 532856065;

Parameter
NameDescription
valueByteString

The bytes for memory to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeTemplateNodeTypeFlexibility.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder
Overrides