public static final class ImageSegmentationPredictionResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImageSegmentationPredictionResult.Builder> implements ImageSegmentationPredictionResultOrBuilder
Prediction output format for Image Segmentation.Protobuf type
google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult| Modifier and Type | Method and Description |
|---|---|
ImageSegmentationPredictionResult |
build() |
ImageSegmentationPredictionResult |
buildPartial() |
ImageSegmentationPredictionResult.Builder |
clear() |
ImageSegmentationPredictionResult.Builder |
clearCategoryMask()
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.
|
ImageSegmentationPredictionResult.Builder |
clearConfidenceMask()
A one channel image which is encoded as an 8bit lossless PNG.
|
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.
|
com.google.protobuf.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.
|
String |
getConfidenceMask()
A one channel image which is encoded as an 8bit lossless PNG.
|
com.google.protobuf.ByteString |
getConfidenceMaskBytes()
A one channel image which is encoded as an 8bit lossless PNG.
|
ImageSegmentationPredictionResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ImageSegmentationPredictionResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ImageSegmentationPredictionResult.Builder |
mergeFrom(ImageSegmentationPredictionResult other) |
ImageSegmentationPredictionResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
ImageSegmentationPredictionResult.Builder |
setCategoryMask(String value)
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.
|
ImageSegmentationPredictionResult.Builder |
setCategoryMaskBytes(com.google.protobuf.ByteString value)
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.
|
ImageSegmentationPredictionResult.Builder |
setConfidenceMask(String value)
A one channel image which is encoded as an 8bit lossless PNG.
|
ImageSegmentationPredictionResult.Builder |
setConfidenceMaskBytes(com.google.protobuf.ByteString value)
A one channel image which is encoded as an 8bit lossless PNG.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<ImageSegmentationPredictionResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ImageSegmentationPredictionResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ImageSegmentationPredictionResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ImageSegmentationPredictionResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult.Builder mergeFrom(ImageSegmentationPredictionResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageSegmentationPredictionResult.Builder>IOExceptionpublic 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;getCategoryMask in interface ImageSegmentationPredictionResultOrBuilderpublic com.google.protobuf.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;getCategoryMaskBytes in interface ImageSegmentationPredictionResultOrBuilderpublic ImageSegmentationPredictionResult.Builder setCategoryMask(String value)
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;value - The categoryMask to set.public ImageSegmentationPredictionResult.Builder clearCategoryMask()
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;public ImageSegmentationPredictionResult.Builder setCategoryMaskBytes(com.google.protobuf.ByteString value)
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;value - The bytes for categoryMask to set.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;getConfidenceMask in interface ImageSegmentationPredictionResultOrBuilderpublic com.google.protobuf.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;getConfidenceMaskBytes in interface ImageSegmentationPredictionResultOrBuilderpublic ImageSegmentationPredictionResult.Builder setConfidenceMask(String value)
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;value - The confidenceMask to set.public ImageSegmentationPredictionResult.Builder clearConfidenceMask()
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;public ImageSegmentationPredictionResult.Builder setConfidenceMaskBytes(com.google.protobuf.ByteString value)
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;value - The bytes for confidenceMask to set.Copyright © 2026 Google LLC. All rights reserved.