Class CreateMigrationJobRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
      • getDefaultInstanceForType

        public CreateMigrationJobRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CreateMigrationJobRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CreateMigrationJobRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public CreateMigrationJobRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface CreateMigrationJobRequestOrBuilder
        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 interface CreateMigrationJobRequestOrBuilder
        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.
      • 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 interface CreateMigrationJobRequestOrBuilder
        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 interface CreateMigrationJobRequestOrBuilder
        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 interface CreateMigrationJobRequestOrBuilder
        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 interface CreateMigrationJobRequestOrBuilder
      • 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 interface CreateMigrationJobRequestOrBuilder
        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 interface CreateMigrationJobRequestOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>
      • mergeUnknownFields

        public final CreateMigrationJobRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateMigrationJobRequest.Builder>