Class AnnotateTextResponse.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<AnnotateTextResponse.Builder>
      • clear

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

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

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

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

        public AnnotateTextResponse.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<AnnotateTextResponse.Builder>
      • setField

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

        public AnnotateTextResponse.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<AnnotateTextResponse.Builder>
      • clearOneof

        public AnnotateTextResponse.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<AnnotateTextResponse.Builder>
      • setRepeatedField

        public AnnotateTextResponse.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<AnnotateTextResponse.Builder>
      • addRepeatedField

        public AnnotateTextResponse.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<AnnotateTextResponse.Builder>
      • isInitialized

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

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

        public List<Sentence> getSentencesList()
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
        Specified by:
        getSentencesList in interface AnnotateTextResponseOrBuilder
      • getSentencesCount

        public int getSentencesCount()
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
        Specified by:
        getSentencesCount in interface AnnotateTextResponseOrBuilder
      • getSentences

        public Sentence getSentences​(int index)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
        Specified by:
        getSentences in interface AnnotateTextResponseOrBuilder
      • setSentences

        public AnnotateTextResponse.Builder setSentences​(int index,
                                                         Sentence value)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • setSentences

        public AnnotateTextResponse.Builder setSentences​(int index,
                                                         Sentence.Builder builderForValue)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • addSentences

        public AnnotateTextResponse.Builder addSentences​(Sentence value)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • addSentences

        public AnnotateTextResponse.Builder addSentences​(int index,
                                                         Sentence value)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • addSentences

        public AnnotateTextResponse.Builder addSentences​(Sentence.Builder builderForValue)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • addSentences

        public AnnotateTextResponse.Builder addSentences​(int index,
                                                         Sentence.Builder builderForValue)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • addAllSentences

        public AnnotateTextResponse.Builder addAllSentences​(Iterable<? extends Sentence> values)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • clearSentences

        public AnnotateTextResponse.Builder clearSentences()
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • removeSentences

        public AnnotateTextResponse.Builder removeSentences​(int index)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • getSentencesBuilder

        public Sentence.Builder getSentencesBuilder​(int index)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • getSentencesOrBuilder

        public SentenceOrBuilder getSentencesOrBuilder​(int index)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
        Specified by:
        getSentencesOrBuilder in interface AnnotateTextResponseOrBuilder
      • getSentencesOrBuilderList

        public List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
        Specified by:
        getSentencesOrBuilderList in interface AnnotateTextResponseOrBuilder
      • addSentencesBuilder

        public Sentence.Builder addSentencesBuilder()
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • addSentencesBuilder

        public Sentence.Builder addSentencesBuilder​(int index)
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • getSentencesBuilderList

        public List<Sentence.Builder> getSentencesBuilderList()
         Sentences in the input document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Sentence sentences = 1;
      • getTokensList

        public List<Token> getTokensList()
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
        Specified by:
        getTokensList in interface AnnotateTextResponseOrBuilder
      • getTokensCount

        public int getTokensCount()
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
        Specified by:
        getTokensCount in interface AnnotateTextResponseOrBuilder
      • getTokens

        public Token getTokens​(int index)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
        Specified by:
        getTokens in interface AnnotateTextResponseOrBuilder
      • setTokens

        public AnnotateTextResponse.Builder setTokens​(int index,
                                                      Token value)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • setTokens

        public AnnotateTextResponse.Builder setTokens​(int index,
                                                      Token.Builder builderForValue)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • addTokens

        public AnnotateTextResponse.Builder addTokens​(Token value)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • addTokens

        public AnnotateTextResponse.Builder addTokens​(int index,
                                                      Token value)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • addTokens

        public AnnotateTextResponse.Builder addTokens​(Token.Builder builderForValue)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • addTokens

        public AnnotateTextResponse.Builder addTokens​(int index,
                                                      Token.Builder builderForValue)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • addAllTokens

        public AnnotateTextResponse.Builder addAllTokens​(Iterable<? extends Token> values)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • clearTokens

        public AnnotateTextResponse.Builder clearTokens()
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • removeTokens

        public AnnotateTextResponse.Builder removeTokens​(int index)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        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.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • getTokensOrBuilder

        public TokenOrBuilder getTokensOrBuilder​(int index)
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
        Specified by:
        getTokensOrBuilder in interface AnnotateTextResponseOrBuilder
      • getTokensOrBuilderList

        public List<? extends TokenOrBuilder> getTokensOrBuilderList()
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
        Specified by:
        getTokensOrBuilderList in interface AnnotateTextResponseOrBuilder
      • addTokensBuilder

        public Token.Builder addTokensBuilder()
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        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.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • getTokensBuilderList

        public List<Token.Builder> getTokensBuilderList()
         Tokens, along with their syntactic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax].
         
        repeated .google.cloud.language.v1.Token tokens = 2;
      • getEntitiesList

        public List<Entity> getEntitiesList()
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
        Specified by:
        getEntitiesList in interface AnnotateTextResponseOrBuilder
      • getEntitiesCount

        public int getEntitiesCount()
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
        Specified by:
        getEntitiesCount in interface AnnotateTextResponseOrBuilder
      • getEntities

        public Entity getEntities​(int index)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
        Specified by:
        getEntities in interface AnnotateTextResponseOrBuilder
      • setEntities

        public AnnotateTextResponse.Builder setEntities​(int index,
                                                        Entity value)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • setEntities

        public AnnotateTextResponse.Builder setEntities​(int index,
                                                        Entity.Builder builderForValue)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • addEntities

        public AnnotateTextResponse.Builder addEntities​(Entity value)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • addEntities

        public AnnotateTextResponse.Builder addEntities​(int index,
                                                        Entity value)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • addEntities

        public AnnotateTextResponse.Builder addEntities​(Entity.Builder builderForValue)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • addEntities

        public AnnotateTextResponse.Builder addEntities​(int index,
                                                        Entity.Builder builderForValue)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • addAllEntities

        public AnnotateTextResponse.Builder addAllEntities​(Iterable<? extends Entity> values)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • clearEntities

        public AnnotateTextResponse.Builder clearEntities()
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • removeEntities

        public AnnotateTextResponse.Builder removeEntities​(int index)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • getEntitiesBuilder

        public Entity.Builder getEntitiesBuilder​(int index)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • getEntitiesOrBuilder

        public EntityOrBuilder getEntitiesOrBuilder​(int index)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
        Specified by:
        getEntitiesOrBuilder in interface AnnotateTextResponseOrBuilder
      • getEntitiesOrBuilderList

        public List<? extends EntityOrBuilder> getEntitiesOrBuilderList()
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
        Specified by:
        getEntitiesOrBuilderList in interface AnnotateTextResponseOrBuilder
      • addEntitiesBuilder

        public Entity.Builder addEntitiesBuilder()
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • addEntitiesBuilder

        public Entity.Builder addEntitiesBuilder​(int index)
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • getEntitiesBuilderList

        public List<Entity.Builder> getEntitiesBuilderList()
         Entities, along with their semantic information, in the input document.
         Populated if the user enables
         [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities].
         
        repeated .google.cloud.language.v1.Entity entities = 3;
      • hasDocumentSentiment

        public boolean hasDocumentSentiment()
         The overall sentiment for the document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
         
        .google.cloud.language.v1.Sentiment document_sentiment = 4;
        Specified by:
        hasDocumentSentiment in interface AnnotateTextResponseOrBuilder
        Returns:
        Whether the documentSentiment field is set.
      • getDocumentSentiment

        public Sentiment getDocumentSentiment()
         The overall sentiment for the document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
         
        .google.cloud.language.v1.Sentiment document_sentiment = 4;
        Specified by:
        getDocumentSentiment in interface AnnotateTextResponseOrBuilder
        Returns:
        The documentSentiment.
      • setDocumentSentiment

        public AnnotateTextResponse.Builder setDocumentSentiment​(Sentiment value)
         The overall sentiment for the document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
         
        .google.cloud.language.v1.Sentiment document_sentiment = 4;
      • setDocumentSentiment

        public AnnotateTextResponse.Builder setDocumentSentiment​(Sentiment.Builder builderForValue)
         The overall sentiment for the document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
         
        .google.cloud.language.v1.Sentiment document_sentiment = 4;
      • mergeDocumentSentiment

        public AnnotateTextResponse.Builder mergeDocumentSentiment​(Sentiment value)
         The overall sentiment for the document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
         
        .google.cloud.language.v1.Sentiment document_sentiment = 4;
      • clearDocumentSentiment

        public AnnotateTextResponse.Builder clearDocumentSentiment()
         The overall sentiment for the document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
         
        .google.cloud.language.v1.Sentiment document_sentiment = 4;
      • getDocumentSentimentBuilder

        public Sentiment.Builder getDocumentSentimentBuilder()
         The overall sentiment for the document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
         
        .google.cloud.language.v1.Sentiment document_sentiment = 4;
      • getDocumentSentimentOrBuilder

        public SentimentOrBuilder getDocumentSentimentOrBuilder()
         The overall sentiment for the document. Populated if the user enables
         [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment].
         
        .google.cloud.language.v1.Sentiment document_sentiment = 4;
        Specified by:
        getDocumentSentimentOrBuilder in interface AnnotateTextResponseOrBuilder
      • 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 = 5;
        Specified by:
        getLanguage in interface AnnotateTextResponseOrBuilder
        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 = 5;
        Specified by:
        getLanguageBytes in interface AnnotateTextResponseOrBuilder
        Returns:
        The bytes for language.
      • setLanguage

        public AnnotateTextResponse.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 = 5;
        Parameters:
        value - The language to set.
        Returns:
        This builder for chaining.
      • clearLanguage

        public AnnotateTextResponse.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 = 5;
        Returns:
        This builder for chaining.
      • setLanguageBytes

        public AnnotateTextResponse.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 = 5;
        Parameters:
        value - The bytes for language to set.
        Returns:
        This builder for chaining.
      • getCategoriesCount

        public int getCategoriesCount()
         Categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
        Specified by:
        getCategoriesCount in interface AnnotateTextResponseOrBuilder
      • clearCategories

        public AnnotateTextResponse.Builder clearCategories()
         Categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
      • removeCategories

        public AnnotateTextResponse.Builder removeCategories​(int index)
         Categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
      • getCategoriesBuilder

        public ClassificationCategory.Builder getCategoriesBuilder​(int index)
         Categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
      • addCategoriesBuilder

        public ClassificationCategory.Builder addCategoriesBuilder()
         Categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
      • addCategoriesBuilder

        public ClassificationCategory.Builder addCategoriesBuilder​(int index)
         Categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
      • getCategoriesBuilderList

        public List<ClassificationCategory.Builder> getCategoriesBuilderList()
         Categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory categories = 6;
      • getModerationCategoriesCount

        public int getModerationCategoriesCount()
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
        Specified by:
        getModerationCategoriesCount in interface AnnotateTextResponseOrBuilder
      • setModerationCategories

        public AnnotateTextResponse.Builder setModerationCategories​(int index,
                                                                    ClassificationCategory value)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • setModerationCategories

        public AnnotateTextResponse.Builder setModerationCategories​(int index,
                                                                    ClassificationCategory.Builder builderForValue)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • addModerationCategories

        public AnnotateTextResponse.Builder addModerationCategories​(ClassificationCategory value)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • addModerationCategories

        public AnnotateTextResponse.Builder addModerationCategories​(int index,
                                                                    ClassificationCategory value)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • addModerationCategories

        public AnnotateTextResponse.Builder addModerationCategories​(ClassificationCategory.Builder builderForValue)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • addModerationCategories

        public AnnotateTextResponse.Builder addModerationCategories​(int index,
                                                                    ClassificationCategory.Builder builderForValue)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • addAllModerationCategories

        public AnnotateTextResponse.Builder addAllModerationCategories​(Iterable<? extends ClassificationCategory> values)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • clearModerationCategories

        public AnnotateTextResponse.Builder clearModerationCategories()
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • removeModerationCategories

        public AnnotateTextResponse.Builder removeModerationCategories​(int index)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • getModerationCategoriesBuilder

        public ClassificationCategory.Builder getModerationCategoriesBuilder​(int index)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • addModerationCategoriesBuilder

        public ClassificationCategory.Builder addModerationCategoriesBuilder()
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • addModerationCategoriesBuilder

        public ClassificationCategory.Builder addModerationCategoriesBuilder​(int index)
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • getModerationCategoriesBuilderList

        public List<ClassificationCategory.Builder> getModerationCategoriesBuilderList()
         Harmful and sensitive categories identified in the input document.
         
        repeated .google.cloud.language.v1.ClassificationCategory moderation_categories = 7;
      • setUnknownFields

        public final AnnotateTextResponse.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<AnnotateTextResponse.Builder>
      • mergeUnknownFields

        public final AnnotateTextResponse.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<AnnotateTextResponse.Builder>