Class ListPhraseSetResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListPhraseSetResponse.Builder>
com.google.cloud.speech.v1.ListPhraseSetResponse.Builder
All Implemented Interfaces:
ListPhraseSetResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListPhraseSetResponse

public static final class ListPhraseSetResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListPhraseSetResponse.Builder> implements ListPhraseSetResponseOrBuilder
 Message returned to the client by the `ListPhraseSet` method.
 
Protobuf type google.cloud.speech.v1.ListPhraseSetResponse
  • 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<ListPhraseSetResponse.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<ListPhraseSetResponse.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<ListPhraseSetResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListPhraseSetResponse.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<ListPhraseSetResponse.Builder>
      Throws:
      IOException
    • getPhraseSetsList

      public List<PhraseSet> getPhraseSetsList()
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      Specified by:
      getPhraseSetsList in interface ListPhraseSetResponseOrBuilder
    • getPhraseSetsCount

      public int getPhraseSetsCount()
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      Specified by:
      getPhraseSetsCount in interface ListPhraseSetResponseOrBuilder
    • getPhraseSets

      public PhraseSet getPhraseSets(int index)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      Specified by:
      getPhraseSets in interface ListPhraseSetResponseOrBuilder
    • setPhraseSets

      public ListPhraseSetResponse.Builder setPhraseSets(int index, PhraseSet value)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • setPhraseSets

      public ListPhraseSetResponse.Builder setPhraseSets(int index, PhraseSet.Builder builderForValue)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • addPhraseSets

      public ListPhraseSetResponse.Builder addPhraseSets(PhraseSet value)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • addPhraseSets

      public ListPhraseSetResponse.Builder addPhraseSets(int index, PhraseSet value)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • addPhraseSets

      public ListPhraseSetResponse.Builder addPhraseSets(PhraseSet.Builder builderForValue)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • addPhraseSets

      public ListPhraseSetResponse.Builder addPhraseSets(int index, PhraseSet.Builder builderForValue)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • addAllPhraseSets

      public ListPhraseSetResponse.Builder addAllPhraseSets(Iterable<? extends PhraseSet> values)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • clearPhraseSets

      public ListPhraseSetResponse.Builder clearPhraseSets()
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • removePhraseSets

      public ListPhraseSetResponse.Builder removePhraseSets(int index)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • getPhraseSetsBuilder

      public PhraseSet.Builder getPhraseSetsBuilder(int index)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • getPhraseSetsOrBuilder

      public PhraseSetOrBuilder getPhraseSetsOrBuilder(int index)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      Specified by:
      getPhraseSetsOrBuilder in interface ListPhraseSetResponseOrBuilder
    • getPhraseSetsOrBuilderList

      public List<? extends PhraseSetOrBuilder> getPhraseSetsOrBuilderList()
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      Specified by:
      getPhraseSetsOrBuilderList in interface ListPhraseSetResponseOrBuilder
    • addPhraseSetsBuilder

      public PhraseSet.Builder addPhraseSetsBuilder()
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • addPhraseSetsBuilder

      public PhraseSet.Builder addPhraseSetsBuilder(int index)
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • getPhraseSetsBuilderList

      public List<PhraseSet.Builder> getPhraseSetsBuilderList()
       The phrase set.
       
      repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListPhraseSetResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListPhraseSetResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListPhraseSetResponse.Builder setNextPageToken(String value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListPhraseSetResponse.Builder clearNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListPhraseSetResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.