Interface AnalyzeSentimentRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnalyzeSentimentRequest
,AnalyzeSentimentRequest.Builder
public interface AnalyzeSentimentRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document
getDocument()
Required.DocumentOrBuilder
getDocumentOrBuilder()
Required.EncodingType
getEncodingType()
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.int
getEncodingTypeValue()
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.boolean
hasDocument()
Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasDocument
boolean hasDocument()
Required. Input document.
.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- Whether the document field is set.
-
getDocument
Document getDocument()
Required. Input document.
.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The document.
-
getDocumentOrBuilder
DocumentOrBuilder getDocumentOrBuilder()
Required. Input document.
.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
-
getEncodingTypeValue
int getEncodingTypeValue()
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.
.google.cloud.language.v1beta2.EncodingType encoding_type = 2;
- Returns:
- The enum numeric value on the wire for encodingType.
-
getEncodingType
EncodingType getEncodingType()
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.
.google.cloud.language.v1beta2.EncodingType encoding_type = 2;
- Returns:
- The encodingType.
-
-