Interface InputConfigOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
InputConfig, InputConfig.Builder

@Generated public interface InputConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    Required.
    Optional.
    com.google.protobuf.ByteString
    Optional.
     
    boolean
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getMimeType

      String getMimeType()
       Optional. Can be "text/plain" or "text/html".
       For `.tsv`, "text/html" is used if mime_type is missing.
       For `.html`, this field must be "text/html" or empty.
       For `.txt`, this field must be "text/plain" or empty.
       
      string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The mimeType.
    • getMimeTypeBytes

      com.google.protobuf.ByteString getMimeTypeBytes()
       Optional. Can be "text/plain" or "text/html".
       For `.tsv`, "text/html" is used if mime_type is missing.
       For `.html`, this field must be "text/html" or empty.
       For `.txt`, this field must be "text/plain" or empty.
       
      string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for mimeType.
    • hasGcsSource

      boolean hasGcsSource()
       Required. Google Cloud Storage location for the source input.
       This can be a single file (for example,
       `gs://translation-test/input.tsv`) or a wildcard (for example,
       `gs://translation-test/*`). If a file extension is `.tsv`, it can
       contain either one or two columns. The first column (optional) is the id
       of the text request. If the first column is missing, we use the row
       number (0-based) from the input file as the ID in the output file. The
       second column is the actual text to be
       translated. We recommend each row be <= 10K Unicode codepoints,
       otherwise an error might be returned.
       Note that the input tsv must be RFC 4180 compliant.
      
       You could use https://github.com/Clever/csvlint to check potential
       formatting errors in your tsv file.
       csvlint --delimiter='\t' your_input_file.tsv
      
       The other supported file extensions are `.txt` or `.html`, which is
       treated as a single large chunk of text.
       
      .google.cloud.translation.v3.GcsSource gcs_source = 2;
      Returns:
      Whether the gcsSource field is set.
    • getGcsSource

      GcsSource getGcsSource()
       Required. Google Cloud Storage location for the source input.
       This can be a single file (for example,
       `gs://translation-test/input.tsv`) or a wildcard (for example,
       `gs://translation-test/*`). If a file extension is `.tsv`, it can
       contain either one or two columns. The first column (optional) is the id
       of the text request. If the first column is missing, we use the row
       number (0-based) from the input file as the ID in the output file. The
       second column is the actual text to be
       translated. We recommend each row be <= 10K Unicode codepoints,
       otherwise an error might be returned.
       Note that the input tsv must be RFC 4180 compliant.
      
       You could use https://github.com/Clever/csvlint to check potential
       formatting errors in your tsv file.
       csvlint --delimiter='\t' your_input_file.tsv
      
       The other supported file extensions are `.txt` or `.html`, which is
       treated as a single large chunk of text.
       
      .google.cloud.translation.v3.GcsSource gcs_source = 2;
      Returns:
      The gcsSource.
    • getGcsSourceOrBuilder

      GcsSourceOrBuilder getGcsSourceOrBuilder()
       Required. Google Cloud Storage location for the source input.
       This can be a single file (for example,
       `gs://translation-test/input.tsv`) or a wildcard (for example,
       `gs://translation-test/*`). If a file extension is `.tsv`, it can
       contain either one or two columns. The first column (optional) is the id
       of the text request. If the first column is missing, we use the row
       number (0-based) from the input file as the ID in the output file. The
       second column is the actual text to be
       translated. We recommend each row be <= 10K Unicode codepoints,
       otherwise an error might be returned.
       Note that the input tsv must be RFC 4180 compliant.
      
       You could use https://github.com/Clever/csvlint to check potential
       formatting errors in your tsv file.
       csvlint --delimiter='\t' your_input_file.tsv
      
       The other supported file extensions are `.txt` or `.html`, which is
       treated as a single large chunk of text.
       
      .google.cloud.translation.v3.GcsSource gcs_source = 2;
    • getSourceCase

      InputConfig.SourceCase getSourceCase()