Class ImageSegmentationPredictionResult (2.7.4)

public final class ImageSegmentationPredictionResult extends GeneratedMessageV3 implements ImageSegmentationPredictionResultOrBuilder

Prediction output format for Image Segmentation.

Protobuf type google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult

Inheritance

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

Static Fields

CATEGORY_MASK_FIELD_NUMBER

public static final int CATEGORY_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIDENCE_MASK_FIELD_NUMBER

public static final int CONFIDENCE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImageSegmentationPredictionResult getDefaultInstance()
Returns
TypeDescription
ImageSegmentationPredictionResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ImageSegmentationPredictionResult.Builder newBuilder()
Returns
TypeDescription
ImageSegmentationPredictionResult.Builder

newBuilder(ImageSegmentationPredictionResult prototype)

public static ImageSegmentationPredictionResult.Builder newBuilder(ImageSegmentationPredictionResult prototype)
Parameter
NameDescription
prototypeImageSegmentationPredictionResult
Returns
TypeDescription
ImageSegmentationPredictionResult.Builder

parseDelimitedFrom(InputStream input)

public static ImageSegmentationPredictionResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ImageSegmentationPredictionResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImageSegmentationPredictionResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImageSegmentationPredictionResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ImageSegmentationPredictionResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ImageSegmentationPredictionResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageSegmentationPredictionResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ImageSegmentationPredictionResult> parser()
Returns
TypeDescription
Parser<ImageSegmentationPredictionResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCategoryMask()

public String getCategoryMask()

A PNG image where each pixel in the mask represents the category in which the pixel in the original image was predicted to belong to. The size of this image will be the same as the original image. The mapping between the AnntoationSpec and the color can be found in model's metadata. The model will choose the most likely category and if none of the categories reach the confidence threshold, the pixel will be marked as background.

string category_mask = 1;

Returns
TypeDescription
String

The categoryMask.

getCategoryMaskBytes()

public ByteString getCategoryMaskBytes()

A PNG image where each pixel in the mask represents the category in which the pixel in the original image was predicted to belong to. The size of this image will be the same as the original image. The mapping between the AnntoationSpec and the color can be found in model's metadata. The model will choose the most likely category and if none of the categories reach the confidence threshold, the pixel will be marked as background.

string category_mask = 1;

Returns
TypeDescription
ByteString

The bytes for categoryMask.

getConfidenceMask()

public String getConfidenceMask()

A one channel image which is encoded as an 8bit lossless PNG. The size of the image will be the same as the original image. For a specific pixel, darker color means less confidence in correctness of the cateogry in the categoryMask for the corresponding pixel. Black means no confidence and white means complete confidence.

string confidence_mask = 2;

Returns
TypeDescription
String

The confidenceMask.

getConfidenceMaskBytes()

public ByteString getConfidenceMaskBytes()

A one channel image which is encoded as an 8bit lossless PNG. The size of the image will be the same as the original image. For a specific pixel, darker color means less confidence in correctness of the cateogry in the categoryMask for the corresponding pixel. Black means no confidence and white means complete confidence.

string confidence_mask = 2;

Returns
TypeDescription
ByteString

The bytes for confidenceMask.

getDefaultInstanceForType()

public ImageSegmentationPredictionResult getDefaultInstanceForType()
Returns
TypeDescription
ImageSegmentationPredictionResult

getParserForType()

public Parser<ImageSegmentationPredictionResult> getParserForType()
Returns
TypeDescription
Parser<ImageSegmentationPredictionResult>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ImageSegmentationPredictionResult.Builder newBuilderForType()
Returns
TypeDescription
ImageSegmentationPredictionResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImageSegmentationPredictionResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ImageSegmentationPredictionResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ImageSegmentationPredictionResult.Builder toBuilder()
Returns
TypeDescription
ImageSegmentationPredictionResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException