public static final class ObjectDetectionPredictionResult.Entity.Builder extends GeneratedMessageV3.Builder<ObjectDetectionPredictionResult.Entity.Builder> implements ObjectDetectionPredictionResult.EntityOrBuilder
The entity info for annotations from object detection prediction result.
Protobuf type google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ObjectDetectionPredictionResult.Entity.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ObjectDetectionPredictionResult.Entity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
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 |
clearField(Descriptors.FieldDescriptor field)
public ObjectDetectionPredictionResult.Entity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ObjectDetectionPredictionResult.Entity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
clone()
public ObjectDetectionPredictionResult.Entity.Builder clone()
Returns | |
---|---|
Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ObjectDetectionPredictionResult.Entity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ObjectDetectionPredictionResult.Entity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
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 |
long The 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 |
String The 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 |
ByteString The bytes for labelString to set. |
Returns | |
---|---|
Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ObjectDetectionPredictionResult.Entity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ObjectDetectionPredictionResult.Entity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ObjectDetectionPredictionResult.Entity.Builder |