Class RefineTextResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RefineTextResponse.Builder>
com.google.cloud.translate.v3beta1.RefineTextResponse.Builder
All Implemented Interfaces:
RefineTextResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RefineTextResponse

public static final class RefineTextResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<RefineTextResponse.Builder> implements RefineTextResponseOrBuilder
 Response message for RefineText.
 
Protobuf type google.cloud.translation.v3beta1.RefineTextResponse
  • 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.Builder<RefineTextResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RefineTextResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RefineTextResponse.Builder>
    • getDefaultInstanceForType

      public RefineTextResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RefineTextResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RefineTextResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RefineTextResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RefineTextResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RefineTextResponse.Builder>
    • mergeFrom

      public RefineTextResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RefineTextResponse.Builder>
      Throws:
      IOException
    • getRefinedTranslationsList

      public com.google.protobuf.ProtocolStringList getRefinedTranslationsList()
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Specified by:
      getRefinedTranslationsList in interface RefineTextResponseOrBuilder
      Returns:
      A list containing the refinedTranslations.
    • getRefinedTranslationsCount

      public int getRefinedTranslationsCount()
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Specified by:
      getRefinedTranslationsCount in interface RefineTextResponseOrBuilder
      Returns:
      The count of refinedTranslations.
    • getRefinedTranslations

      public String getRefinedTranslations(int index)
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Specified by:
      getRefinedTranslations in interface RefineTextResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The refinedTranslations at the given index.
    • getRefinedTranslationsBytes

      public com.google.protobuf.ByteString getRefinedTranslationsBytes(int index)
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Specified by:
      getRefinedTranslationsBytes in interface RefineTextResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the refinedTranslations at the given index.
    • setRefinedTranslations

      public RefineTextResponse.Builder setRefinedTranslations(int index, String value)
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Parameters:
      index - The index to set the value at.
      value - The refinedTranslations to set.
      Returns:
      This builder for chaining.
    • addRefinedTranslations

      public RefineTextResponse.Builder addRefinedTranslations(String value)
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Parameters:
      value - The refinedTranslations to add.
      Returns:
      This builder for chaining.
    • addAllRefinedTranslations

      public RefineTextResponse.Builder addAllRefinedTranslations(Iterable<String> values)
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Parameters:
      values - The refinedTranslations to add.
      Returns:
      This builder for chaining.
    • clearRefinedTranslations

      public RefineTextResponse.Builder clearRefinedTranslations()
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Returns:
      This builder for chaining.
    • addRefinedTranslationsBytes

      public RefineTextResponse.Builder addRefinedTranslationsBytes(com.google.protobuf.ByteString value)
       The refined translations obtained from the original translations.
       
      repeated string refined_translations = 1;
      Parameters:
      value - The bytes of the refinedTranslations to add.
      Returns:
      This builder for chaining.