Package biopb.image
Class RoiAnnotation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
biopb.image.RoiAnnotation
- All Implemented Interfaces:
RoiAnnotationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class RoiAnnotation
extends com.google.protobuf.GeneratedMessageV3
implements RoiAnnotationOrBuilder
One annotation: a geometry, where it sits, and what the user called it.Protobuf type
biopb.image.RoiAnnotation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne annotation: a geometry, where it sits, and what the user called it.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsPlane(int key) map<uint32, uint32> plane = 12;booleanThe tensor this annotation is drawn on: the globally-unique array_id, in its UNVERSIONED form (never the sidecar's `source@token/field`).com.google.protobuf.ByteStringThe tensor this annotation is drawn on: the globally-unique array_id, in its UNVERSIONED form (never the sidecar's `source@token/field`).longint64 created_at_unix_ms = 10;static RoiAnnotationstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringThe tensor's content_version when this annotation was written, or unset when the source could not claim one.getLabel()User-facing class/name for this ROI.com.google.protobuf.ByteStringUser-facing class/name for this ROI.com.google.protobuf.Parser<RoiAnnotation>getPlane()Deprecated.intmap<uint32, uint32> plane = 12;map<uint32, uint32> plane = 12;intgetPlaneOrDefault(int key, int defaultValue) map<uint32, uint32> plane = 12;intgetPlaneOrThrow(int key) map<uint32, uint32> plane = 12;Free-form client JSON (colour, score, author, ...).com.google.protobuf.ByteStringFree-form client JSON (colour, score, author, ...).longgetRev()Server-assigned, bumped on every write.getRoi()Geometry in LEVEL-0 pixel coordinates, in the tensor's own Y/X axes.getRoiId()Stable id.com.google.protobuf.ByteStringStable id.Geometry in LEVEL-0 pixel coordinates, in the tensor's own Y/X axes.intGrouping key -- the "layer" an annotation belongs to (e.g.com.google.protobuf.ByteStringGrouping key -- the "layer" an annotation belongs to (e.g.longint64 updated_at_unix_ms = 11;booleanThe tensor's content_version when this annotation was written, or unset when the source could not claim one.inthashCode()booleanhasRoi()Geometry in LEVEL-0 pixel coordinates, in the tensor's own Y/X axes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic RoiAnnotation.Builderstatic RoiAnnotation.BuildernewBuilder(RoiAnnotation prototype) protected RoiAnnotation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static RoiAnnotationparseDelimitedFrom(InputStream input) static RoiAnnotationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoiAnnotationparseFrom(byte[] data) static RoiAnnotationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoiAnnotationparseFrom(com.google.protobuf.ByteString data) static RoiAnnotationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoiAnnotationparseFrom(com.google.protobuf.CodedInputStream input) static RoiAnnotationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoiAnnotationparseFrom(InputStream input) static RoiAnnotationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RoiAnnotationparseFrom(ByteBuffer data) static RoiAnnotationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RoiAnnotation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ROI_ID_FIELD_NUMBER
public static final int ROI_ID_FIELD_NUMBER- See Also:
-
ARRAY_ID_FIELD_NUMBER
public static final int ARRAY_ID_FIELD_NUMBER- See Also:
-
SET_NAME_FIELD_NUMBER
public static final int SET_NAME_FIELD_NUMBER- See Also:
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER- See Also:
-
ROI_FIELD_NUMBER
public static final int ROI_FIELD_NUMBER- See Also:
-
PLANE_FIELD_NUMBER
public static final int PLANE_FIELD_NUMBER- See Also:
-
PROPS_JSON_FIELD_NUMBER
public static final int PROPS_JSON_FIELD_NUMBER- See Also:
-
DRAWN_AGAINST_VERSION_FIELD_NUMBER
public static final int DRAWN_AGAINST_VERSION_FIELD_NUMBER- See Also:
-
REV_FIELD_NUMBER
public static final int REV_FIELD_NUMBER- See Also:
-
CREATED_AT_UNIX_MS_FIELD_NUMBER
public static final int CREATED_AT_UNIX_MS_FIELD_NUMBER- See Also:
-
UPDATED_AT_UNIX_MS_FIELD_NUMBER
public static final int UPDATED_AT_UNIX_MS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRoiId
Stable id. Empty on create -> the server mints a uuid4 hex.
string roi_id = 1;- Specified by:
getRoiIdin interfaceRoiAnnotationOrBuilder- Returns:
- The roiId.
-
getRoiIdBytes
public com.google.protobuf.ByteString getRoiIdBytes()Stable id. Empty on create -> the server mints a uuid4 hex.
string roi_id = 1;- Specified by:
getRoiIdBytesin interfaceRoiAnnotationOrBuilder- Returns:
- The bytes for roiId.
-
getArrayId
The tensor this annotation is drawn on: the globally-unique array_id, in its UNVERSIONED form (never the sidecar's `source@token/field`). Annotations must outlive an in-place edit of the image, so the version token is stripped before it reaches the store.
string array_id = 2;- Specified by:
getArrayIdin interfaceRoiAnnotationOrBuilder- Returns:
- The arrayId.
-
getArrayIdBytes
public com.google.protobuf.ByteString getArrayIdBytes()The tensor this annotation is drawn on: the globally-unique array_id, in its UNVERSIONED form (never the sidecar's `source@token/field`). Annotations must outlive an in-place edit of the image, so the version token is stripped before it reaches the store.
string array_id = 2;- Specified by:
getArrayIdBytesin interfaceRoiAnnotationOrBuilder- Returns:
- The bytes for arrayId.
-
getSetName
Grouping key -- the "layer" an annotation belongs to (e.g. "nuclei"). Empty -> "default".
string set_name = 3;- Specified by:
getSetNamein interfaceRoiAnnotationOrBuilder- Returns:
- The setName.
-
getSetNameBytes
public com.google.protobuf.ByteString getSetNameBytes()Grouping key -- the "layer" an annotation belongs to (e.g. "nuclei"). Empty -> "default".
string set_name = 3;- Specified by:
getSetNameBytesin interfaceRoiAnnotationOrBuilder- Returns:
- The bytes for setName.
-
getLabel
User-facing class/name for this ROI.
string label = 4;- Specified by:
getLabelin interfaceRoiAnnotationOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()User-facing class/name for this ROI.
string label = 4;- Specified by:
getLabelBytesin interfaceRoiAnnotationOrBuilder- Returns:
- The bytes for label.
-
hasRoi
public boolean hasRoi()Geometry in LEVEL-0 pixel coordinates, in the tensor's own Y/X axes. A shape drawn on a downsampled level is scaled up by the client; the server never rescales geometry.
.biopb.image.ROI roi = 5;- Specified by:
hasRoiin interfaceRoiAnnotationOrBuilder- Returns:
- Whether the roi field is set.
-
getRoi
Geometry in LEVEL-0 pixel coordinates, in the tensor's own Y/X axes. A shape drawn on a downsampled level is scaled up by the client; the server never rescales geometry.
.biopb.image.ROI roi = 5;- Specified by:
getRoiin interfaceRoiAnnotationOrBuilder- Returns:
- The roi.
-
getRoiOrBuilder
Geometry in LEVEL-0 pixel coordinates, in the tensor's own Y/X axes. A shape drawn on a downsampled level is scaled up by the client; the server never rescales geometry.
.biopb.image.ROI roi = 5;- Specified by:
getRoiOrBuilderin interfaceRoiAnnotationOrBuilder
-
getPlaneCount
public int getPlaneCount()Description copied from interface:RoiAnnotationOrBuildermap<uint32, uint32> plane = 12;- Specified by:
getPlaneCountin interfaceRoiAnnotationOrBuilder
-
containsPlane
public boolean containsPlane(int key) map<uint32, uint32> plane = 12;- Specified by:
containsPlanein interfaceRoiAnnotationOrBuilder
-
getPlane
Deprecated.UsegetPlaneMap()instead.- Specified by:
getPlanein interfaceRoiAnnotationOrBuilder
-
getPlaneMap
map<uint32, uint32> plane = 12;- Specified by:
getPlaneMapin interfaceRoiAnnotationOrBuilder
-
getPlaneOrDefault
public int getPlaneOrDefault(int key, int defaultValue) map<uint32, uint32> plane = 12;- Specified by:
getPlaneOrDefaultin interfaceRoiAnnotationOrBuilder
-
getPlaneOrThrow
public int getPlaneOrThrow(int key) map<uint32, uint32> plane = 12;- Specified by:
getPlaneOrThrowin interfaceRoiAnnotationOrBuilder
-
getPropsJson
Free-form client JSON (colour, score, author, ...). Opaque to the server.
string props_json = 7;- Specified by:
getPropsJsonin interfaceRoiAnnotationOrBuilder- Returns:
- The propsJson.
-
getPropsJsonBytes
public com.google.protobuf.ByteString getPropsJsonBytes()Free-form client JSON (colour, score, author, ...). Opaque to the server.
string props_json = 7;- Specified by:
getPropsJsonBytesin interfaceRoiAnnotationOrBuilder- Returns:
- The bytes for propsJson.
-
hasDrawnAgainstVersion
public boolean hasDrawnAgainstVersion()The tensor's content_version when this annotation was written, or unset when the source could not claim one. A client compares it against the current descriptor to warn "the image changed since this was drawn" -- CONTENT staleness, as distinct from the tensor going away entirely.
optional bytes drawn_against_version = 8;- Specified by:
hasDrawnAgainstVersionin interfaceRoiAnnotationOrBuilder- Returns:
- Whether the drawnAgainstVersion field is set.
-
getDrawnAgainstVersion
public com.google.protobuf.ByteString getDrawnAgainstVersion()The tensor's content_version when this annotation was written, or unset when the source could not claim one. A client compares it against the current descriptor to warn "the image changed since this was drawn" -- CONTENT staleness, as distinct from the tensor going away entirely.
optional bytes drawn_against_version = 8;- Specified by:
getDrawnAgainstVersionin interfaceRoiAnnotationOrBuilder- Returns:
- The drawnAgainstVersion.
-
getRev
public long getRev()Server-assigned, bumped on every write. Echo the value you read back in a put with check_rev set to make the write conditional.
int64 rev = 9;- Specified by:
getRevin interfaceRoiAnnotationOrBuilder- Returns:
- The rev.
-
getCreatedAtUnixMs
public long getCreatedAtUnixMs()int64 created_at_unix_ms = 10;- Specified by:
getCreatedAtUnixMsin interfaceRoiAnnotationOrBuilder- Returns:
- The createdAtUnixMs.
-
getUpdatedAtUnixMs
public long getUpdatedAtUnixMs()int64 updated_at_unix_ms = 11;- Specified by:
getUpdatedAtUnixMsin interfaceRoiAnnotationOrBuilder- Returns:
- The updatedAtUnixMs.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RoiAnnotation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RoiAnnotation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RoiAnnotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RoiAnnotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RoiAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RoiAnnotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RoiAnnotation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RoiAnnotation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RoiAnnotation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RoiAnnotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RoiAnnotation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-