- 2.51.0 (latest)
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.18
- 2.2.3
- 2.1.23
public static final class PredictResponse.Builder extends GeneratedMessageV3.Builder<PredictResponse.Builder> implements PredictResponseOrBuilder
Response message for PredictionService.Predict.
Protobuf type google.cloud.automl.v1.PredictResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PredictResponse.BuilderImplements
PredictResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllPayload(Iterable<? extends AnnotationPayload> values)
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.automl.v1.AnnotationPayload> |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
addPayload(AnnotationPayload value)
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;
Parameter | |
---|---|
Name | Description |
value | AnnotationPayload |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
addPayload(AnnotationPayload.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue | AnnotationPayload.Builder |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
addPayload(int index, AnnotationPayload value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | AnnotationPayload |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
addPayload(int index, AnnotationPayload.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | AnnotationPayload.Builder |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
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;
Returns | |
---|---|
Type | Description |
AnnotationPayload.Builder |
addPayloadBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
AnnotationPayload.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PredictResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
build()
public PredictResponse build()
Returns | |
---|---|
Type | Description |
PredictResponse |
buildPartial()
public PredictResponse buildPartial()
Returns | |
---|---|
Type | Description |
PredictResponse |
clear()
public PredictResponse.Builder clear()
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public PredictResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
clearMetadata()
public PredictResponse.Builder clearMetadata()
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public PredictResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
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;
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
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 property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
clone()
public PredictResponse.Builder clone()
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
containsMetadata(String key)
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;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public PredictResponse getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PredictResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMetadata()
public Map<String,String> getMetadata()
Use #getMetadataMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMetadataCount()
public int getMetadataCount()
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;
Returns | |
---|---|
Type | Description |
int |
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;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMetadataOrDefault(String key, String defaultValue)
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;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getMetadataOrThrow(String key)
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;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMutableMetadata()
public Map<String,String> getMutableMetadata()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getPayload(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
AnnotationPayload |
getPayloadBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
AnnotationPayload.Builder |
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;
Returns | |
---|---|
Type | Description |
List<Builder> |
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;
Returns | |
---|---|
Type | Description |
int |
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;
Returns | |
---|---|
Type | Description |
List<AnnotationPayload> |
getPayloadOrBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
AnnotationPayloadOrBuilder |
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;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.automl.v1.AnnotationPayloadOrBuilder> |
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 property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
Returns | |
---|---|
Type | Description |
ExamplePayload | The preprocessedInput. |
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 property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
Returns | |
---|---|
Type | Description |
ExamplePayload.Builder |
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 property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
Returns | |
---|---|
Type | Description |
ExamplePayloadOrBuilder |
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 property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
Returns | |
---|---|
Type | Description |
boolean | Whether the preprocessedInput field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(PredictResponse other)
public PredictResponse.Builder mergeFrom(PredictResponse other)
Parameter | |
---|---|
Name | Description |
other | PredictResponse |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PredictResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PredictResponse.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
mergePreprocessedInput(ExamplePayload value)
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 property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
Parameter | |
---|---|
Name | Description |
value | ExamplePayload |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PredictResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
putAllMetadata(Map<String,String> values)
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;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
putMetadata(String key, String value)
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;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
removeMetadata(String key)
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;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
removePayload(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PredictResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
setPayload(int index, AnnotationPayload value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | AnnotationPayload |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
setPayload(int index, AnnotationPayload.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | AnnotationPayload.Builder |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
setPreprocessedInput(ExamplePayload value)
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 property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
Parameter | |
---|---|
Name | Description |
value | ExamplePayload |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
setPreprocessedInput(ExamplePayload.Builder builderForValue)
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 property.
.google.cloud.automl.v1.ExamplePayload preprocessed_input = 3;
Parameter | |
---|---|
Name | Description |
builderForValue | ExamplePayload.Builder |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PredictResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PredictResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PredictResponse.Builder |