Interface RomanizeTextRequestOrBuilder

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

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

    Modifier and Type
    Method
    Description
    getContents(int index)
    Required.
    com.google.protobuf.ByteString
    getContentsBytes(int index)
    Required.
    int
    Required.
    Required.
    Required.
    com.google.protobuf.ByteString
    Required.
    Optional.
    com.google.protobuf.ByteString
    Optional.

    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

    • 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}` or
       `projects/{project-number-or-id}`.
      
       For global calls, use `projects/{project-number-or-id}/locations/global` or
       `projects/{project-number-or-id}`.
       
      string parent = 4 [(.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}` or
       `projects/{project-number-or-id}`.
      
       For global calls, use `projects/{project-number-or-id}/locations/global` or
       `projects/{project-number-or-id}`.
       
      string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      The bytes for parent.
    • getContentsList

      List<String> getContentsList()
       Required. The content of the input in string format.
       
      repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      A list containing the contents.
    • getContentsCount

      int getContentsCount()
       Required. The content of the input in string format.
       
      repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The count of contents.
    • getContents

      String getContents(int index)
       Required. The content of the input in string format.
       
      repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index of the element to return.
      Returns:
      The contents at the given index.
    • getContentsBytes

      com.google.protobuf.ByteString getContentsBytes(int index)
       Required. The content of the input in string format.
       
      repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the contents at the given index.
    • getSourceLanguageCode

      String getSourceLanguageCode()
       Optional. The ISO-639 language code of the input text if
       known, for example, "hi" or "zh". Supported language codes are
       listed in [Language
       Support](https://cloud.google.com/translate/docs/languages#roman). If the
       source language isn't specified, the API attempts to identify the source
       language automatically and returns the source language for each content in
       the response.
       
      string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The sourceLanguageCode.
    • getSourceLanguageCodeBytes

      com.google.protobuf.ByteString getSourceLanguageCodeBytes()
       Optional. The ISO-639 language code of the input text if
       known, for example, "hi" or "zh". Supported language codes are
       listed in [Language
       Support](https://cloud.google.com/translate/docs/languages#roman). If the
       source language isn't specified, the API attempts to identify the source
       language automatically and returns the source language for each content in
       the response.
       
      string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for sourceLanguageCode.