Class BatchPredictResult.Builder (2.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchPredictResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchPredictResult.Builder
Overrides

build()

public BatchPredictResult build()
Returns
TypeDescription
BatchPredictResult

buildPartial()

public BatchPredictResult buildPartial()
Returns
TypeDescription
BatchPredictResult

clear()

public BatchPredictResult.Builder clear()
Returns
TypeDescription
BatchPredictResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchPredictResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchPredictResult.Builder
Overrides

clearMetadata()

public BatchPredictResult.Builder clearMetadata()
Returns
TypeDescription
BatchPredictResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchPredictResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchPredictResult.Builder
Overrides

clone()

public BatchPredictResult.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public BatchPredictResult getDefaultInstanceForType()
Returns
TypeDescription
BatchPredictResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableMetadata()

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchPredictResult other)

public BatchPredictResult.Builder mergeFrom(BatchPredictResult other)
Parameter
NameDescription
otherBatchPredictResult
Returns
TypeDescription
BatchPredictResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchPredictResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchPredictResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchPredictResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchPredictResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchPredictResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
BatchPredictResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchPredictResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchPredictResult.Builder
Overrides

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

public BatchPredictResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchPredictResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchPredictResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchPredictResult.Builder
Overrides