Class BatchPredictResult.Builder (2.48.0)

public static final class BatchPredictResult.Builder extends GeneratedMessageV3.Builder<BatchPredictResult.Builder> implements BatchPredictResultOrBuilder

Result of the Batch Predict. This message is returned in response of the operation returned by the PredictionService.BatchPredict.

Protobuf type google.cloud.automl.v1beta1.BatchPredictResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchPredictResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchPredictResult.Builder
Overrides

build()

public BatchPredictResult build()
Returns
Type Description
BatchPredictResult

buildPartial()

public BatchPredictResult buildPartial()
Returns
Type Description
BatchPredictResult

clear()

public BatchPredictResult.Builder clear()
Returns
Type Description
BatchPredictResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchPredictResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchPredictResult.Builder
Overrides

clearMetadata()

public BatchPredictResult.Builder clearMetadata()
Returns
Type Description
BatchPredictResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchPredictResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchPredictResult.Builder
Overrides

clone()

public BatchPredictResult.Builder clone()
Returns
Type Description
BatchPredictResult.Builder
Overrides

containsMetadata(String key)

public boolean containsMetadata(String key)

Additional domain-specific prediction response metadata.

  • For Image Object Detection: max_bounding_box_count - (int64) At most that many bounding boxes per image could have been returned.

  • For Video Object Tracking: max_bounding_box_count - (int64) At most that many bounding boxes per frame could have been returned.

map<string, string> metadata = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public BatchPredictResult getDefaultInstanceForType()
Returns
Type Description
BatchPredictResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMetadata() (deprecated)

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
Type Description
Map<String,String>

getMetadataCount()

public int getMetadataCount()

Additional domain-specific prediction response metadata.

  • For Image Object Detection: max_bounding_box_count - (int64) At most that many bounding boxes per image could have been returned.

  • For Video Object Tracking: max_bounding_box_count - (int64) At most that many bounding boxes per frame could have been returned.

map<string, string> metadata = 1;

Returns
Type Description
int

getMetadataMap()

public Map<String,String> getMetadataMap()

Additional domain-specific prediction response metadata.

  • For Image Object Detection: max_bounding_box_count - (int64) At most that many bounding boxes per image could have been returned.

  • For Video Object Tracking: max_bounding_box_count - (int64) At most that many bounding boxes per frame could have been returned.

map<string, string> metadata = 1;

Returns
Type Description
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public String getMetadataOrDefault(String key, String defaultValue)

Additional domain-specific prediction response metadata.

  • For Image Object Detection: max_bounding_box_count - (int64) At most that many bounding boxes per image could have been returned.

  • For Video Object Tracking: max_bounding_box_count - (int64) At most that many bounding boxes per frame could have been returned.

map<string, string> metadata = 1;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

Additional domain-specific prediction response metadata.

  • For Image Object Detection: max_bounding_box_count - (int64) At most that many bounding boxes per image could have been returned.

  • For Video Object Tracking: max_bounding_box_count - (int64) At most that many bounding boxes per frame could have been returned.

map<string, string> metadata = 1;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableMetadata() (deprecated)

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchPredictResult other)

public BatchPredictResult.Builder mergeFrom(BatchPredictResult other)
Parameter
Name Description
other BatchPredictResult
Returns
Type Description
BatchPredictResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchPredictResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchPredictResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchPredictResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchPredictResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchPredictResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchPredictResult.Builder
Overrides

putAllMetadata(Map<String,String> values)

public BatchPredictResult.Builder putAllMetadata(Map<String,String> values)

Additional domain-specific prediction response metadata.

  • For Image Object Detection: max_bounding_box_count - (int64) At most that many bounding boxes per image could have been returned.

  • For Video Object Tracking: max_bounding_box_count - (int64) At most that many bounding boxes per frame could have been returned.

map<string, string> metadata = 1;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
BatchPredictResult.Builder

putMetadata(String key, String value)

public BatchPredictResult.Builder putMetadata(String key, String value)

Additional domain-specific prediction response metadata.

  • For Image Object Detection: max_bounding_box_count - (int64) At most that many bounding boxes per image could have been returned.

  • For Video Object Tracking: max_bounding_box_count - (int64) At most that many bounding boxes per frame could have been returned.

map<string, string> metadata = 1;

Parameters
Name Description
key String
value String
Returns
Type Description
BatchPredictResult.Builder

removeMetadata(String key)

public BatchPredictResult.Builder removeMetadata(String key)

Additional domain-specific prediction response metadata.

  • For Image Object Detection: max_bounding_box_count - (int64) At most that many bounding boxes per image could have been returned.

  • For Video Object Tracking: max_bounding_box_count - (int64) At most that many bounding boxes per frame could have been returned.

map<string, string> metadata = 1;

Parameter
Name Description
key String
Returns
Type Description
BatchPredictResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchPredictResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchPredictResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchPredictResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchPredictResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchPredictResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchPredictResult.Builder
Overrides