Class ComputeEngineShapeDescriptor.Builder (0.21.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

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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.ComputeStorageDescriptor>
Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeEngineShapeDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueComputeStorageDescriptor
Returns
TypeDescription
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
NameDescription
builderForValueComputeStorageDescriptor.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueComputeStorageDescriptor
Returns
TypeDescription
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
NameDescription
indexint
builderForValueComputeStorageDescriptor.Builder
Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

addStorageBuilder()

public ComputeStorageDescriptor.Builder addStorageBuilder()

Compute Engine storage. Never empty.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ComputeStorageDescriptor.Builder

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.

clearStorage()

public ComputeEngineShapeDescriptor.Builder clearStorage()

Compute Engine storage. Never empty.

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

Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

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.

getStorage(int index)

public ComputeStorageDescriptor getStorage(int index)

Compute Engine storage. Never empty.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ComputeStorageDescriptor

getStorageBuilder(int index)

public ComputeStorageDescriptor.Builder getStorageBuilder(int index)

Compute Engine storage. Never empty.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ComputeStorageDescriptor.Builder

getStorageBuilderList()

public List<ComputeStorageDescriptor.Builder> getStorageBuilderList()

Compute Engine storage. Never empty.

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

Returns
TypeDescription
List<Builder>

getStorageCount()

public int getStorageCount()

Compute Engine storage. Never empty.

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

Returns
TypeDescription
int

getStorageList()

public List<ComputeStorageDescriptor> getStorageList()

Compute Engine storage. Never empty.

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

Returns
TypeDescription
List<ComputeStorageDescriptor>

getStorageOrBuilder(int index)

public ComputeStorageDescriptorOrBuilder getStorageOrBuilder(int index)

Compute Engine storage. Never empty.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ComputeStorageDescriptorOrBuilder

getStorageOrBuilderList()

public List<? extends ComputeStorageDescriptorOrBuilder> getStorageOrBuilderList()

Compute Engine storage. Never empty.

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

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

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

removeStorage(int index)

public ComputeEngineShapeDescriptor.Builder removeStorage(int index)

Compute Engine storage. Never empty.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

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.

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
NameDescription
indexint
valueComputeStorageDescriptor
Returns
TypeDescription
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
NameDescription
indexint
builderForValueComputeStorageDescriptor.Builder
Returns
TypeDescription
ComputeEngineShapeDescriptor.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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