Package com.google.cloud.automl.v1
Class PredictResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
- com.google.cloud.automl.v1.PredictResponse.Builder
-
- All Implemented Interfaces:
PredictResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PredictResponse
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 typegoogle.cloud.automl.v1.PredictResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PredictResponse.BuilderaddAllPayload(Iterable<? extends AnnotationPayload> values)Prediction result.PredictResponse.BuilderaddPayload(int index, AnnotationPayload value)Prediction result.PredictResponse.BuilderaddPayload(int index, AnnotationPayload.Builder builderForValue)Prediction result.PredictResponse.BuilderaddPayload(AnnotationPayload value)Prediction result.PredictResponse.BuilderaddPayload(AnnotationPayload.Builder builderForValue)Prediction result.AnnotationPayload.BuilderaddPayloadBuilder()Prediction result.AnnotationPayload.BuilderaddPayloadBuilder(int index)Prediction result.PredictResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PredictResponsebuild()PredictResponsebuildPartial()PredictResponse.Builderclear()PredictResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PredictResponse.BuilderclearMetadata()PredictResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PredictResponse.BuilderclearPayload()Prediction result.PredictResponse.BuilderclearPreprocessedInput()The preprocessed example that AutoML actually makes prediction on.PredictResponse.Builderclone()booleancontainsMetadata(String key)Additional domain-specific prediction response metadata.PredictResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Additional domain-specific prediction response metadata.Map<String,String>getMetadataMap()Additional domain-specific prediction response metadata.StringgetMetadataOrDefault(String key, String defaultValue)Additional domain-specific prediction response metadata.StringgetMetadataOrThrow(String key)Additional domain-specific prediction response metadata.Map<String,String>getMutableMetadata()Deprecated.AnnotationPayloadgetPayload(int index)Prediction result.AnnotationPayload.BuildergetPayloadBuilder(int index)Prediction result.List<AnnotationPayload.Builder>getPayloadBuilderList()Prediction result.intgetPayloadCount()Prediction result.List<AnnotationPayload>getPayloadList()Prediction result.AnnotationPayloadOrBuildergetPayloadOrBuilder(int index)Prediction result.List<? extends AnnotationPayloadOrBuilder>getPayloadOrBuilderList()Prediction result.ExamplePayloadgetPreprocessedInput()The preprocessed example that AutoML actually makes prediction on.ExamplePayload.BuildergetPreprocessedInputBuilder()The preprocessed example that AutoML actually makes prediction on.ExamplePayloadOrBuildergetPreprocessedInputOrBuilder()The preprocessed example that AutoML actually makes prediction on.booleanhasPreprocessedInput()The preprocessed example that AutoML actually makes prediction on.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()PredictResponse.BuildermergeFrom(PredictResponse other)PredictResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PredictResponse.BuildermergeFrom(com.google.protobuf.Message other)PredictResponse.BuildermergePreprocessedInput(ExamplePayload value)The preprocessed example that AutoML actually makes prediction on.PredictResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PredictResponse.BuilderputAllMetadata(Map<String,String> values)Additional domain-specific prediction response metadata.PredictResponse.BuilderputMetadata(String key, String value)Additional domain-specific prediction response metadata.PredictResponse.BuilderremoveMetadata(String key)Additional domain-specific prediction response metadata.PredictResponse.BuilderremovePayload(int index)Prediction result.PredictResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PredictResponse.BuildersetPayload(int index, AnnotationPayload value)Prediction result.PredictResponse.BuildersetPayload(int index, AnnotationPayload.Builder builderForValue)Prediction result.PredictResponse.BuildersetPreprocessedInput(ExamplePayload value)The preprocessed example that AutoML actually makes prediction on.PredictResponse.BuildersetPreprocessedInput(ExamplePayload.Builder builderForValue)The preprocessed example that AutoML actually makes prediction on.PredictResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PredictResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
clear
public PredictResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
getDefaultInstanceForType
public PredictResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PredictResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PredictResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PredictResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
setField
public PredictResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
clearField
public PredictResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
clearOneof
public PredictResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
setRepeatedField
public PredictResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
addRepeatedField
public PredictResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
mergeFrom
public PredictResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PredictResponse.Builder>
-
mergeFrom
public PredictResponse.Builder mergeFrom(PredictResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
mergeFrom
public PredictResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PredictResponse.Builder>- Throws:
IOException
-
getPayloadList
public 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;- Specified by:
getPayloadListin interfacePredictResponseOrBuilder
-
getPayloadCount
public int getPayloadCount()
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
repeated .google.cloud.automl.v1.AnnotationPayload payload = 1;- Specified by:
getPayloadCountin interfacePredictResponseOrBuilder
-
getPayload
public 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;- Specified by:
getPayloadin interfacePredictResponseOrBuilder
-
setPayload
public 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;
-
setPayload
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;
-
addPayload
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;
-
addPayload
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;
-
addPayload
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;
-
addPayload
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;
-
addAllPayload
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;
-
clearPayload
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;
-
removePayload
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;
-
getPayloadBuilder
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;
-
getPayloadOrBuilder
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;- Specified by:
getPayloadOrBuilderin interfacePredictResponseOrBuilder
-
getPayloadOrBuilderList
public 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;- Specified by:
getPayloadOrBuilderListin interfacePredictResponseOrBuilder
-
addPayloadBuilder
public 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;
-
addPayloadBuilder
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;
-
getPayloadBuilderList
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;
-
hasPreprocessedInput
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;- Specified by:
hasPreprocessedInputin interfacePredictResponseOrBuilder- Returns:
- Whether the preprocessedInput field is set.
-
getPreprocessedInput
public 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;- Specified by:
getPreprocessedInputin interfacePredictResponseOrBuilder- Returns:
- The preprocessedInput.
-
setPreprocessedInput
public 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;
-
setPreprocessedInput
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;
-
mergePreprocessedInput
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;
-
clearPreprocessedInput
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;
-
getPreprocessedInputBuilder
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;
-
getPreprocessedInputOrBuilder
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;- Specified by:
getPreprocessedInputOrBuilderin interfacePredictResponseOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface: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;- Specified by:
getMetadataCountin interfacePredictResponseOrBuilder
-
containsMetadata
public 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;- Specified by:
containsMetadatain interfacePredictResponseOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfacePredictResponseOrBuilder
-
getMetadataMap
public 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;- Specified by:
getMetadataMapin interfacePredictResponseOrBuilder
-
getMetadataOrDefault
public 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;- Specified by:
getMetadataOrDefaultin interfacePredictResponseOrBuilder
-
getMetadataOrThrow
public 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;- Specified by:
getMetadataOrThrowin interfacePredictResponseOrBuilder
-
clearMetadata
public PredictResponse.Builder clearMetadata()
-
removeMetadata
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;
-
getMutableMetadata
@Deprecated public Map<String,String> getMutableMetadata()
Deprecated.Use alternate mutation accessors instead.
-
putMetadata
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;
-
putAllMetadata
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;
-
setUnknownFields
public final PredictResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
mergeUnknownFields
public final PredictResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
-