Class ObjectDetectionPredictionResult (0.2.0)

public final class ObjectDetectionPredictionResult extends GeneratedMessageV3 implements ObjectDetectionPredictionResultOrBuilder

Prediction output format for Generic Object Detection.

Protobuf type google.cloud.visionai.v1.ObjectDetectionPredictionResult

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ObjectDetectionPredictionResult

Static Fields

CURRENT_TIME_FIELD_NUMBER

public static final int CURRENT_TIME_FIELD_NUMBER
Field Value
Type Description
int

IDENTIFIED_BOXES_FIELD_NUMBER

public static final int IDENTIFIED_BOXES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ObjectDetectionPredictionResult getDefaultInstance()
Returns
Type Description
ObjectDetectionPredictionResult

getDescriptor()

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

newBuilder()

public static ObjectDetectionPredictionResult.Builder newBuilder()
Returns
Type Description
ObjectDetectionPredictionResult.Builder

newBuilder(ObjectDetectionPredictionResult prototype)

public static ObjectDetectionPredictionResult.Builder newBuilder(ObjectDetectionPredictionResult prototype)
Parameter
Name Description
prototype ObjectDetectionPredictionResult
Returns
Type Description
ObjectDetectionPredictionResult.Builder

parseDelimitedFrom(InputStream input)

public static ObjectDetectionPredictionResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ObjectDetectionPredictionResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ObjectDetectionPredictionResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ObjectDetectionPredictionResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ObjectDetectionPredictionResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ObjectDetectionPredictionResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ObjectDetectionPredictionResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ObjectDetectionPredictionResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ObjectDetectionPredictionResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ObjectDetectionPredictionResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ObjectDetectionPredictionResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ObjectDetectionPredictionResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ObjectDetectionPredictionResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ObjectDetectionPredictionResult> parser()
Returns
Type Description
Parser<ObjectDetectionPredictionResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCurrentTime()

public Timestamp getCurrentTime()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
Timestamp

The currentTime.

getCurrentTimeOrBuilder()

public TimestampOrBuilder getCurrentTimeOrBuilder()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ObjectDetectionPredictionResult getDefaultInstanceForType()
Returns
Type Description
ObjectDetectionPredictionResult

getIdentifiedBoxes(int index)

public ObjectDetectionPredictionResult.IdentifiedBox getIdentifiedBoxes(int index)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox

getIdentifiedBoxesCount()

public int getIdentifiedBoxesCount()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
int

getIdentifiedBoxesList()

public List<ObjectDetectionPredictionResult.IdentifiedBox> getIdentifiedBoxesList()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
List<IdentifiedBox>

getIdentifiedBoxesOrBuilder(int index)

public ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder getIdentifiedBoxesOrBuilder(int index)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder

getIdentifiedBoxesOrBuilderList()

public List<? extends ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder> getIdentifiedBoxesOrBuilderList()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder>

getParserForType()

public Parser<ObjectDetectionPredictionResult> getParserForType()
Returns
Type Description
Parser<ObjectDetectionPredictionResult>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCurrentTime()

public boolean hasCurrentTime()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
boolean

Whether the currentTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ObjectDetectionPredictionResult.Builder newBuilderForType()
Returns
Type Description
ObjectDetectionPredictionResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ObjectDetectionPredictionResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ObjectDetectionPredictionResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ObjectDetectionPredictionResult.Builder toBuilder()
Returns
Type Description
ObjectDetectionPredictionResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException