Class ConversionWorkspace

  • All Implemented Interfaces:
    ConversionWorkspaceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ConversionWorkspace
    extends com.google.protobuf.GeneratedMessageV3
    implements ConversionWorkspaceOrBuilder
     The main conversion workspace resource entity.
     
    Protobuf type google.cloud.clouddms.v1.ConversionWorkspace
    See Also:
    Serialized Form
    • Field Detail

      • DESTINATION_FIELD_NUMBER

        public static final int DESTINATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GLOBAL_SETTINGS_FIELD_NUMBER

        public static final int GLOBAL_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HAS_UNCOMMITTED_CHANGES_FIELD_NUMBER

        public static final int HAS_UNCOMMITTED_CHANGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LATEST_COMMIT_ID_FIELD_NUMBER

        public static final int LATEST_COMMIT_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LATEST_COMMIT_TIME_FIELD_NUMBER

        public static final int LATEST_COMMIT_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DISPLAY_NAME_FIELD_NUMBER

        public static final int DISPLAY_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Full name of the workspace resource, in the form of:
         projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
         
        string name = 1;
        Specified by:
        getName in interface ConversionWorkspaceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Full name of the workspace resource, in the form of:
         projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ConversionWorkspaceOrBuilder
        Returns:
        The bytes for name.
      • hasSource

        public boolean hasSource()
         Required. The source engine details.
         
        .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasSource in interface ConversionWorkspaceOrBuilder
        Returns:
        Whether the source field is set.
      • getSource

        public DatabaseEngineInfo getSource()
         Required. The source engine details.
         
        .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSource in interface ConversionWorkspaceOrBuilder
        Returns:
        The source.
      • hasDestination

        public boolean hasDestination()
         Required. The destination engine details.
         
        .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDestination in interface ConversionWorkspaceOrBuilder
        Returns:
        Whether the destination field is set.
      • getDestination

        public DatabaseEngineInfo getDestination()
         Required. The destination engine details.
         
        .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDestination in interface ConversionWorkspaceOrBuilder
        Returns:
        The destination.
      • getGlobalSettingsCount

        public int getGlobalSettingsCount()
        Description copied from interface: ConversionWorkspaceOrBuilder
         Optional. A generic list of settings for the workspace.
         The settings are database pair dependant and can indicate default behavior
         for the mapping rules engine or turn on or off specific features.
         Such examples can be: convert_foreign_key_to_interleave=true,
         skip_triggers=false, ignore_non_table_synonyms=true
         
        map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getGlobalSettingsCount in interface ConversionWorkspaceOrBuilder
      • containsGlobalSettings

        public boolean containsGlobalSettings​(String key)
         Optional. A generic list of settings for the workspace.
         The settings are database pair dependant and can indicate default behavior
         for the mapping rules engine or turn on or off specific features.
         Such examples can be: convert_foreign_key_to_interleave=true,
         skip_triggers=false, ignore_non_table_synonyms=true
         
        map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsGlobalSettings in interface ConversionWorkspaceOrBuilder
      • getGlobalSettingsMap

        public Map<String,​String> getGlobalSettingsMap()
         Optional. A generic list of settings for the workspace.
         The settings are database pair dependant and can indicate default behavior
         for the mapping rules engine or turn on or off specific features.
         Such examples can be: convert_foreign_key_to_interleave=true,
         skip_triggers=false, ignore_non_table_synonyms=true
         
        map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getGlobalSettingsMap in interface ConversionWorkspaceOrBuilder
      • getGlobalSettingsOrDefault

        public String getGlobalSettingsOrDefault​(String key,
                                                 String defaultValue)
         Optional. A generic list of settings for the workspace.
         The settings are database pair dependant and can indicate default behavior
         for the mapping rules engine or turn on or off specific features.
         Such examples can be: convert_foreign_key_to_interleave=true,
         skip_triggers=false, ignore_non_table_synonyms=true
         
        map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getGlobalSettingsOrDefault in interface ConversionWorkspaceOrBuilder
      • getGlobalSettingsOrThrow

        public String getGlobalSettingsOrThrow​(String key)
         Optional. A generic list of settings for the workspace.
         The settings are database pair dependant and can indicate default behavior
         for the mapping rules engine or turn on or off specific features.
         Such examples can be: convert_foreign_key_to_interleave=true,
         skip_triggers=false, ignore_non_table_synonyms=true
         
        map<string, string> global_settings = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getGlobalSettingsOrThrow in interface ConversionWorkspaceOrBuilder
      • getHasUncommittedChanges

        public boolean getHasUncommittedChanges()
         Output only. Whether the workspace has uncommitted changes (changes which
         were made after the workspace was committed).
         
        bool has_uncommitted_changes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHasUncommittedChanges in interface ConversionWorkspaceOrBuilder
        Returns:
        The hasUncommittedChanges.
      • getLatestCommitId

        public String getLatestCommitId()
         Output only. The latest commit ID.
         
        string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLatestCommitId in interface ConversionWorkspaceOrBuilder
        Returns:
        The latestCommitId.
      • getLatestCommitIdBytes

        public com.google.protobuf.ByteString getLatestCommitIdBytes()
         Output only. The latest commit ID.
         
        string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLatestCommitIdBytes in interface ConversionWorkspaceOrBuilder
        Returns:
        The bytes for latestCommitId.
      • hasLatestCommitTime

        public boolean hasLatestCommitTime()
         Output only. The timestamp when the workspace was committed.
         
        .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasLatestCommitTime in interface ConversionWorkspaceOrBuilder
        Returns:
        Whether the latestCommitTime field is set.
      • getLatestCommitTime

        public com.google.protobuf.Timestamp getLatestCommitTime()
         Output only. The timestamp when the workspace was committed.
         
        .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLatestCommitTime in interface ConversionWorkspaceOrBuilder
        Returns:
        The latestCommitTime.
      • getLatestCommitTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLatestCommitTimeOrBuilder()
         Output only. The timestamp when the workspace was committed.
         
        .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLatestCommitTimeOrBuilder in interface ConversionWorkspaceOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The timestamp when the workspace resource was created.
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ConversionWorkspaceOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The timestamp when the workspace resource was created.
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ConversionWorkspaceOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The timestamp when the workspace resource was created.
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ConversionWorkspaceOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The timestamp when the workspace resource was last updated.
         
        .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface ConversionWorkspaceOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The timestamp when the workspace resource was last updated.
         
        .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface ConversionWorkspaceOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The timestamp when the workspace resource was last updated.
         
        .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface ConversionWorkspaceOrBuilder
      • getDisplayName

        public String getDisplayName()
         Optional. The display name for the workspace.
         
        string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisplayName in interface ConversionWorkspaceOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Optional. The display name for the workspace.
         
        string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisplayNameBytes in interface ConversionWorkspaceOrBuilder
        Returns:
        The bytes for displayName.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ConversionWorkspace parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConversionWorkspace parseFrom​(ByteBuffer data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConversionWorkspace parseFrom​(com.google.protobuf.ByteString data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConversionWorkspace parseFrom​(com.google.protobuf.ByteString data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConversionWorkspace parseFrom​(byte[] data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConversionWorkspace parseFrom​(byte[] data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConversionWorkspace parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ConversionWorkspace.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ConversionWorkspace.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ConversionWorkspace.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ConversionWorkspace> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ConversionWorkspace getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder