public static final class ImageSegmentationPredictionResult.Builder extends com.google.protobuf.GeneratedMessageV3.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
ImageSegmentationPredictionResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ImageSegmentationPredictionResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ImageSegmentationPredictionResult.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
ImageSegmentationPredictionResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ImageSegmentationPredictionResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ImageSegmentationPredictionResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationPredictionResult.Builder>public ImageSegmentationPredictionResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationPredictionResult.Builder>public 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.GeneratedMessageV3.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.public final ImageSegmentationPredictionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationPredictionResult.Builder>public final ImageSegmentationPredictionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationPredictionResult.Builder>Copyright © 2023 Google LLC. All rights reserved.