Class MachineSeries.Builder (0.37.0)

public static final class MachineSeries.Builder extends GeneratedMessageV3.Builder<MachineSeries.Builder> implements MachineSeriesOrBuilder

A Compute Engine machine series.

Protobuf type google.cloud.migrationcenter.v1.MachineSeries

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachineSeries build()
Returns
Type Description
MachineSeries

buildPartial()

public MachineSeries buildPartial()
Returns
Type Description
MachineSeries

clear()

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

clearCode()

public MachineSeries.Builder clearCode()

Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.

string code = 1;

Returns
Type Description
MachineSeries.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCode()

public String getCode()

Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.

string code = 1;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.

string code = 1;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public MachineSeries getDefaultInstanceForType()
Returns
Type Description
MachineSeries

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(MachineSeries other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCode(String value)

public MachineSeries.Builder setCode(String value)

Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.

string code = 1;

Parameter
Name Description
value String

The code to set.

Returns
Type Description
MachineSeries.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public MachineSeries.Builder setCodeBytes(ByteString value)

Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.

string code = 1;

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
MachineSeries.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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