Class AnalyzeEntitySentimentResponse.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<AnalyzeEntitySentimentResponse.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<AnalyzeEntitySentimentResponse.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public AnalyzeEntitySentimentResponse.Builder setEntities​(int index,
                                                                  Entity value)
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • addEntities

        public AnalyzeEntitySentimentResponse.Builder addEntities​(Entity value)
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • addEntities

        public AnalyzeEntitySentimentResponse.Builder addEntities​(int index,
                                                                  Entity value)
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • clearEntities

        public AnalyzeEntitySentimentResponse.Builder clearEntities()
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • removeEntities

        public AnalyzeEntitySentimentResponse.Builder removeEntities​(int index)
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • getEntitiesBuilder

        public Entity.Builder getEntitiesBuilder​(int index)
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • addEntitiesBuilder

        public Entity.Builder addEntitiesBuilder()
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • addEntitiesBuilder

        public Entity.Builder addEntitiesBuilder​(int index)
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • getEntitiesBuilderList

        public List<Entity.Builder> getEntitiesBuilderList()
         The recognized entities in the input document with associated sentiments.
         
        repeated .google.cloud.language.v1beta2.Entity entities = 1;
      • 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 = 2;
        Specified by:
        getLanguage in interface AnalyzeEntitySentimentResponseOrBuilder
        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 = 2;
        Specified by:
        getLanguageBytes in interface AnalyzeEntitySentimentResponseOrBuilder
        Returns:
        The bytes for language.
      • setLanguage

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

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

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