- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 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 PredictRequest.Builder extends GeneratedMessageV3.Builder<PredictRequest.Builder> implements PredictRequestOrBuilder
Request message for PredictionService.Predict.
Protobuf type google.cloud.automl.v1.PredictRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PredictRequest.BuilderImplements
PredictRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PredictRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
build()
public PredictRequest build()
Returns | |
---|---|
Type | Description |
PredictRequest |
buildPartial()
public PredictRequest buildPartial()
Returns | |
---|---|
Type | Description |
PredictRequest |
clear()
public PredictRequest.Builder clear()
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public PredictRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
clearName()
public PredictRequest.Builder clearName()
Required. Name of the model requested to serve the prediction.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
PredictRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PredictRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
clearParams()
public PredictRequest.Builder clearParams()
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
clearPayload()
public PredictRequest.Builder clearPayload()
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
.google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
clone()
public PredictRequest.Builder clone()
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
containsParams(String key)
public boolean containsParams(String key)
Additional domain-specific parameters, any string must be up to 25000 characters long.
AutoML Vision Classification
score_threshold
: (float) A value from 0.0 to 1.0. When the model
makes predictions for an image, it will only produce results that have
at least this confidence score. The default is 0.5.
AutoML Vision Object Detection
score_threshold
: (float) When Model detects objects on the image,
it will only produce bounding boxes which have at least this
confidence score. Value in 0 to 1 range, default is 0.5.
max_bounding_box_count
: (int64) The maximum number of bounding
boxes returned. The default is 100. The
number of returned bounding boxes might be limited by the server.
AutoML Tables
feature_importance
: (boolean) Whether
feature_importance
is populated in the returned list of
TablesAnnotation
objects. The default is false.
map<string, string> params = 3;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public PredictRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PredictRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMutableParams() (deprecated)
public Map<String,String> getMutableParams()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getName()
public String getName()
Required. Name of the model requested to serve the prediction.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Required. Name of the model requested to serve the prediction.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getParams() (deprecated)
public Map<String,String> getParams()
Use #getParamsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getParamsCount()
public int getParamsCount()
Additional domain-specific parameters, any string must be up to 25000 characters long.
AutoML Vision Classification
score_threshold
: (float) A value from 0.0 to 1.0. When the model
makes predictions for an image, it will only produce results that have
at least this confidence score. The default is 0.5.
AutoML Vision Object Detection
score_threshold
: (float) When Model detects objects on the image,
it will only produce bounding boxes which have at least this
confidence score. Value in 0 to 1 range, default is 0.5.
max_bounding_box_count
: (int64) The maximum number of bounding
boxes returned. The default is 100. The
number of returned bounding boxes might be limited by the server.
AutoML Tables
feature_importance
: (boolean) Whether
feature_importance
is populated in the returned list of
TablesAnnotation
objects. The default is false.
map<string, string> params = 3;
Returns | |
---|---|
Type | Description |
int |
getParamsMap()
public Map<String,String> getParamsMap()
Additional domain-specific parameters, any string must be up to 25000 characters long.
AutoML Vision Classification
score_threshold
: (float) A value from 0.0 to 1.0. When the model
makes predictions for an image, it will only produce results that have
at least this confidence score. The default is 0.5.
AutoML Vision Object Detection
score_threshold
: (float) When Model detects objects on the image,
it will only produce bounding boxes which have at least this
confidence score. Value in 0 to 1 range, default is 0.5.
max_bounding_box_count
: (int64) The maximum number of bounding
boxes returned. The default is 100. The
number of returned bounding boxes might be limited by the server.
AutoML Tables
feature_importance
: (boolean) Whether
feature_importance
is populated in the returned list of
TablesAnnotation
objects. The default is false.
map<string, string> params = 3;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getParamsOrDefault(String key, String defaultValue)
public String getParamsOrDefault(String key, String defaultValue)
Additional domain-specific parameters, any string must be up to 25000 characters long.
AutoML Vision Classification
score_threshold
: (float) A value from 0.0 to 1.0. When the model
makes predictions for an image, it will only produce results that have
at least this confidence score. The default is 0.5.
AutoML Vision Object Detection
score_threshold
: (float) When Model detects objects on the image,
it will only produce bounding boxes which have at least this
confidence score. Value in 0 to 1 range, default is 0.5.
max_bounding_box_count
: (int64) The maximum number of bounding
boxes returned. The default is 100. The
number of returned bounding boxes might be limited by the server.
AutoML Tables
feature_importance
: (boolean) Whether
feature_importance
is populated in the returned list of
TablesAnnotation
objects. The default is false.
map<string, string> params = 3;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getParamsOrThrow(String key)
public String getParamsOrThrow(String key)
Additional domain-specific parameters, any string must be up to 25000 characters long.
AutoML Vision Classification
score_threshold
: (float) A value from 0.0 to 1.0. When the model
makes predictions for an image, it will only produce results that have
at least this confidence score. The default is 0.5.
AutoML Vision Object Detection
score_threshold
: (float) When Model detects objects on the image,
it will only produce bounding boxes which have at least this
confidence score. Value in 0 to 1 range, default is 0.5.
max_bounding_box_count
: (int64) The maximum number of bounding
boxes returned. The default is 100. The
number of returned bounding boxes might be limited by the server.
AutoML Tables
feature_importance
: (boolean) Whether
feature_importance
is populated in the returned list of
TablesAnnotation
objects. The default is false.
map<string, string> params = 3;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getPayload()
public ExamplePayload getPayload()
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
.google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ExamplePayload | The payload. |
getPayloadBuilder()
public ExamplePayload.Builder getPayloadBuilder()
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
.google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ExamplePayload.Builder |
getPayloadOrBuilder()
public ExamplePayloadOrBuilder getPayloadOrBuilder()
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
.google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ExamplePayloadOrBuilder |
hasPayload()
public boolean hasPayload()
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
.google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean | Whether the payload field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(PredictRequest other)
public PredictRequest.Builder mergeFrom(PredictRequest other)
Parameter | |
---|---|
Name | Description |
other | PredictRequest |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PredictRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PredictRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
mergePayload(ExamplePayload value)
public PredictRequest.Builder mergePayload(ExamplePayload value)
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
.google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | ExamplePayload |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PredictRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
putAllParams(Map<String,String> values)
public PredictRequest.Builder putAllParams(Map<String,String> values)
Additional domain-specific parameters, any string must be up to 25000 characters long.
AutoML Vision Classification
score_threshold
: (float) A value from 0.0 to 1.0. When the model
makes predictions for an image, it will only produce results that have
at least this confidence score. The default is 0.5.
AutoML Vision Object Detection
score_threshold
: (float) When Model detects objects on the image,
it will only produce bounding boxes which have at least this
confidence score. Value in 0 to 1 range, default is 0.5.
max_bounding_box_count
: (int64) The maximum number of bounding
boxes returned. The default is 100. The
number of returned bounding boxes might be limited by the server.
AutoML Tables
feature_importance
: (boolean) Whether
feature_importance
is populated in the returned list of
TablesAnnotation
objects. The default is false.
map<string, string> params = 3;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
putParams(String key, String value)
public PredictRequest.Builder putParams(String key, String value)
Additional domain-specific parameters, any string must be up to 25000 characters long.
AutoML Vision Classification
score_threshold
: (float) A value from 0.0 to 1.0. When the model
makes predictions for an image, it will only produce results that have
at least this confidence score. The default is 0.5.
AutoML Vision Object Detection
score_threshold
: (float) When Model detects objects on the image,
it will only produce bounding boxes which have at least this
confidence score. Value in 0 to 1 range, default is 0.5.
max_bounding_box_count
: (int64) The maximum number of bounding
boxes returned. The default is 100. The
number of returned bounding boxes might be limited by the server.
AutoML Tables
feature_importance
: (boolean) Whether
feature_importance
is populated in the returned list of
TablesAnnotation
objects. The default is false.
map<string, string> params = 3;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
removeParams(String key)
public PredictRequest.Builder removeParams(String key)
Additional domain-specific parameters, any string must be up to 25000 characters long.
AutoML Vision Classification
score_threshold
: (float) A value from 0.0 to 1.0. When the model
makes predictions for an image, it will only produce results that have
at least this confidence score. The default is 0.5.
AutoML Vision Object Detection
score_threshold
: (float) When Model detects objects on the image,
it will only produce bounding boxes which have at least this
confidence score. Value in 0 to 1 range, default is 0.5.
max_bounding_box_count
: (int64) The maximum number of bounding
boxes returned. The default is 100. The
number of returned bounding boxes might be limited by the server.
AutoML Tables
feature_importance
: (boolean) Whether
feature_importance
is populated in the returned list of
TablesAnnotation
objects. The default is false.
map<string, string> params = 3;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PredictRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
setName(String value)
public PredictRequest.Builder setName(String value)
Required. Name of the model requested to serve the prediction.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public PredictRequest.Builder setNameBytes(ByteString value)
Required. Name of the model requested to serve the prediction.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder | This builder for chaining. |
setPayload(ExamplePayload value)
public PredictRequest.Builder setPayload(ExamplePayload value)
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
.google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | ExamplePayload |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
setPayload(ExamplePayload.Builder builderForValue)
public PredictRequest.Builder setPayload(ExamplePayload.Builder builderForValue)
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.
.google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue | ExamplePayload.Builder |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PredictRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PredictRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PredictRequest.Builder |