Class ComputeEngineShapeDescriptor.Builder (0.6.0)

public static final class ComputeEngineShapeDescriptor.Builder extends GeneratedMessageV3.Builder<ComputeEngineShapeDescriptor.Builder> implements ComputeEngineShapeDescriptorOrBuilder

Compute Engine target shape descriptor.

Protobuf type google.cloud.migrationcenter.v1.ComputeEngineShapeDescriptor

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeEngineShapeDescriptor build()
Returns
TypeDescription
ComputeEngineShapeDescriptor

buildPartial()

public ComputeEngineShapeDescriptor buildPartial()
Returns
TypeDescription
ComputeEngineShapeDescriptor

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLogicalCoreCount()

public ComputeEngineShapeDescriptor.Builder clearLogicalCoreCount()

Number of logical cores.

int32 logical_core_count = 3;

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearMachineType()

public ComputeEngineShapeDescriptor.Builder clearMachineType()

Compute Engine machine type.

string machine_type = 5;

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearMemoryMb()

public ComputeEngineShapeDescriptor.Builder clearMemoryMb()

Memory in mebibytes.

int32 memory_mb = 1;

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhysicalCoreCount()

public ComputeEngineShapeDescriptor.Builder clearPhysicalCoreCount()

Number of physical cores.

int32 physical_core_count = 2;

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearSeries()

public ComputeEngineShapeDescriptor.Builder clearSeries()

Compute Engine machine series.

string series = 4;

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ComputeEngineShapeDescriptor getDefaultInstanceForType()
Returns
TypeDescription
ComputeEngineShapeDescriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLogicalCoreCount()

public int getLogicalCoreCount()

Number of logical cores.

int32 logical_core_count = 3;

Returns
TypeDescription
int

The logicalCoreCount.

getMachineType()

public String getMachineType()

Compute Engine machine type.

string machine_type = 5;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Compute Engine machine type.

string machine_type = 5;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMemoryMb()

public int getMemoryMb()

Memory in mebibytes.

int32 memory_mb = 1;

Returns
TypeDescription
int

The memoryMb.

getPhysicalCoreCount()

public int getPhysicalCoreCount()

Number of physical cores.

int32 physical_core_count = 2;

Returns
TypeDescription
int

The physicalCoreCount.

getSeries()

public String getSeries()

Compute Engine machine series.

string series = 4;

Returns
TypeDescription
String

The series.

getSeriesBytes()

public ByteString getSeriesBytes()

Compute Engine machine series.

string series = 4;

Returns
TypeDescription
ByteString

The bytes for series.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ComputeEngineShapeDescriptor other)

public ComputeEngineShapeDescriptor.Builder mergeFrom(ComputeEngineShapeDescriptor other)
Parameter
NameDescription
otherComputeEngineShapeDescriptor
Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLogicalCoreCount(int value)

public ComputeEngineShapeDescriptor.Builder setLogicalCoreCount(int value)

Number of logical cores.

int32 logical_core_count = 3;

Parameter
NameDescription
valueint

The logicalCoreCount to set.

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setMachineType(String value)

public ComputeEngineShapeDescriptor.Builder setMachineType(String value)

Compute Engine machine type.

string machine_type = 5;

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public ComputeEngineShapeDescriptor.Builder setMachineTypeBytes(ByteString value)

Compute Engine machine type.

string machine_type = 5;

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setMemoryMb(int value)

public ComputeEngineShapeDescriptor.Builder setMemoryMb(int value)

Memory in mebibytes.

int32 memory_mb = 1;

Parameter
NameDescription
valueint

The memoryMb to set.

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setPhysicalCoreCount(int value)

public ComputeEngineShapeDescriptor.Builder setPhysicalCoreCount(int value)

Number of physical cores.

int32 physical_core_count = 2;

Parameter
NameDescription
valueint

The physicalCoreCount to set.

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

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

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

setSeries(String value)

public ComputeEngineShapeDescriptor.Builder setSeries(String value)

Compute Engine machine series.

string series = 4;

Parameter
NameDescription
valueString

The series to set.

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setSeriesBytes(ByteString value)

public ComputeEngineShapeDescriptor.Builder setSeriesBytes(ByteString value)

Compute Engine machine series.

string series = 4;

Parameter
NameDescription
valueByteString

The bytes for series to set.

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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