Package com.google.cloud.clouddms.v1
Class CreateMigrationJobRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
- com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder
-
- All Implemented Interfaces:
CreateMigrationJobRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CreateMigrationJobRequest
public static final class CreateMigrationJobRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder> implements CreateMigrationJobRequestOrBuilder
Request message to create a new Database Migration Service migration job in the specified project and region.
Protobuf typegoogle.cloud.clouddms.v1.CreateMigrationJobRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
clear
public CreateMigrationJobRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
getDefaultInstanceForType
public CreateMigrationJobRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CreateMigrationJobRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CreateMigrationJobRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CreateMigrationJobRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
setField
public CreateMigrationJobRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
clearField
public CreateMigrationJobRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
clearOneof
public CreateMigrationJobRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
setRepeatedField
public CreateMigrationJobRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
addRepeatedField
public CreateMigrationJobRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
mergeFrom
public CreateMigrationJobRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateMigrationJobRequest.Builder>
-
mergeFrom
public CreateMigrationJobRequest.Builder mergeFrom(CreateMigrationJobRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
mergeFrom
public CreateMigrationJobRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateMigrationJobRequest.Builder>
- Throws:
IOException
-
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) = { ... }
- Specified by:
getParent
in interfaceCreateMigrationJobRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. The parent which owns this collection of migration jobs.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParentBytes
in interfaceCreateMigrationJobRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public CreateMigrationJobRequest.Builder setParent(String value)
Required. The parent which owns this collection of migration jobs.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public CreateMigrationJobRequest.Builder clearParent()
Required. The parent which owns this collection of migration jobs.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
public CreateMigrationJobRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The parent which owns this collection of migration jobs.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getMigrationJobId
public String getMigrationJobId()
Required. The ID of the instance to create.
string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMigrationJobId
in interfaceCreateMigrationJobRequestOrBuilder
- Returns:
- The migrationJobId.
-
getMigrationJobIdBytes
public com.google.protobuf.ByteString getMigrationJobIdBytes()
Required. The ID of the instance to create.
string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMigrationJobIdBytes
in interfaceCreateMigrationJobRequestOrBuilder
- Returns:
- The bytes for migrationJobId.
-
setMigrationJobId
public CreateMigrationJobRequest.Builder setMigrationJobId(String value)
Required. The ID of the instance to create.
string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The migrationJobId to set.- Returns:
- This builder for chaining.
-
clearMigrationJobId
public CreateMigrationJobRequest.Builder clearMigrationJobId()
Required. The ID of the instance to create.
string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setMigrationJobIdBytes
public CreateMigrationJobRequest.Builder setMigrationJobIdBytes(com.google.protobuf.ByteString value)
Required. The ID of the instance to create.
string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for migrationJobId to set.- Returns:
- This builder for chaining.
-
hasMigrationJob
public boolean hasMigrationJob()
Required. Represents a [migration job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) object.
.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasMigrationJob
in interfaceCreateMigrationJobRequestOrBuilder
- Returns:
- Whether the migrationJob field is set.
-
getMigrationJob
public MigrationJob getMigrationJob()
Required. Represents a [migration job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) object.
.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMigrationJob
in interfaceCreateMigrationJobRequestOrBuilder
- Returns:
- The migrationJob.
-
setMigrationJob
public CreateMigrationJobRequest.Builder setMigrationJob(MigrationJob value)
Required. Represents a [migration job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) object.
.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];
-
setMigrationJob
public CreateMigrationJobRequest.Builder setMigrationJob(MigrationJob.Builder builderForValue)
Required. Represents a [migration job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) object.
.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];
-
mergeMigrationJob
public CreateMigrationJobRequest.Builder mergeMigrationJob(MigrationJob value)
Required. Represents a [migration job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) object.
.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];
-
clearMigrationJob
public CreateMigrationJobRequest.Builder clearMigrationJob()
Required. Represents a [migration job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) object.
.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];
-
getMigrationJobBuilder
public MigrationJob.Builder getMigrationJobBuilder()
Required. Represents a [migration job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) object.
.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];
-
getMigrationJobOrBuilder
public MigrationJobOrBuilder getMigrationJobOrBuilder()
Required. Represents a [migration job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) object.
.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMigrationJobOrBuilder
in interfaceCreateMigrationJobRequestOrBuilder
-
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];
- Specified by:
getRequestId
in interfaceCreateMigrationJobRequestOrBuilder
- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.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];
- Specified by:
getRequestIdBytes
in interfaceCreateMigrationJobRequestOrBuilder
- Returns:
- The bytes for requestId.
-
setRequestId
public CreateMigrationJobRequest.Builder setRequestId(String value)
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];
- Parameters:
value
- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
public CreateMigrationJobRequest.Builder clearRequestId()
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:
- This builder for chaining.
-
setRequestIdBytes
public CreateMigrationJobRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CreateMigrationJobRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
mergeUnknownFields
public final CreateMigrationJobRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
-
-