Class MigrationSource (0.1.0)

public final class MigrationSource extends GeneratedMessageV3 implements MigrationSourceOrBuilder

Subset of the source instance configuration that is available when reading the cluster resource.

Protobuf type google.cloud.alloydb.v1.MigrationSource

Static Fields

HOST_PORT_FIELD_NUMBER

public static final int HOST_PORT_FIELD_NUMBER
Field Value
Type Description
int

REFERENCE_ID_FIELD_NUMBER

public static final int REFERENCE_ID_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_TYPE_FIELD_NUMBER

public static final int SOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MigrationSource getDefaultInstance()
Returns
Type Description
MigrationSource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static MigrationSource.Builder newBuilder()
Returns
Type Description
MigrationSource.Builder

newBuilder(MigrationSource prototype)

public static MigrationSource.Builder newBuilder(MigrationSource prototype)
Parameter
Name Description
prototype MigrationSource
Returns
Type Description
MigrationSource.Builder

parseDelimitedFrom(InputStream input)

public static MigrationSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MigrationSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MigrationSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MigrationSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MigrationSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MigrationSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MigrationSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MigrationSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MigrationSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MigrationSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MigrationSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MigrationSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MigrationSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MigrationSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MigrationSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MigrationSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MigrationSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MigrationSource> parser()
Returns
Type Description
Parser<MigrationSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public MigrationSource getDefaultInstanceForType()
Returns
Type Description
MigrationSource

getHostPort()

public String getHostPort()

Output only. The host and port of the on-premises instance in host:port format

string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The hostPort.

getHostPortBytes()

public ByteString getHostPortBytes()

Output only. The host and port of the on-premises instance in host:port format

string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for hostPort.

getParserForType()

public Parser<MigrationSource> getParserForType()
Returns
Type Description
Parser<MigrationSource>
Overrides

getReferenceId()

public String getReferenceId()

Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.

string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The referenceId.

getReferenceIdBytes()

public ByteString getReferenceIdBytes()

Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.

string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for referenceId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceType()

public MigrationSource.MigrationSourceType getSourceType()

Output only. Type of migration source.

.google.cloud.alloydb.v1.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationSource.MigrationSourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

Output only. Type of migration source.

.google.cloud.alloydb.v1.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MigrationSource.Builder newBuilderForType()
Returns
Type Description
MigrationSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MigrationSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MigrationSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MigrationSource.Builder toBuilder()
Returns
Type Description
MigrationSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException