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

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

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

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

        public AnalyzeEntitySentimentRequest.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<AnalyzeEntitySentimentRequest.Builder>
        Throws:
        IOException
      • hasDocument

        public boolean hasDocument()
         Required. Input document.
         
        .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDocument in interface AnalyzeEntitySentimentRequestOrBuilder
        Returns:
        Whether the document field is set.
      • clearDocument

        public AnalyzeEntitySentimentRequest.Builder clearDocument()
         Required. Input document.
         
        .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
      • getDocumentBuilder

        public Document.Builder getDocumentBuilder()
         Required. Input document.
         
        .google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
      • getEncodingTypeValue

        public int getEncodingTypeValue()
         The encoding type used by the API to calculate offsets.
         
        .google.cloud.language.v1.EncodingType encoding_type = 2;
        Specified by:
        getEncodingTypeValue in interface AnalyzeEntitySentimentRequestOrBuilder
        Returns:
        The enum numeric value on the wire for encodingType.
      • setEncodingTypeValue

        public AnalyzeEntitySentimentRequest.Builder setEncodingTypeValue​(int value)
         The encoding type used by the API to calculate offsets.
         
        .google.cloud.language.v1.EncodingType encoding_type = 2;
        Parameters:
        value - The enum numeric value on the wire for encodingType to set.
        Returns:
        This builder for chaining.
      • setEncodingType

        public AnalyzeEntitySentimentRequest.Builder setEncodingType​(EncodingType value)
         The encoding type used by the API to calculate offsets.
         
        .google.cloud.language.v1.EncodingType encoding_type = 2;
        Parameters:
        value - The encodingType to set.
        Returns:
        This builder for chaining.
      • clearEncodingType

        public AnalyzeEntitySentimentRequest.Builder clearEncodingType()
         The encoding type used by the API to calculate offsets.
         
        .google.cloud.language.v1.EncodingType encoding_type = 2;
        Returns:
        This builder for chaining.