/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/translate/v3/translation_service.proto

package com.google.cloud.translate.v3;

public interface TranslateDocumentResponseOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3.TranslateDocumentResponse)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Translated document.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.DocumentTranslation document_translation = 1;</code>
   *
   * @return Whether the documentTranslation field is set.
   */
  boolean hasDocumentTranslation();
  /**
   *
   *
   * <pre>
   * Translated document.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.DocumentTranslation document_translation = 1;</code>
   *
   * @return The documentTranslation.
   */
  com.google.cloud.translate.v3.DocumentTranslation getDocumentTranslation();
  /**
   *
   *
   * <pre>
   * Translated document.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.DocumentTranslation document_translation = 1;</code>
   */
  com.google.cloud.translate.v3.DocumentTranslationOrBuilder getDocumentTranslationOrBuilder();

  /**
   *
   *
   * <pre>
   * The document's translation output if a glossary is provided in the request.
   * This can be the same as [TranslateDocumentResponse.document_translation]
   * if no glossary terms apply.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
   * </code>
   *
   * @return Whether the glossaryDocumentTranslation field is set.
   */
  boolean hasGlossaryDocumentTranslation();
  /**
   *
   *
   * <pre>
   * The document's translation output if a glossary is provided in the request.
   * This can be the same as [TranslateDocumentResponse.document_translation]
   * if no glossary terms apply.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
   * </code>
   *
   * @return The glossaryDocumentTranslation.
   */
  com.google.cloud.translate.v3.DocumentTranslation getGlossaryDocumentTranslation();
  /**
   *
   *
   * <pre>
   * The document's translation output if a glossary is provided in the request.
   * This can be the same as [TranslateDocumentResponse.document_translation]
   * if no glossary terms apply.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
   * </code>
   */
  com.google.cloud.translate.v3.DocumentTranslationOrBuilder
      getGlossaryDocumentTranslationOrBuilder();

  /**
   *
   *
   * <pre>
   * Only present when 'model' is present in the request.
   * 'model' is normalized to have a project number.
   * For example:
   * If the 'model' field in TranslateDocumentRequest is:
   * `projects/{project-id}/locations/{location-id}/models/general/nmt` then
   * `model` here would be normalized to
   * `projects/{project-number}/locations/{location-id}/models/general/nmt`.
   * </pre>
   *
   * <code>string model = 3;</code>
   *
   * @return The model.
   */
  java.lang.String getModel();
  /**
   *
   *
   * <pre>
   * Only present when 'model' is present in the request.
   * 'model' is normalized to have a project number.
   * For example:
   * If the 'model' field in TranslateDocumentRequest is:
   * `projects/{project-id}/locations/{location-id}/models/general/nmt` then
   * `model` here would be normalized to
   * `projects/{project-number}/locations/{location-id}/models/general/nmt`.
   * </pre>
   *
   * <code>string model = 3;</code>
   *
   * @return The bytes for model.
   */
  com.google.protobuf.ByteString getModelBytes();

  /**
   *
   *
   * <pre>
   * The `glossary_config` used for this translation.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;</code>
   *
   * @return Whether the glossaryConfig field is set.
   */
  boolean hasGlossaryConfig();
  /**
   *
   *
   * <pre>
   * The `glossary_config` used for this translation.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;</code>
   *
   * @return The glossaryConfig.
   */
  com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossaryConfig();
  /**
   *
   *
   * <pre>
   * The `glossary_config` used for this translation.
   * </pre>
   *
   * <code>.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;</code>
   */
  com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder();
}
