Class DatabaseEngineInfo.Builder (2.33.0)

public static final class DatabaseEngineInfo.Builder extends GeneratedMessageV3.Builder<DatabaseEngineInfo.Builder> implements DatabaseEngineInfoOrBuilder

The type and version of a source or destination database.

Protobuf type google.cloud.clouddms.v1.DatabaseEngineInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DatabaseEngineInfo build()
Returns
TypeDescription
DatabaseEngineInfo

buildPartial()

public DatabaseEngineInfo buildPartial()
Returns
TypeDescription
DatabaseEngineInfo

clear()

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

clearEngine()

public DatabaseEngineInfo.Builder clearEngine()

Required. Engine type.

.google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DatabaseEngineInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public DatabaseEngineInfo.Builder clearVersion()

Required. Engine named version, for example 12.c.1.

string version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DatabaseEngineInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DatabaseEngineInfo getDefaultInstanceForType()
Returns
TypeDescription
DatabaseEngineInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEngine()

public DatabaseEngine getEngine()

Required. Engine type.

.google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DatabaseEngine

The engine.

getEngineValue()

public int getEngineValue()

Required. Engine type.

.google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for engine.

getVersion()

public String getVersion()

Required. Engine named version, for example 12.c.1.

string version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Required. Engine named version, for example 12.c.1.

string version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DatabaseEngineInfo other)

public DatabaseEngineInfo.Builder mergeFrom(DatabaseEngineInfo other)
Parameter
NameDescription
otherDatabaseEngineInfo
Returns
TypeDescription
DatabaseEngineInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEngine(DatabaseEngine value)

public DatabaseEngineInfo.Builder setEngine(DatabaseEngine value)

Required. Engine type.

.google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDatabaseEngine

The engine to set.

Returns
TypeDescription
DatabaseEngineInfo.Builder

This builder for chaining.

setEngineValue(int value)

public DatabaseEngineInfo.Builder setEngineValue(int value)

Required. Engine type.

.google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for engine to set.

Returns
TypeDescription
DatabaseEngineInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public DatabaseEngineInfo.Builder setVersion(String value)

Required. Engine named version, for example 12.c.1.

string version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
DatabaseEngineInfo.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public DatabaseEngineInfo.Builder setVersionBytes(ByteString value)

Required. Engine named version, for example 12.c.1.

string version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
DatabaseEngineInfo.Builder

This builder for chaining.