Class AnalyzeSyntaxResponse.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public AnalyzeSyntaxResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
      • clearField

        public AnalyzeSyntaxResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
      • clearOneof

        public AnalyzeSyntaxResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
      • setRepeatedField

        public AnalyzeSyntaxResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
      • addRepeatedField

        public AnalyzeSyntaxResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • setSentences

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

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

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

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

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

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

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

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

        public int getTokensCount()
         Tokens, along with their syntactic information, in the input document.
         
        repeated .google.cloud.language.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.Token tokens = 2;
      • addTokens

        public AnalyzeSyntaxResponse.Builder addTokens​(Token value)
         Tokens, along with their syntactic information, in the input document.
         
        repeated .google.cloud.language.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.Token tokens = 2;
      • clearTokens

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

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

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

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

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

        public List<Token.Builder> getTokensBuilderList()
         Tokens, along with their syntactic information, in the input document.
         
        repeated .google.cloud.language.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.Document.language]
         field for more details.
         
        string language = 3;
        Parameters:
        value - The bytes for language to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AnalyzeSyntaxResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
      • mergeUnknownFields

        public final AnalyzeSyntaxResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>