public static final class ObjectDetectionPredictionResult.Entity.Builder extends GeneratedMessage.Builder<ObjectDetectionPredictionResult.Entity.Builder> implements ObjectDetectionPredictionResult.EntityOrBuilderThe entity info for annotations from object detection prediction result.
Protobuf type google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ObjectDetectionPredictionResult.Entity.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ObjectDetectionPredictionResult.Entity build()| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity |
|
buildPartial()
public ObjectDetectionPredictionResult.Entity buildPartial()| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity |
|
clear()
public ObjectDetectionPredictionResult.Entity.Builder clear()| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
|
clearLabelId()
public ObjectDetectionPredictionResult.Entity.Builder clearLabelId()Label id.
int64 label_id = 1;
| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
This builder for chaining. |
clearLabelString()
public ObjectDetectionPredictionResult.Entity.Builder clearLabelString()Human readable string of the label.
string label_string = 2;
| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ObjectDetectionPredictionResult.Entity getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLabelId()
public long getLabelId()Label id.
int64 label_id = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The labelId. |
getLabelString()
public String getLabelString()Human readable string of the label.
string label_string = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The labelString. |
getLabelStringBytes()
public ByteString getLabelStringBytes()Human readable string of the label.
string label_string = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for labelString. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ObjectDetectionPredictionResult.Entity other)
public ObjectDetectionPredictionResult.Entity.Builder mergeFrom(ObjectDetectionPredictionResult.Entity other)| Parameter | |
|---|---|
| Name | Description |
other |
ObjectDetectionPredictionResult.Entity |
| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ObjectDetectionPredictionResult.Entity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ObjectDetectionPredictionResult.Entity.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
|
setLabelId(long value)
public ObjectDetectionPredictionResult.Entity.Builder setLabelId(long value)Label id.
int64 label_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe labelId to set. |
| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
This builder for chaining. |
setLabelString(String value)
public ObjectDetectionPredictionResult.Entity.Builder setLabelString(String value)Human readable string of the label.
string label_string = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe labelString to set. |
| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
This builder for chaining. |
setLabelStringBytes(ByteString value)
public ObjectDetectionPredictionResult.Entity.Builder setLabelStringBytes(ByteString value)Human readable string of the label.
string label_string = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for labelString to set. |
| Returns | |
|---|---|
| Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
This builder for chaining. |