Class GlossaryInputConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GlossaryInputConfig.Builder>
com.google.cloud.translate.v3.GlossaryInputConfig.Builder
All Implemented Interfaces:
GlossaryInputConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GlossaryInputConfig

public static final class GlossaryInputConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<GlossaryInputConfig.Builder> implements GlossaryInputConfigOrBuilder
 Input configuration for glossaries.
 
Protobuf type google.cloud.translation.v3.GlossaryInputConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getSourceCase

      public GlossaryInputConfig.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface GlossaryInputConfigOrBuilder
    • clearSource

      public GlossaryInputConfig.Builder clearSource()
    • 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