Class GlossaryEntry.Builder

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

public static final class GlossaryEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<GlossaryEntry.Builder> implements GlossaryEntryOrBuilder
 Represents a single entry in a glossary.
 
Protobuf type google.cloud.translation.v3.GlossaryEntry
  • 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.Builder>
    • clear

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

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

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

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

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

      public GlossaryEntry.Builder mergeFrom(GlossaryEntry other)
    • isInitialized

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

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

      public GlossaryEntry.DataCase getDataCase()
      Specified by:
      getDataCase in interface GlossaryEntryOrBuilder
    • clearData

      public GlossaryEntry.Builder clearData()
    • getName

      public String getName()
       Identifier. The resource name of the entry.
       Format:
       `projects/*/locations/*/glossaries/*/glossaryEntries/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface GlossaryEntryOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the entry.
       Format:
       `projects/*/locations/*/glossaries/*/glossaryEntries/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface GlossaryEntryOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GlossaryEntry.Builder setName(String value)
       Identifier. The resource name of the entry.
       Format:
       `projects/*/locations/*/glossaries/*/glossaryEntries/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GlossaryEntry.Builder clearName()
       Identifier. The resource name of the entry.
       Format:
       `projects/*/locations/*/glossaries/*/glossaryEntries/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public GlossaryEntry.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the entry.
       Format:
       `projects/*/locations/*/glossaries/*/glossaryEntries/*`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasTermsPair

      public boolean hasTermsPair()
       Used for an unidirectional glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;
      Specified by:
      hasTermsPair in interface GlossaryEntryOrBuilder
      Returns:
      Whether the termsPair field is set.
    • getTermsPair

      public GlossaryEntry.GlossaryTermsPair getTermsPair()
       Used for an unidirectional glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;
      Specified by:
      getTermsPair in interface GlossaryEntryOrBuilder
      Returns:
      The termsPair.
    • setTermsPair

       Used for an unidirectional glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;
    • setTermsPair

      public GlossaryEntry.Builder setTermsPair(GlossaryEntry.GlossaryTermsPair.Builder builderForValue)
       Used for an unidirectional glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;
    • mergeTermsPair

       Used for an unidirectional glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;
    • clearTermsPair

      public GlossaryEntry.Builder clearTermsPair()
       Used for an unidirectional glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;
    • getTermsPairBuilder

      public GlossaryEntry.GlossaryTermsPair.Builder getTermsPairBuilder()
       Used for an unidirectional glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;
    • getTermsPairOrBuilder

      public GlossaryEntry.GlossaryTermsPairOrBuilder getTermsPairOrBuilder()
       Used for an unidirectional glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;
      Specified by:
      getTermsPairOrBuilder in interface GlossaryEntryOrBuilder
    • hasTermsSet

      public boolean hasTermsSet()
       Used for an equivalent term sets glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;
      Specified by:
      hasTermsSet in interface GlossaryEntryOrBuilder
      Returns:
      Whether the termsSet field is set.
    • getTermsSet

      public GlossaryEntry.GlossaryTermsSet getTermsSet()
       Used for an equivalent term sets glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;
      Specified by:
      getTermsSet in interface GlossaryEntryOrBuilder
      Returns:
      The termsSet.
    • setTermsSet

       Used for an equivalent term sets glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;
    • setTermsSet

      public GlossaryEntry.Builder setTermsSet(GlossaryEntry.GlossaryTermsSet.Builder builderForValue)
       Used for an equivalent term sets glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;
    • mergeTermsSet

       Used for an equivalent term sets glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;
    • clearTermsSet

      public GlossaryEntry.Builder clearTermsSet()
       Used for an equivalent term sets glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;
    • getTermsSetBuilder

      public GlossaryEntry.GlossaryTermsSet.Builder getTermsSetBuilder()
       Used for an equivalent term sets glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;
    • getTermsSetOrBuilder

      public GlossaryEntry.GlossaryTermsSetOrBuilder getTermsSetOrBuilder()
       Used for an equivalent term sets glossary.
       
      .google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;
      Specified by:
      getTermsSetOrBuilder in interface GlossaryEntryOrBuilder
    • getDescription

      public String getDescription()
       Describes the glossary entry.
       
      string description = 4;
      Specified by:
      getDescription in interface GlossaryEntryOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Describes the glossary entry.
       
      string description = 4;
      Specified by:
      getDescriptionBytes in interface GlossaryEntryOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public GlossaryEntry.Builder setDescription(String value)
       Describes the glossary entry.
       
      string description = 4;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public GlossaryEntry.Builder clearDescription()
       Describes the glossary entry.
       
      string description = 4;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public GlossaryEntry.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Describes the glossary entry.
       
      string description = 4;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.