public static final class PredictResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder> implements PredictResponseOrBuilder
Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].Protobuf type
google.cloud.automl.v1.PredictResponse| Modifier and Type | Method and Description |
|---|---|
PredictResponse.Builder |
addAllPayload(Iterable<? extends AnnotationPayload> values)
Prediction result.
|
PredictResponse.Builder |
addPayload(AnnotationPayload.Builder builderForValue)
Prediction result.
|
PredictResponse.Builder |
addPayload(AnnotationPayload value)
Prediction result.
|
PredictResponse.Builder |
addPayload(int index,
AnnotationPayload.Builder builderForValue)
Prediction result.
|
PredictResponse.Builder |
addPayload(int index,
AnnotationPayload value)
Prediction result.
|
AnnotationPayload.Builder |
addPayloadBuilder()
Prediction result.
|
AnnotationPayload.Builder |
addPayloadBuilder(int index)
Prediction result.
|
PredictResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PredictResponse |
build() |
PredictResponse |
buildPartial() |
PredictResponse.Builder |
clear() |
PredictResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PredictResponse.Builder |
clearMetadata() |
PredictResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PredictResponse.Builder |
clearPayload()
Prediction result.
|
PredictResponse.Builder |
clearPreprocessedInput()
The preprocessed example that AutoML actually makes prediction on.
|
PredictResponse.Builder |
clone() |
boolean |
containsMetadata(String key)
Additional domain-specific prediction response metadata.
|
PredictResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Additional domain-specific prediction response metadata.
|
Map<String,String> |
getMetadataMap()
Additional domain-specific prediction response metadata.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
Additional domain-specific prediction response metadata.
|
String |
getMetadataOrThrow(String key)
Additional domain-specific prediction response metadata.
|
Map<String,String> |
getMutableMetadata()
Deprecated.
|
AnnotationPayload |
getPayload(int index)
Prediction result.
|
AnnotationPayload.Builder |
getPayloadBuilder(int index)
Prediction result.
|
List<AnnotationPayload.Builder> |
getPayloadBuilderList()
Prediction result.
|
int |
getPayloadCount()
Prediction result.
|
List<AnnotationPayload> |
getPayloadList()
Prediction result.
|
AnnotationPayloadOrBuilder |
getPayloadOrBuilder(int index)
Prediction result.
|
List<? extends AnnotationPayloadOrBuilder> |
getPayloadOrBuilderList()
Prediction result.
|
ExamplePayload |
getPreprocessedInput()
The preprocessed example that AutoML actually makes prediction on.
|
ExamplePayload.Builder |
getPreprocessedInputBuilder()
The preprocessed example that AutoML actually makes prediction on.
|
ExamplePayloadOrBuilder |
getPreprocessedInputOrBuilder()
The preprocessed example that AutoML actually makes prediction on.
|
boolean |
hasPreprocessedInput()
The preprocessed example that AutoML actually makes prediction on.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
PredictResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PredictResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
PredictResponse.Builder |
mergeFrom(PredictResponse other) |
PredictResponse.Builder |
mergePreprocessedInput(ExamplePayload value)
The preprocessed example that AutoML actually makes prediction on.
|
PredictResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PredictResponse.Builder |
putAllMetadata(Map<String,String> values)
Additional domain-specific prediction response metadata.
|
PredictResponse.Builder |
putMetadata(String key,
String value)
Additional domain-specific prediction response metadata.
|
PredictResponse.Builder |
removeMetadata(String key)
Additional domain-specific prediction response metadata.
|
PredictResponse.Builder |
removePayload(int index)
Prediction result.
|
PredictResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PredictResponse.Builder |
setPayload(int index,
AnnotationPayload.Builder builderForValue)
Prediction result.
|
PredictResponse.Builder |
setPayload(int index,
AnnotationPayload value)
Prediction result.
|
PredictResponse.Builder |
setPreprocessedInput(ExamplePayload.Builder builderForValue)
The preprocessed example that AutoML actually makes prediction on.
|
PredictResponse.Builder |
setPreprocessedInput(ExamplePayload value)
The preprocessed example that AutoML actually makes prediction on.
|
PredictResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PredictResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PredictResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PredictResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PredictResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PredictResponse.Builder>public PredictResponse.Builder mergeFrom(PredictResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public PredictResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PredictResponse.Builder>IOExceptionpublic List<AnnotationPayload> getPayloadList()
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;getPayloadList in interface PredictResponseOrBuilderpublic int getPayloadCount()
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;getPayloadCount in interface PredictResponseOrBuilderpublic AnnotationPayload getPayload(int index)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;getPayload in interface PredictResponseOrBuilderpublic PredictResponse.Builder setPayload(int index, AnnotationPayload value)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public PredictResponse.Builder setPayload(int index, AnnotationPayload.Builder builderForValue)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public PredictResponse.Builder addPayload(AnnotationPayload value)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public PredictResponse.Builder addPayload(int index, AnnotationPayload value)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public PredictResponse.Builder addPayload(AnnotationPayload.Builder builderForValue)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public PredictResponse.Builder addPayload(int index, AnnotationPayload.Builder builderForValue)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public PredictResponse.Builder addAllPayload(Iterable<? extends AnnotationPayload> values)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public PredictResponse.Builder clearPayload()
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public PredictResponse.Builder removePayload(int index)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public AnnotationPayload.Builder getPayloadBuilder(int index)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public AnnotationPayloadOrBuilder getPayloadOrBuilder(int index)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;getPayloadOrBuilder in interface PredictResponseOrBuilderpublic List<? extends AnnotationPayloadOrBuilder> getPayloadOrBuilderList()
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;getPayloadOrBuilderList in interface PredictResponseOrBuilderpublic AnnotationPayload.Builder addPayloadBuilder()
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public AnnotationPayload.Builder addPayloadBuilder(int index)
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public List<AnnotationPayload.Builder> getPayloadBuilderList()
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;public boolean hasPreprocessedInput()
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example. For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;hasPreprocessedInput in interface PredictResponseOrBuilderpublic ExamplePayload getPreprocessedInput()
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example. For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;getPreprocessedInput in interface PredictResponseOrBuilderpublic PredictResponse.Builder setPreprocessedInput(ExamplePayload value)
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example. For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;public PredictResponse.Builder setPreprocessedInput(ExamplePayload.Builder builderForValue)
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example. For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;public PredictResponse.Builder mergePreprocessedInput(ExamplePayload value)
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example. For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;public PredictResponse.Builder clearPreprocessedInput()
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example. For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;public ExamplePayload.Builder getPreprocessedInputBuilder()
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example. For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;public ExamplePayloadOrBuilder getPreprocessedInputOrBuilder()
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example. For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the [document_text][google.cloud.automl.v1.Document.document_text] property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;getPreprocessedInputOrBuilder in interface PredictResponseOrBuilderpublic int getMetadataCount()
PredictResponseOrBuilderAdditional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes to return per image. AutoML Natural Language Sentiment Analysis `sentiment_score` : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). `sentiment_score` is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.
map<string, string> metadata = 2;getMetadataCount in interface PredictResponseOrBuilderpublic boolean containsMetadata(String key)
Additional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes to return per image. AutoML Natural Language Sentiment Analysis `sentiment_score` : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). `sentiment_score` is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.
map<string, string> metadata = 2;containsMetadata in interface PredictResponseOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface PredictResponseOrBuilderpublic Map<String,String> getMetadataMap()
Additional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes to return per image. AutoML Natural Language Sentiment Analysis `sentiment_score` : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). `sentiment_score` is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.
map<string, string> metadata = 2;getMetadataMap in interface PredictResponseOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
Additional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes to return per image. AutoML Natural Language Sentiment Analysis `sentiment_score` : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). `sentiment_score` is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.
map<string, string> metadata = 2;getMetadataOrDefault in interface PredictResponseOrBuilderpublic String getMetadataOrThrow(String key)
Additional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes to return per image. AutoML Natural Language Sentiment Analysis `sentiment_score` : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). `sentiment_score` is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.
map<string, string> metadata = 2;getMetadataOrThrow in interface PredictResponseOrBuilderpublic PredictResponse.Builder clearMetadata()
public PredictResponse.Builder removeMetadata(String key)
Additional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes to return per image. AutoML Natural Language Sentiment Analysis `sentiment_score` : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). `sentiment_score` is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.
map<string, string> metadata = 2;@Deprecated public Map<String,String> getMutableMetadata()
public PredictResponse.Builder putMetadata(String key, String value)
Additional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes to return per image. AutoML Natural Language Sentiment Analysis `sentiment_score` : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). `sentiment_score` is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.
map<string, string> metadata = 2;public PredictResponse.Builder putAllMetadata(Map<String,String> values)
Additional domain-specific prediction response metadata. AutoML Vision Object Detection `max_bounding_box_count` : (int64) The maximum number of bounding boxes to return per image. AutoML Natural Language Sentiment Analysis `sentiment_score` : (float, deprecated) A value between -1 and 1, -1 maps to least positive sentiment, while 1 maps to the most positive one and the higher the score, the more positive the sentiment in the document is. Yet these values are relative to the training data, so e.g. if all data was positive then -1 is also positive (though the least). `sentiment_score` is not the same as "score" and "magnitude" from Sentiment Analysis in the Natural Language API.
map<string, string> metadata = 2;public final PredictResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>public final PredictResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>Copyright © 2025 Google LLC. All rights reserved.