Class RomanizeTextResponse.Builder

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

public static final class RomanizeTextResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<RomanizeTextResponse.Builder> implements RomanizeTextResponseOrBuilder
 The response message for synchronous romanization.
 
Protobuf type google.cloud.translation.v3.RomanizeTextResponse
  • 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<RomanizeTextResponse.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<RomanizeTextResponse.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<RomanizeTextResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public RomanizeTextResponse.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<RomanizeTextResponse.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<RomanizeTextResponse.Builder>
    • mergeFrom

      public RomanizeTextResponse.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<RomanizeTextResponse.Builder>
      Throws:
      IOException
    • getRomanizationsList

      public List<Romanization> getRomanizationsList()
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
      Specified by:
      getRomanizationsList in interface RomanizeTextResponseOrBuilder
    • getRomanizationsCount

      public int getRomanizationsCount()
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
      Specified by:
      getRomanizationsCount in interface RomanizeTextResponseOrBuilder
    • getRomanizations

      public Romanization getRomanizations(int index)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
      Specified by:
      getRomanizations in interface RomanizeTextResponseOrBuilder
    • setRomanizations

      public RomanizeTextResponse.Builder setRomanizations(int index, Romanization value)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • setRomanizations

      public RomanizeTextResponse.Builder setRomanizations(int index, Romanization.Builder builderForValue)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • addRomanizations

      public RomanizeTextResponse.Builder addRomanizations(Romanization value)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • addRomanizations

      public RomanizeTextResponse.Builder addRomanizations(int index, Romanization value)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • addRomanizations

      public RomanizeTextResponse.Builder addRomanizations(Romanization.Builder builderForValue)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • addRomanizations

      public RomanizeTextResponse.Builder addRomanizations(int index, Romanization.Builder builderForValue)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • addAllRomanizations

      public RomanizeTextResponse.Builder addAllRomanizations(Iterable<? extends Romanization> values)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • clearRomanizations

      public RomanizeTextResponse.Builder clearRomanizations()
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • removeRomanizations

      public RomanizeTextResponse.Builder removeRomanizations(int index)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • getRomanizationsBuilder

      public Romanization.Builder getRomanizationsBuilder(int index)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • getRomanizationsOrBuilder

      public RomanizationOrBuilder getRomanizationsOrBuilder(int index)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
      Specified by:
      getRomanizationsOrBuilder in interface RomanizeTextResponseOrBuilder
    • getRomanizationsOrBuilderList

      public List<? extends RomanizationOrBuilder> getRomanizationsOrBuilderList()
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
      Specified by:
      getRomanizationsOrBuilderList in interface RomanizeTextResponseOrBuilder
    • addRomanizationsBuilder

      public Romanization.Builder addRomanizationsBuilder()
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • addRomanizationsBuilder

      public Romanization.Builder addRomanizationsBuilder(int index)
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;
    • getRomanizationsBuilderList

      public List<Romanization.Builder> getRomanizationsBuilderList()
       Text romanization responses.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.RomanizeTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Romanization romanizations = 1;