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