public final class PredictRequest extends GeneratedMessageV3 implements PredictRequestOrBuilder
Request message for PredictionService.Predict.
Protobuf type google.cloud.automl.v1beta1.PredictRequest
Inherited Members
Static Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PARAMS_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER
Field Value
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static PredictRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static PredictRequest.Builder newBuilder()
Returns
newBuilder(PredictRequest prototype)
public static PredictRequest.Builder newBuilder(PredictRequest prototype)
Parameter
Returns
public static PredictRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PredictRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PredictRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PredictRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PredictRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PredictRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PredictRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PredictRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PredictRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PredictRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PredictRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PredictRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PredictRequest> parser()
Returns
Methods
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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public PredictRequest getDefaultInstanceForType()
Returns
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
getParams()
public Map<String,String> getParams()
Returns
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
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;
Returns
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;
Parameters
Returns
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
Returns
getParserForType()
public Parser<PredictRequest> getParserForType()
Returns
Overrides
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];
Returns
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];
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public PredictRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PredictRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public PredictRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions