Class ComputeEngineShapeDescriptor.Builder (0.24.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
Type Description
Descriptor

Methods

addAllStorage(Iterable<? extends ComputeStorageDescriptor> values)

public ComputeEngineShapeDescriptor.Builder addAllStorage(Iterable<? extends ComputeStorageDescriptor> values)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.ComputeStorageDescriptor>
Returns
Type Description
ComputeEngineShapeDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStorage(ComputeStorageDescriptor value)

public ComputeEngineShapeDescriptor.Builder addStorage(ComputeStorageDescriptor value)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameter
Name Description
value ComputeStorageDescriptor
Returns
Type Description
ComputeEngineShapeDescriptor.Builder

addStorage(ComputeStorageDescriptor.Builder builderForValue)

public ComputeEngineShapeDescriptor.Builder addStorage(ComputeStorageDescriptor.Builder builderForValue)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameter
Name Description
builderForValue ComputeStorageDescriptor.Builder
Returns
Type Description
ComputeEngineShapeDescriptor.Builder

addStorage(int index, ComputeStorageDescriptor value)

public ComputeEngineShapeDescriptor.Builder addStorage(int index, ComputeStorageDescriptor value)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameters
Name Description
index int
value ComputeStorageDescriptor
Returns
Type Description
ComputeEngineShapeDescriptor.Builder

addStorage(int index, ComputeStorageDescriptor.Builder builderForValue)

public ComputeEngineShapeDescriptor.Builder addStorage(int index, ComputeStorageDescriptor.Builder builderForValue)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameters
Name Description
index int
builderForValue ComputeStorageDescriptor.Builder
Returns
Type Description
ComputeEngineShapeDescriptor.Builder

addStorageBuilder()

public ComputeStorageDescriptor.Builder addStorageBuilder()

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Returns
Type Description
ComputeStorageDescriptor.Builder

addStorageBuilder(int index)

public ComputeStorageDescriptor.Builder addStorageBuilder(int index)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameter
Name Description
index int
Returns
Type Description
ComputeStorageDescriptor.Builder

build()

public ComputeEngineShapeDescriptor build()
Returns
Type Description
ComputeEngineShapeDescriptor

buildPartial()

public ComputeEngineShapeDescriptor buildPartial()
Returns
Type Description
ComputeEngineShapeDescriptor

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLogicalCoreCount()

public ComputeEngineShapeDescriptor.Builder clearLogicalCoreCount()

Number of logical cores.

int32 logical_core_count = 3;

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearMachineType()

public ComputeEngineShapeDescriptor.Builder clearMachineType()

Compute Engine machine type.

string machine_type = 5;

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearMemoryMb()

public ComputeEngineShapeDescriptor.Builder clearMemoryMb()

Memory in mebibytes.

int32 memory_mb = 1;

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhysicalCoreCount()

public ComputeEngineShapeDescriptor.Builder clearPhysicalCoreCount()

Number of physical cores.

int32 physical_core_count = 2;

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearSeries()

public ComputeEngineShapeDescriptor.Builder clearSeries()

Compute Engine machine series.

string series = 4;

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

clearStorage()

public ComputeEngineShapeDescriptor.Builder clearStorage()

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

clone()

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

getDefaultInstanceForType()

public ComputeEngineShapeDescriptor getDefaultInstanceForType()
Returns
Type Description
ComputeEngineShapeDescriptor

getDescriptorForType()

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

getLogicalCoreCount()

public int getLogicalCoreCount()

Number of logical cores.

int32 logical_core_count = 3;

Returns
Type Description
int

The logicalCoreCount.

getMachineType()

public String getMachineType()

Compute Engine machine type.

string machine_type = 5;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Compute Engine machine type.

string machine_type = 5;

Returns
Type Description
ByteString

The bytes for machineType.

getMemoryMb()

public int getMemoryMb()

Memory in mebibytes.

int32 memory_mb = 1;

Returns
Type Description
int

The memoryMb.

getPhysicalCoreCount()

public int getPhysicalCoreCount()

Number of physical cores.

int32 physical_core_count = 2;

Returns
Type Description
int

The physicalCoreCount.

getSeries()

public String getSeries()

Compute Engine machine series.

string series = 4;

Returns
Type Description
String

The series.

getSeriesBytes()

public ByteString getSeriesBytes()

Compute Engine machine series.

string series = 4;

Returns
Type Description
ByteString

The bytes for series.

getStorage(int index)

public ComputeStorageDescriptor getStorage(int index)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameter
Name Description
index int
Returns
Type Description
ComputeStorageDescriptor

getStorageBuilder(int index)

public ComputeStorageDescriptor.Builder getStorageBuilder(int index)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameter
Name Description
index int
Returns
Type Description
ComputeStorageDescriptor.Builder

getStorageBuilderList()

public List<ComputeStorageDescriptor.Builder> getStorageBuilderList()

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Returns
Type Description
List<Builder>

getStorageCount()

public int getStorageCount()

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Returns
Type Description
int

getStorageList()

public List<ComputeStorageDescriptor> getStorageList()

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Returns
Type Description
List<ComputeStorageDescriptor>

getStorageOrBuilder(int index)

public ComputeStorageDescriptorOrBuilder getStorageOrBuilder(int index)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameter
Name Description
index int
Returns
Type Description
ComputeStorageDescriptorOrBuilder

getStorageOrBuilderList()

public List<? extends ComputeStorageDescriptorOrBuilder> getStorageOrBuilderList()

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.ComputeStorageDescriptorOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeEngineShapeDescriptor other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeStorage(int index)

public ComputeEngineShapeDescriptor.Builder removeStorage(int index)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameter
Name Description
index int
Returns
Type Description
ComputeEngineShapeDescriptor.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLogicalCoreCount(int value)

public ComputeEngineShapeDescriptor.Builder setLogicalCoreCount(int value)

Number of logical cores.

int32 logical_core_count = 3;

Parameter
Name Description
value int

The logicalCoreCount to set.

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setMachineType(String value)

public ComputeEngineShapeDescriptor.Builder setMachineType(String value)

Compute Engine machine type.

string machine_type = 5;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public ComputeEngineShapeDescriptor.Builder setMachineTypeBytes(ByteString value)

Compute Engine machine type.

string machine_type = 5;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setMemoryMb(int value)

public ComputeEngineShapeDescriptor.Builder setMemoryMb(int value)

Memory in mebibytes.

int32 memory_mb = 1;

Parameter
Name Description
value int

The memoryMb to set.

Returns
Type Description
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
Name Description
value int

The physicalCoreCount to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeEngineShapeDescriptor.Builder
Overrides

setSeries(String value)

public ComputeEngineShapeDescriptor.Builder setSeries(String value)

Compute Engine machine series.

string series = 4;

Parameter
Name Description
value String

The series to set.

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setSeriesBytes(ByteString value)

public ComputeEngineShapeDescriptor.Builder setSeriesBytes(ByteString value)

Compute Engine machine series.

string series = 4;

Parameter
Name Description
value ByteString

The bytes for series to set.

Returns
Type Description
ComputeEngineShapeDescriptor.Builder

This builder for chaining.

setStorage(int index, ComputeStorageDescriptor value)

public ComputeEngineShapeDescriptor.Builder setStorage(int index, ComputeStorageDescriptor value)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameters
Name Description
index int
value ComputeStorageDescriptor
Returns
Type Description
ComputeEngineShapeDescriptor.Builder

setStorage(int index, ComputeStorageDescriptor.Builder builderForValue)

public ComputeEngineShapeDescriptor.Builder setStorage(int index, ComputeStorageDescriptor.Builder builderForValue)

Compute Engine storage. Never empty.

repeated .google.cloud.migrationcenter.v1.ComputeStorageDescriptor storage = 6;

Parameters
Name Description
index int
builderForValue ComputeStorageDescriptor.Builder
Returns
Type Description
ComputeEngineShapeDescriptor.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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