public static final class PredictRequest.Builder extends GeneratedMessageV3.Builder<PredictRequest.Builder> implements PredictRequestOrBuilder
Request message for PredictionService.Predict.
Protobuf type google.cloud.automl.v1beta1.PredictRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PredictRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PredictRequest build()
buildPartial()
public PredictRequest buildPartial()
clear()
public PredictRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PredictRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public PredictRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParams()
public PredictRequest.Builder clearParams()
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.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public PredictRequest.Builder clone()
Overrides
containsParams(String key)
public boolean containsParams(String key)
Additional domain-specific parameters, any string must be up to 25000
characters long.
For Image 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.
- For Image 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) No more than this number of bounding
boxes will be returned in the response. Default is 100, the
requested value may be limited by server.
- For Tables:
feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
should be populated in the returned TablesAnnotation.
The default is false.
map<string, string> params = 3;
Parameter |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public PredictRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableParams() (deprecated)
public Map<String,String> getMutableParams()
Use alternate mutation accessors instead.
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()
getParamsCount()
public int getParamsCount()
Additional domain-specific parameters, any string must be up to 25000
characters long.
For Image 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.
- For Image 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) No more than this number of bounding
boxes will be returned in the response. Default is 100, the
requested value may be limited by server.
- For Tables:
feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
should be populated in the returned TablesAnnotation.
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.
For Image 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.
- For Image 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) No more than this number of bounding
boxes will be returned in the response. Default is 100, the
requested value may be limited by server.
- For Tables:
feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
should be populated in the returned TablesAnnotation.
The default is false.
map<string, string> params = 3;
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.
For Image 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.
- For Image 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) No more than this number of bounding
boxes will be returned in the response. Default is 100, the
requested value may be limited by server.
- For Tables:
feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
should be populated in the returned TablesAnnotation.
The default is false.
map<string, string> params = 3;
getParamsOrThrow(String key)
public String getParamsOrThrow(String key)
Additional domain-specific parameters, any string must be up to 25000
characters long.
For Image 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.
- For Image 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) No more than this number of bounding
boxes will be returned in the response. Default is 100, the
requested value may be limited by server.
- For Tables:
feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
should be populated in the returned TablesAnnotation.
The default is false.
map<string, string> params = 3;
Parameter |
---|
Name | Description |
key | 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.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the payload field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PredictRequest other)
public PredictRequest.Builder mergeFrom(PredictRequest other)
public PredictRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PredictRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PredictRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.
For Image 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.
- For Image 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) No more than this number of bounding
boxes will be returned in the response. Default is 100, the
requested value may be limited by server.
- For Tables:
feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
should be populated in the returned TablesAnnotation.
The default is false.
map<string, string> params = 3;
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.
For Image 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.
- For Image 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) No more than this number of bounding
boxes will be returned in the response. Default is 100, the
requested value may be limited by server.
- For Tables:
feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
should be populated in the returned TablesAnnotation.
The default is false.
map<string, string> params = 3;
removeParams(String key)
public PredictRequest.Builder removeParams(String key)
Additional domain-specific parameters, any string must be up to 25000
characters long.
For Image 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.
- For Image 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) No more than this number of bounding
boxes will be returned in the response. Default is 100, the
requested value may be limited by server.
- For Tables:
feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
should be populated in the returned TablesAnnotation.
The default is false.
map<string, string> params = 3;
Parameter |
---|
Name | Description |
key | String
|
setField(Descriptors.FieldDescriptor field, Object value)
public PredictRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
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.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1beta1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PredictRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PredictRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides