Class ListGlossaryEntriesResponse.Builder

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

public static final class ListGlossaryEntriesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListGlossaryEntriesResponse.Builder> implements ListGlossaryEntriesResponseOrBuilder
 Response message for ListGlossaryEntries
 
Protobuf type google.cloud.translation.v3.ListGlossaryEntriesResponse
  • 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<ListGlossaryEntriesResponse.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<ListGlossaryEntriesResponse.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<ListGlossaryEntriesResponse.Builder>
    • getDefaultInstanceForType

      public ListGlossaryEntriesResponse 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 ListGlossaryEntriesResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ListGlossaryEntriesResponse.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<ListGlossaryEntriesResponse.Builder>
      Throws:
      IOException
    • getGlossaryEntriesList

      public List<GlossaryEntry> getGlossaryEntriesList()
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGlossaryEntriesList in interface ListGlossaryEntriesResponseOrBuilder
    • getGlossaryEntriesCount

      public int getGlossaryEntriesCount()
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGlossaryEntriesCount in interface ListGlossaryEntriesResponseOrBuilder
    • getGlossaryEntries

      public GlossaryEntry getGlossaryEntries(int index)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGlossaryEntries in interface ListGlossaryEntriesResponseOrBuilder
    • setGlossaryEntries

      public ListGlossaryEntriesResponse.Builder setGlossaryEntries(int index, GlossaryEntry value)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setGlossaryEntries

      public ListGlossaryEntriesResponse.Builder setGlossaryEntries(int index, GlossaryEntry.Builder builderForValue)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addGlossaryEntries

      public ListGlossaryEntriesResponse.Builder addGlossaryEntries(GlossaryEntry value)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addGlossaryEntries

      public ListGlossaryEntriesResponse.Builder addGlossaryEntries(int index, GlossaryEntry value)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addGlossaryEntries

      public ListGlossaryEntriesResponse.Builder addGlossaryEntries(GlossaryEntry.Builder builderForValue)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addGlossaryEntries

      public ListGlossaryEntriesResponse.Builder addGlossaryEntries(int index, GlossaryEntry.Builder builderForValue)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllGlossaryEntries

      public ListGlossaryEntriesResponse.Builder addAllGlossaryEntries(Iterable<? extends GlossaryEntry> values)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearGlossaryEntries

      public ListGlossaryEntriesResponse.Builder clearGlossaryEntries()
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeGlossaryEntries

      public ListGlossaryEntriesResponse.Builder removeGlossaryEntries(int index)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getGlossaryEntriesBuilder

      public GlossaryEntry.Builder getGlossaryEntriesBuilder(int index)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getGlossaryEntriesOrBuilder

      public GlossaryEntryOrBuilder getGlossaryEntriesOrBuilder(int index)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGlossaryEntriesOrBuilder in interface ListGlossaryEntriesResponseOrBuilder
    • getGlossaryEntriesOrBuilderList

      public List<? extends GlossaryEntryOrBuilder> getGlossaryEntriesOrBuilderList()
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGlossaryEntriesOrBuilderList in interface ListGlossaryEntriesResponseOrBuilder
    • addGlossaryEntriesBuilder

      public GlossaryEntry.Builder addGlossaryEntriesBuilder()
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addGlossaryEntriesBuilder

      public GlossaryEntry.Builder addGlossaryEntriesBuilder(int index)
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getGlossaryEntriesBuilderList

      public List<GlossaryEntry.Builder> getGlossaryEntriesBuilderList()
       Optional. The Glossary Entries
       
      repeated .google.cloud.translation.v3.GlossaryEntry glossary_entries = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getNextPageToken

      public String getNextPageToken()
       Optional. A token to retrieve a page of results. Pass this value in the
       [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageToken in interface ListGlossaryEntriesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Optional. A token to retrieve a page of results. Pass this value in the
       [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageTokenBytes in interface ListGlossaryEntriesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListGlossaryEntriesResponse.Builder setNextPageToken(String value)
       Optional. A token to retrieve a page of results. Pass this value in the
       [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListGlossaryEntriesResponse.Builder clearNextPageToken()
       Optional. A token to retrieve a page of results. Pass this value in the
       [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListGlossaryEntriesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. A token to retrieve a page of results. Pass this value in the
       [ListGLossaryEntriesRequest.page_token] field in the subsequent calls.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.