Class GlossaryInputConfig.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<GlossaryInputConfig.Builder>
      • clear

        public GlossaryInputConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GlossaryInputConfig.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<GlossaryInputConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public GlossaryInputConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GlossaryInputConfig.Builder>
      • setField

        public GlossaryInputConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GlossaryInputConfig.Builder>
      • clearField

        public GlossaryInputConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GlossaryInputConfig.Builder>
      • clearOneof

        public GlossaryInputConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GlossaryInputConfig.Builder>
      • setRepeatedField

        public GlossaryInputConfig.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<GlossaryInputConfig.Builder>
      • addRepeatedField

        public GlossaryInputConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GlossaryInputConfig.Builder>
      • mergeFrom

        public GlossaryInputConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GlossaryInputConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GlossaryInputConfig.Builder>
      • mergeFrom

        public GlossaryInputConfig.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<GlossaryInputConfig.Builder>
        Throws:
        IOException
      • hasGcsSource

        public boolean hasGcsSource()
         Required. Google Cloud Storage location of glossary data.
         File format is determined based on the filename extension. API returns
         [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
         formats. Wildcards are not allowed. This must be a single file in one of
         the following formats:
        
         For unidirectional glossaries:
        
         - TSV/CSV (`.tsv`/`.csv`): Two column file, tab- or comma-separated.
           The first column is source text. The second column is target text.
           No headers in this file. The first row contains data and not column
           names.
        
         - TMX (`.tmx`): TMX file with parallel data defining source/target term
         pairs.
        
         For equivalent term sets glossaries:
        
         - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
           in multiple languages. See documentation for more information -
           [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
         
        .google.cloud.translation.v3.GcsSource gcs_source = 1;
        Specified by:
        hasGcsSource in interface GlossaryInputConfigOrBuilder
        Returns:
        Whether the gcsSource field is set.
      • getGcsSource

        public GcsSource getGcsSource()
         Required. Google Cloud Storage location of glossary data.
         File format is determined based on the filename extension. API returns
         [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
         formats. Wildcards are not allowed. This must be a single file in one of
         the following formats:
        
         For unidirectional glossaries:
        
         - TSV/CSV (`.tsv`/`.csv`): Two column file, tab- or comma-separated.
           The first column is source text. The second column is target text.
           No headers in this file. The first row contains data and not column
           names.
        
         - TMX (`.tmx`): TMX file with parallel data defining source/target term
         pairs.
        
         For equivalent term sets glossaries:
        
         - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
           in multiple languages. See documentation for more information -
           [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
         
        .google.cloud.translation.v3.GcsSource gcs_source = 1;
        Specified by:
        getGcsSource in interface GlossaryInputConfigOrBuilder
        Returns:
        The gcsSource.
      • setGcsSource

        public GlossaryInputConfig.Builder setGcsSource​(GcsSource value)
         Required. Google Cloud Storage location of glossary data.
         File format is determined based on the filename extension. API returns
         [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
         formats. Wildcards are not allowed. This must be a single file in one of
         the following formats:
        
         For unidirectional glossaries:
        
         - TSV/CSV (`.tsv`/`.csv`): Two column file, tab- or comma-separated.
           The first column is source text. The second column is target text.
           No headers in this file. The first row contains data and not column
           names.
        
         - TMX (`.tmx`): TMX file with parallel data defining source/target term
         pairs.
        
         For equivalent term sets glossaries:
        
         - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
           in multiple languages. See documentation for more information -
           [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
         
        .google.cloud.translation.v3.GcsSource gcs_source = 1;
      • setGcsSource

        public GlossaryInputConfig.Builder setGcsSource​(GcsSource.Builder builderForValue)
         Required. Google Cloud Storage location of glossary data.
         File format is determined based on the filename extension. API returns
         [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
         formats. Wildcards are not allowed. This must be a single file in one of
         the following formats:
        
         For unidirectional glossaries:
        
         - TSV/CSV (`.tsv`/`.csv`): Two column file, tab- or comma-separated.
           The first column is source text. The second column is target text.
           No headers in this file. The first row contains data and not column
           names.
        
         - TMX (`.tmx`): TMX file with parallel data defining source/target term
         pairs.
        
         For equivalent term sets glossaries:
        
         - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
           in multiple languages. See documentation for more information -
           [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
         
        .google.cloud.translation.v3.GcsSource gcs_source = 1;
      • mergeGcsSource

        public GlossaryInputConfig.Builder mergeGcsSource​(GcsSource value)
         Required. Google Cloud Storage location of glossary data.
         File format is determined based on the filename extension. API returns
         [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
         formats. Wildcards are not allowed. This must be a single file in one of
         the following formats:
        
         For unidirectional glossaries:
        
         - TSV/CSV (`.tsv`/`.csv`): Two column file, tab- or comma-separated.
           The first column is source text. The second column is target text.
           No headers in this file. The first row contains data and not column
           names.
        
         - TMX (`.tmx`): TMX file with parallel data defining source/target term
         pairs.
        
         For equivalent term sets glossaries:
        
         - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
           in multiple languages. See documentation for more information -
           [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
         
        .google.cloud.translation.v3.GcsSource gcs_source = 1;
      • clearGcsSource

        public GlossaryInputConfig.Builder clearGcsSource()
         Required. Google Cloud Storage location of glossary data.
         File format is determined based on the filename extension. API returns
         [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
         formats. Wildcards are not allowed. This must be a single file in one of
         the following formats:
        
         For unidirectional glossaries:
        
         - TSV/CSV (`.tsv`/`.csv`): Two column file, tab- or comma-separated.
           The first column is source text. The second column is target text.
           No headers in this file. The first row contains data and not column
           names.
        
         - TMX (`.tmx`): TMX file with parallel data defining source/target term
         pairs.
        
         For equivalent term sets glossaries:
        
         - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
           in multiple languages. See documentation for more information -
           [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
         
        .google.cloud.translation.v3.GcsSource gcs_source = 1;
      • getGcsSourceBuilder

        public GcsSource.Builder getGcsSourceBuilder()
         Required. Google Cloud Storage location of glossary data.
         File format is determined based on the filename extension. API returns
         [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
         formats. Wildcards are not allowed. This must be a single file in one of
         the following formats:
        
         For unidirectional glossaries:
        
         - TSV/CSV (`.tsv`/`.csv`): Two column file, tab- or comma-separated.
           The first column is source text. The second column is target text.
           No headers in this file. The first row contains data and not column
           names.
        
         - TMX (`.tmx`): TMX file with parallel data defining source/target term
         pairs.
        
         For equivalent term sets glossaries:
        
         - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
           in multiple languages. See documentation for more information -
           [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
         
        .google.cloud.translation.v3.GcsSource gcs_source = 1;
      • getGcsSourceOrBuilder

        public GcsSourceOrBuilder getGcsSourceOrBuilder()
         Required. Google Cloud Storage location of glossary data.
         File format is determined based on the filename extension. API returns
         [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
         formats. Wildcards are not allowed. This must be a single file in one of
         the following formats:
        
         For unidirectional glossaries:
        
         - TSV/CSV (`.tsv`/`.csv`): Two column file, tab- or comma-separated.
           The first column is source text. The second column is target text.
           No headers in this file. The first row contains data and not column
           names.
        
         - TMX (`.tmx`): TMX file with parallel data defining source/target term
         pairs.
        
         For equivalent term sets glossaries:
        
         - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
           in multiple languages. See documentation for more information -
           [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
         
        .google.cloud.translation.v3.GcsSource gcs_source = 1;
        Specified by:
        getGcsSourceOrBuilder in interface GlossaryInputConfigOrBuilder
      • setUnknownFields

        public final GlossaryInputConfig.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<GlossaryInputConfig.Builder>
      • mergeUnknownFields

        public final GlossaryInputConfig.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<GlossaryInputConfig.Builder>