Class CreateMigrationJobRequest (2.38.0)

public final class CreateMigrationJobRequest extends GeneratedMessageV3 implements CreateMigrationJobRequestOrBuilder

Request message to create a new Database Migration Service migration job in the specified project and region.

Protobuf type google.cloud.clouddms.v1.CreateMigrationJobRequest

Static Fields

MIGRATION_JOB_FIELD_NUMBER

public static final int MIGRATION_JOB_FIELD_NUMBER
Field Value
TypeDescription
int

MIGRATION_JOB_ID_FIELD_NUMBER

public static final int MIGRATION_JOB_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_ID_FIELD_NUMBER

public static final int REQUEST_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateMigrationJobRequest getDefaultInstance()
Returns
TypeDescription
CreateMigrationJobRequest

getDescriptor()

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

newBuilder()

public static CreateMigrationJobRequest.Builder newBuilder()
Returns
TypeDescription
CreateMigrationJobRequest.Builder

newBuilder(CreateMigrationJobRequest prototype)

public static CreateMigrationJobRequest.Builder newBuilder(CreateMigrationJobRequest prototype)
Parameter
NameDescription
prototypeCreateMigrationJobRequest
Returns
TypeDescription
CreateMigrationJobRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateMigrationJobRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateMigrationJobRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateMigrationJobRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateMigrationJobRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateMigrationJobRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateMigrationJobRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateMigrationJobRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateMigrationJobRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateMigrationJobRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateMigrationJobRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateMigrationJobRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateMigrationJobRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateMigrationJobRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateMigrationJobRequest> parser()
Returns
TypeDescription
Parser<CreateMigrationJobRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateMigrationJobRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateMigrationJobRequest

getMigrationJob()

public MigrationJob getMigrationJob()

Required. Represents a migration job object.

.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MigrationJob

The migrationJob.

getMigrationJobId()

public String getMigrationJobId()

Required. The ID of the instance to create.

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

Returns
TypeDescription
String

The migrationJobId.

getMigrationJobIdBytes()

public ByteString getMigrationJobIdBytes()

Required. The ID of the instance to create.

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

Returns
TypeDescription
ByteString

The bytes for migrationJobId.

getMigrationJobOrBuilder()

public MigrationJobOrBuilder getMigrationJobOrBuilder()

Required. Represents a migration job object.

.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MigrationJobOrBuilder

getParent()

public String getParent()

Required. The parent which owns this collection of migration jobs.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent which owns this collection of migration jobs.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateMigrationJobRequest> getParserForType()
Returns
TypeDescription
Parser<CreateMigrationJobRequest>
Overrides

getRequestId()

public String getRequestId()

Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.

It is recommended to always set this value to a UUID.

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.

It is recommended to always set this value to a UUID.

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasMigrationJob()

public boolean hasMigrationJob()

Required. Represents a migration job object.

.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the migrationJob field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateMigrationJobRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateMigrationJobRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateMigrationJobRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateMigrationJobRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateMigrationJobRequest.Builder toBuilder()
Returns
TypeDescription
CreateMigrationJobRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException