Class TranslationConfigDetails

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

    public final class TranslationConfigDetails
    extends com.google.protobuf.GeneratedMessageV3
    implements TranslationConfigDetailsOrBuilder
     The translation config to capture necessary settings for a translation task
     and subtask.
     
    Protobuf type google.cloud.bigquery.migration.v2.TranslationConfigDetails
    See Also:
    Serialized Form
    • Field Detail

      • GCS_SOURCE_PATH_FIELD_NUMBER

        public static final int GCS_SOURCE_PATH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GCS_TARGET_PATH_FIELD_NUMBER

        public static final int GCS_TARGET_PATH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NAME_MAPPING_LIST_FIELD_NUMBER

        public static final int NAME_MAPPING_LIST_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_DIALECT_FIELD_NUMBER

        public static final int SOURCE_DIALECT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TARGET_DIALECT_FIELD_NUMBER

        public static final int TARGET_DIALECT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_ENV_FIELD_NUMBER

        public static final int SOURCE_ENV_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REQUEST_SOURCE_FIELD_NUMBER

        public static final int REQUEST_SOURCE_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()
      • internalGetFieldAccessorTable

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

        public boolean hasGcsSourcePath()
         The Cloud Storage path for a directory of files to translate in a task.
         
        string gcs_source_path = 1;
        Specified by:
        hasGcsSourcePath in interface TranslationConfigDetailsOrBuilder
        Returns:
        Whether the gcsSourcePath field is set.
      • getGcsSourcePathBytes

        public com.google.protobuf.ByteString getGcsSourcePathBytes()
         The Cloud Storage path for a directory of files to translate in a task.
         
        string gcs_source_path = 1;
        Specified by:
        getGcsSourcePathBytes in interface TranslationConfigDetailsOrBuilder
        Returns:
        The bytes for gcsSourcePath.
      • hasGcsTargetPath

        public boolean hasGcsTargetPath()
         The Cloud Storage path to write back the corresponding input files to.
         
        string gcs_target_path = 2;
        Specified by:
        hasGcsTargetPath in interface TranslationConfigDetailsOrBuilder
        Returns:
        Whether the gcsTargetPath field is set.
      • getGcsTargetPathBytes

        public com.google.protobuf.ByteString getGcsTargetPathBytes()
         The Cloud Storage path to write back the corresponding input files to.
         
        string gcs_target_path = 2;
        Specified by:
        getGcsTargetPathBytes in interface TranslationConfigDetailsOrBuilder
        Returns:
        The bytes for gcsTargetPath.
      • hasNameMappingList

        public boolean hasNameMappingList()
         The mapping of objects to their desired output names in list form.
         
        .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
        Specified by:
        hasNameMappingList in interface TranslationConfigDetailsOrBuilder
        Returns:
        Whether the nameMappingList field is set.
      • hasSourceDialect

        public boolean hasSourceDialect()
         The dialect of the input files.
         
        .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
        Specified by:
        hasSourceDialect in interface TranslationConfigDetailsOrBuilder
        Returns:
        Whether the sourceDialect field is set.
      • hasTargetDialect

        public boolean hasTargetDialect()
         The target dialect for the engine to translate the input to.
         
        .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
        Specified by:
        hasTargetDialect in interface TranslationConfigDetailsOrBuilder
        Returns:
        Whether the targetDialect field is set.
      • getTargetDialect

        public Dialect getTargetDialect()
         The target dialect for the engine to translate the input to.
         
        .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
        Specified by:
        getTargetDialect in interface TranslationConfigDetailsOrBuilder
        Returns:
        The targetDialect.
      • hasSourceEnv

        public boolean hasSourceEnv()
         The default source environment values for the translation.
         
        .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
        Specified by:
        hasSourceEnv in interface TranslationConfigDetailsOrBuilder
        Returns:
        Whether the sourceEnv field is set.
      • getRequestSourceBytes

        public com.google.protobuf.ByteString getRequestSourceBytes()
         The indicator to show translation request initiator.
         
        string request_source = 8;
        Specified by:
        getRequestSourceBytes in interface TranslationConfigDetailsOrBuilder
        Returns:
        The bytes for requestSource.
      • 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 TranslationConfigDetails parseFrom​(ByteBuffer data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<TranslationConfigDetails> 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 TranslationConfigDetails getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder