Class GlossaryEntry.GlossaryTermsSet.Builder

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

public static final class GlossaryEntry.GlossaryTermsSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<GlossaryEntry.GlossaryTermsSet.Builder> implements GlossaryEntry.GlossaryTermsSetOrBuilder
 Represents a single entry for an equivalent term set glossary. This is used
 for equivalent term sets where each term can be replaced by the other terms
 in the set.
 
Protobuf type google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet
  • 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<GlossaryEntry.GlossaryTermsSet.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<GlossaryEntry.GlossaryTermsSet.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<GlossaryEntry.GlossaryTermsSet.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public GlossaryEntry.GlossaryTermsSet.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<GlossaryEntry.GlossaryTermsSet.Builder>
      Throws:
      IOException
    • getTermsList

      public List<GlossaryTerm> getTermsList()
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
      Specified by:
      getTermsList in interface GlossaryEntry.GlossaryTermsSetOrBuilder
    • getTermsCount

      public int getTermsCount()
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
      Specified by:
      getTermsCount in interface GlossaryEntry.GlossaryTermsSetOrBuilder
    • getTerms

      public GlossaryTerm getTerms(int index)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
      Specified by:
      getTerms in interface GlossaryEntry.GlossaryTermsSetOrBuilder
    • setTerms

      public GlossaryEntry.GlossaryTermsSet.Builder setTerms(int index, GlossaryTerm value)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • setTerms

      public GlossaryEntry.GlossaryTermsSet.Builder setTerms(int index, GlossaryTerm.Builder builderForValue)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • addTerms

       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • addTerms

      public GlossaryEntry.GlossaryTermsSet.Builder addTerms(int index, GlossaryTerm value)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • addTerms

       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • addTerms

      public GlossaryEntry.GlossaryTermsSet.Builder addTerms(int index, GlossaryTerm.Builder builderForValue)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • addAllTerms

      public GlossaryEntry.GlossaryTermsSet.Builder addAllTerms(Iterable<? extends GlossaryTerm> values)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • clearTerms

       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • removeTerms

      public GlossaryEntry.GlossaryTermsSet.Builder removeTerms(int index)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • getTermsBuilder

      public GlossaryTerm.Builder getTermsBuilder(int index)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • getTermsOrBuilder

      public GlossaryTermOrBuilder getTermsOrBuilder(int index)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
      Specified by:
      getTermsOrBuilder in interface GlossaryEntry.GlossaryTermsSetOrBuilder
    • getTermsOrBuilderList

      public List<? extends GlossaryTermOrBuilder> getTermsOrBuilderList()
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
      Specified by:
      getTermsOrBuilderList in interface GlossaryEntry.GlossaryTermsSetOrBuilder
    • addTermsBuilder

      public GlossaryTerm.Builder addTermsBuilder()
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • addTermsBuilder

      public GlossaryTerm.Builder addTermsBuilder(int index)
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;
    • getTermsBuilderList

      public List<GlossaryTerm.Builder> getTermsBuilderList()
       Each term in the set represents a term that can be replaced by the other
       terms.
       
      repeated .google.cloud.translation.v3.GlossaryTerm terms = 1;