Class AnalyzeSyntaxResponse.Builder

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

public static final class AnalyzeSyntaxResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnalyzeSyntaxResponse.Builder> implements AnalyzeSyntaxResponseOrBuilder
 The syntax analysis response message.
 
Protobuf type google.cloud.language.v1.AnalyzeSyntaxResponse
  • 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<AnalyzeSyntaxResponse.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<AnalyzeSyntaxResponse.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<AnalyzeSyntaxResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AnalyzeSyntaxResponse.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<AnalyzeSyntaxResponse.Builder>
      Throws:
      IOException
    • getSentencesList

      public List<Sentence> getSentencesList()
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
      Specified by:
      getSentencesList in interface AnalyzeSyntaxResponseOrBuilder
    • getSentencesCount

      public int getSentencesCount()
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
      Specified by:
      getSentencesCount in interface AnalyzeSyntaxResponseOrBuilder
    • getSentences

      public Sentence getSentences(int index)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
      Specified by:
      getSentences in interface AnalyzeSyntaxResponseOrBuilder
    • setSentences

      public AnalyzeSyntaxResponse.Builder setSentences(int index, Sentence value)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • setSentences

      public AnalyzeSyntaxResponse.Builder setSentences(int index, Sentence.Builder builderForValue)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • addSentences

      public AnalyzeSyntaxResponse.Builder addSentences(Sentence value)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • addSentences

      public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence value)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • addSentences

      public AnalyzeSyntaxResponse.Builder addSentences(Sentence.Builder builderForValue)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • addSentences

      public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence.Builder builderForValue)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • addAllSentences

      public AnalyzeSyntaxResponse.Builder addAllSentences(Iterable<? extends Sentence> values)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • clearSentences

      public AnalyzeSyntaxResponse.Builder clearSentences()
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • removeSentences

      public AnalyzeSyntaxResponse.Builder removeSentences(int index)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • getSentencesBuilder

      public Sentence.Builder getSentencesBuilder(int index)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • getSentencesOrBuilder

      public SentenceOrBuilder getSentencesOrBuilder(int index)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
      Specified by:
      getSentencesOrBuilder in interface AnalyzeSyntaxResponseOrBuilder
    • getSentencesOrBuilderList

      public List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
      Specified by:
      getSentencesOrBuilderList in interface AnalyzeSyntaxResponseOrBuilder
    • addSentencesBuilder

      public Sentence.Builder addSentencesBuilder()
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • addSentencesBuilder

      public Sentence.Builder addSentencesBuilder(int index)
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • getSentencesBuilderList

      public List<Sentence.Builder> getSentencesBuilderList()
       Sentences in the input document.
       
      repeated .google.cloud.language.v1.Sentence sentences = 1;
    • getTokensList

      public List<Token> getTokensList()
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
      Specified by:
      getTokensList in interface AnalyzeSyntaxResponseOrBuilder
    • getTokensCount

      public int getTokensCount()
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
      Specified by:
      getTokensCount in interface AnalyzeSyntaxResponseOrBuilder
    • getTokens

      public Token getTokens(int index)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
      Specified by:
      getTokens in interface AnalyzeSyntaxResponseOrBuilder
    • setTokens

      public AnalyzeSyntaxResponse.Builder setTokens(int index, Token value)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • setTokens

      public AnalyzeSyntaxResponse.Builder setTokens(int index, Token.Builder builderForValue)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • addTokens

      public AnalyzeSyntaxResponse.Builder addTokens(Token value)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • addTokens

      public AnalyzeSyntaxResponse.Builder addTokens(int index, Token value)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • addTokens

      public AnalyzeSyntaxResponse.Builder addTokens(Token.Builder builderForValue)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • addTokens

      public AnalyzeSyntaxResponse.Builder addTokens(int index, Token.Builder builderForValue)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • addAllTokens

      public AnalyzeSyntaxResponse.Builder addAllTokens(Iterable<? extends Token> values)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • clearTokens

      public AnalyzeSyntaxResponse.Builder clearTokens()
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • removeTokens

      public AnalyzeSyntaxResponse.Builder removeTokens(int index)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • getTokensBuilder

      public Token.Builder getTokensBuilder(int index)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • getTokensOrBuilder

      public TokenOrBuilder getTokensOrBuilder(int index)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
      Specified by:
      getTokensOrBuilder in interface AnalyzeSyntaxResponseOrBuilder
    • getTokensOrBuilderList

      public List<? extends TokenOrBuilder> getTokensOrBuilderList()
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
      Specified by:
      getTokensOrBuilderList in interface AnalyzeSyntaxResponseOrBuilder
    • addTokensBuilder

      public Token.Builder addTokensBuilder()
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • addTokensBuilder

      public Token.Builder addTokensBuilder(int index)
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • getTokensBuilderList

      public List<Token.Builder> getTokensBuilderList()
       Tokens, along with their syntactic information, in the input document.
       
      repeated .google.cloud.language.v1.Token tokens = 2;
    • getLanguage

      public String getLanguage()
       The language of the text, which will be the same as the language specified
       in the request or, if not specified, the automatically-detected language.
       See [Document.language][google.cloud.language.v1.Document.language] field
       for more details.
       
      string language = 3;
      Specified by:
      getLanguage in interface AnalyzeSyntaxResponseOrBuilder
      Returns:
      The language.
    • getLanguageBytes

      public com.google.protobuf.ByteString getLanguageBytes()
       The language of the text, which will be the same as the language specified
       in the request or, if not specified, the automatically-detected language.
       See [Document.language][google.cloud.language.v1.Document.language] field
       for more details.
       
      string language = 3;
      Specified by:
      getLanguageBytes in interface AnalyzeSyntaxResponseOrBuilder
      Returns:
      The bytes for language.
    • setLanguage

      public AnalyzeSyntaxResponse.Builder setLanguage(String value)
       The language of the text, which will be the same as the language specified
       in the request or, if not specified, the automatically-detected language.
       See [Document.language][google.cloud.language.v1.Document.language] field
       for more details.
       
      string language = 3;
      Parameters:
      value - The language to set.
      Returns:
      This builder for chaining.
    • clearLanguage

      public AnalyzeSyntaxResponse.Builder clearLanguage()
       The language of the text, which will be the same as the language specified
       in the request or, if not specified, the automatically-detected language.
       See [Document.language][google.cloud.language.v1.Document.language] field
       for more details.
       
      string language = 3;
      Returns:
      This builder for chaining.
    • setLanguageBytes

      public AnalyzeSyntaxResponse.Builder setLanguageBytes(com.google.protobuf.ByteString value)
       The language of the text, which will be the same as the language specified
       in the request or, if not specified, the automatically-detected language.
       See [Document.language][google.cloud.language.v1.Document.language] field
       for more details.
       
      string language = 3;
      Parameters:
      value - The bytes for language to set.
      Returns:
      This builder for chaining.