Class RefineTextRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.translate.v3beta1.RefineTextRequest
All Implemented Interfaces:
RefineTextRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RefineTextRequest extends com.google.protobuf.GeneratedMessage implements RefineTextRequestOrBuilder
 Request message for RefineText.
 
Protobuf type google.cloud.translation.v3beta1.RefineTextRequest
See Also:
  • Field Details

    • PARENT_FIELD_NUMBER

      public static final int PARENT_FIELD_NUMBER
      See Also:
    • REFINEMENT_ENTRIES_FIELD_NUMBER

      public static final int REFINEMENT_ENTRIES_FIELD_NUMBER
      See Also:
    • SOURCE_LANGUAGE_CODE_FIELD_NUMBER

      public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER
      See Also:
    • TARGET_LANGUAGE_CODE_FIELD_NUMBER

      public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER
      See Also:
  • 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
    • getParent

      public 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) = { ... }
      Specified by:
      getParent in interface RefineTextRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public 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) = { ... }
      Specified by:
      getParentBytes in interface RefineTextRequestOrBuilder
      Returns:
      The bytes for parent.
    • getRefinementEntriesList

      public 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];
      Specified by:
      getRefinementEntriesList in interface RefineTextRequestOrBuilder
    • getRefinementEntriesOrBuilderList

      public 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];
      Specified by:
      getRefinementEntriesOrBuilderList in interface RefineTextRequestOrBuilder
    • getRefinementEntriesCount

      public 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];
      Specified by:
      getRefinementEntriesCount in interface RefineTextRequestOrBuilder
    • getRefinementEntries

      public 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];
      Specified by:
      getRefinementEntries in interface RefineTextRequestOrBuilder
    • getRefinementEntriesOrBuilder

      public 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];
      Specified by:
      getRefinementEntriesOrBuilder in interface RefineTextRequestOrBuilder
    • getSourceLanguageCode

      public 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];
      Specified by:
      getSourceLanguageCode in interface RefineTextRequestOrBuilder
      Returns:
      The sourceLanguageCode.
    • getSourceLanguageCodeBytes

      public 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];
      Specified by:
      getSourceLanguageCodeBytes in interface RefineTextRequestOrBuilder
      Returns:
      The bytes for sourceLanguageCode.
    • getTargetLanguageCode

      public 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];
      Specified by:
      getTargetLanguageCode in interface RefineTextRequestOrBuilder
      Returns:
      The targetLanguageCode.
    • getTargetLanguageCodeBytes

      public 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];
      Specified by:
      getTargetLanguageCodeBytes in interface RefineTextRequestOrBuilder
      Returns:
      The bytes for targetLanguageCode.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RefineTextRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RefineTextRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RefineTextRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RefineTextRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RefineTextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RefineTextRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RefineTextRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RefineTextRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RefineTextRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RefineTextRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RefineTextRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RefineTextRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RefineTextRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RefineTextRequest.Builder newBuilder()
    • newBuilder

      public static RefineTextRequest.Builder newBuilder(RefineTextRequest prototype)
    • toBuilder

      public RefineTextRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RefineTextRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RefineTextRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RefineTextRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<RefineTextRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RefineTextRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder