Class MachineSeries.Builder (0.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachineSeries build()
Returns
TypeDescription
MachineSeries

buildPartial()

public MachineSeries buildPartial()
Returns
TypeDescription
MachineSeries

clear()

public MachineSeries.Builder clear()
Returns
TypeDescription
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
TypeDescription
MachineSeries.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public MachineSeries.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for code.

getDefaultInstanceForType()

public MachineSeries getDefaultInstanceForType()
Returns
TypeDescription
MachineSeries

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MachineSeries other)

public MachineSeries.Builder mergeFrom(MachineSeries other)
Parameter
NameDescription
otherMachineSeries
Returns
TypeDescription
MachineSeries.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MachineSeries.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The code to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for code to set.

Returns
TypeDescription
MachineSeries.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public MachineSeries.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MachineSeries.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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