Package com.google.cloud.automl.v1beta1
Class PredictRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
- com.google.cloud.automl.v1beta1.PredictRequest.Builder
-
- All Implemented Interfaces:
PredictRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PredictRequest
public static final class PredictRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder> implements PredictRequestOrBuilder
Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
Protobuf typegoogle.cloud.automl.v1beta1.PredictRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PredictRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PredictRequest
build()
PredictRequest
buildPartial()
PredictRequest.Builder
clear()
PredictRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PredictRequest.Builder
clearName()
Required.PredictRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PredictRequest.Builder
clearParams()
PredictRequest.Builder
clearPayload()
Required.PredictRequest.Builder
clone()
boolean
containsParams(String key)
Additional domain-specific parameters, any string must be up to 25000 characters long.PredictRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getMutableParams()
Deprecated.String
getName()
Required.com.google.protobuf.ByteString
getNameBytes()
Required.Map<String,String>
getParams()
Deprecated.int
getParamsCount()
Additional domain-specific parameters, any string must be up to 25000 characters long.Map<String,String>
getParamsMap()
Additional domain-specific parameters, any string must be up to 25000 characters long.String
getParamsOrDefault(String key, String defaultValue)
Additional domain-specific parameters, any string must be up to 25000 characters long.String
getParamsOrThrow(String key)
Additional domain-specific parameters, any string must be up to 25000 characters long.ExamplePayload
getPayload()
Required.ExamplePayload.Builder
getPayloadBuilder()
Required.ExamplePayloadOrBuilder
getPayloadOrBuilder()
Required.boolean
hasPayload()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
PredictRequest.Builder
mergeFrom(PredictRequest other)
PredictRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PredictRequest.Builder
mergeFrom(com.google.protobuf.Message other)
PredictRequest.Builder
mergePayload(ExamplePayload value)
Required.PredictRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PredictRequest.Builder
putAllParams(Map<String,String> values)
Additional domain-specific parameters, any string must be up to 25000 characters long.PredictRequest.Builder
putParams(String key, String value)
Additional domain-specific parameters, any string must be up to 25000 characters long.PredictRequest.Builder
removeParams(String key)
Additional domain-specific parameters, any string must be up to 25000 characters long.PredictRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PredictRequest.Builder
setName(String value)
Required.PredictRequest.Builder
setNameBytes(com.google.protobuf.ByteString value)
Required.PredictRequest.Builder
setPayload(ExamplePayload value)
Required.PredictRequest.Builder
setPayload(ExamplePayload.Builder builderForValue)
Required.PredictRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PredictRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
clear
public PredictRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
getDefaultInstanceForType
public PredictRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PredictRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PredictRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PredictRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
setField
public PredictRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
clearField
public PredictRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
clearOneof
public PredictRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
setRepeatedField
public PredictRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
addRepeatedField
public PredictRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
mergeFrom
public PredictRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PredictRequest.Builder>
-
mergeFrom
public PredictRequest.Builder mergeFrom(PredictRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
mergeFrom
public PredictRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PredictRequest.Builder>
- Throws:
IOException
-
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) = { ... }
- Specified by:
getName
in interfacePredictRequestOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. Name of the model requested to serve the prediction.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getNameBytes
in interfacePredictRequestOrBuilder
- Returns:
- The bytes for name.
-
setName
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) = { ... }
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
public PredictRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. Name of the model requested to serve the prediction.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
hasPayload
in interfacePredictRequestOrBuilder
- Returns:
- Whether the payload field is set.
-
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];
- Specified by:
getPayload
in interfacePredictRequestOrBuilder
- Returns:
- The payload.
-
setPayload
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
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];
-
mergePayload
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];
-
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];
-
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];
- Specified by:
getPayloadOrBuilder
in interfacePredictRequestOrBuilder
-
getParamsCount
public int getParamsCount()
Description copied from interface:PredictRequestOrBuilder
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;
- Specified by:
getParamsCount
in interfacePredictRequestOrBuilder
-
containsParams
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;
- Specified by:
containsParams
in interfacePredictRequestOrBuilder
-
getParams
@Deprecated public Map<String,String> getParams()
Deprecated.UsegetParamsMap()
instead.- Specified by:
getParams
in interfacePredictRequestOrBuilder
-
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;
- Specified by:
getParamsMap
in interfacePredictRequestOrBuilder
-
getParamsOrDefault
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;
- Specified by:
getParamsOrDefault
in interfacePredictRequestOrBuilder
-
getParamsOrThrow
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;
- Specified by:
getParamsOrThrow
in interfacePredictRequestOrBuilder
-
clearParams
public PredictRequest.Builder clearParams()
-
removeParams
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;
-
getMutableParams
@Deprecated public Map<String,String> getMutableParams()
Deprecated.Use alternate mutation accessors instead.
-
putParams
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;
-
putAllParams
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;
-
setUnknownFields
public final PredictRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
mergeUnknownFields
public final PredictRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictRequest.Builder>
-
-