Interface RefineTextRequestOrBuilder

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

@Generated public interface RefineTextRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getParent

      String getParent()
       Required. Project or location to make a call. Must refer to a caller's
       project.
      
       Format: `projects/{project-number-or-id}/locations/{location-id}`.
      
       For global calls, use `projects/{project-number-or-id}/locations/global` or
       `projects/{project-number-or-id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      The parent.
    • getParentBytes

      com.google.protobuf.ByteString getParentBytes()
       Required. Project or location to make a call. Must refer to a caller's
       project.
      
       Format: `projects/{project-number-or-id}/locations/{location-id}`.
      
       For global calls, use `projects/{project-number-or-id}/locations/global` or
       `projects/{project-number-or-id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      The bytes for parent.
    • getRefinementEntriesList

      List<RefinementEntry> getRefinementEntriesList()
       Required. The source texts and original translations in the source and
       target languages.
       
      repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRefinementEntries

      RefinementEntry getRefinementEntries(int index)
       Required. The source texts and original translations in the source and
       target languages.
       
      repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRefinementEntriesCount

      int getRefinementEntriesCount()
       Required. The source texts and original translations in the source and
       target languages.
       
      repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRefinementEntriesOrBuilderList

      List<? extends RefinementEntryOrBuilder> getRefinementEntriesOrBuilderList()
       Required. The source texts and original translations in the source and
       target languages.
       
      repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRefinementEntriesOrBuilder

      RefinementEntryOrBuilder getRefinementEntriesOrBuilder(int index)
       Required. The source texts and original translations in the source and
       target languages.
       
      repeated .google.cloud.translation.v3beta1.RefinementEntry refinement_entries = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSourceLanguageCode

      String getSourceLanguageCode()
       Required. The BCP-47 language code of the source text in the request, for
       example, "en-US".
       
      string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The sourceLanguageCode.
    • getSourceLanguageCodeBytes

      com.google.protobuf.ByteString getSourceLanguageCodeBytes()
       Required. The BCP-47 language code of the source text in the request, for
       example, "en-US".
       
      string source_language_code = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for sourceLanguageCode.
    • getTargetLanguageCode

      String getTargetLanguageCode()
       Required. The BCP-47 language code for translation output, for example,
       "zh-CN".
       
      string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The targetLanguageCode.
    • getTargetLanguageCodeBytes

      com.google.protobuf.ByteString getTargetLanguageCodeBytes()
       Required. The BCP-47 language code for translation output, for example,
       "zh-CN".
       
      string target_language_code = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for targetLanguageCode.