Class ImageSegmentationPredictionInstance (3.45.0)

public final class ImageSegmentationPredictionInstance extends GeneratedMessageV3 implements ImageSegmentationPredictionInstanceOrBuilder

Prediction input format for Image Segmentation.

Protobuf type google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance

Inheritance

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

Static Fields

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
Type Description
int

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImageSegmentationPredictionInstance getDefaultInstance()
Returns
Type Description
ImageSegmentationPredictionInstance

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ImageSegmentationPredictionInstance.Builder newBuilder()
Returns
Type Description
ImageSegmentationPredictionInstance.Builder

newBuilder(ImageSegmentationPredictionInstance prototype)

public static ImageSegmentationPredictionInstance.Builder newBuilder(ImageSegmentationPredictionInstance prototype)
Parameter
Name Description
prototype ImageSegmentationPredictionInstance
Returns
Type Description
ImageSegmentationPredictionInstance.Builder

parseDelimitedFrom(InputStream input)

public static ImageSegmentationPredictionInstance parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionInstance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ImageSegmentationPredictionInstance parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionInstance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImageSegmentationPredictionInstance parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionInstance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImageSegmentationPredictionInstance parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionInstance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ImageSegmentationPredictionInstance parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionInstance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ImageSegmentationPredictionInstance parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImageSegmentationPredictionInstance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageSegmentationPredictionInstance
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ImageSegmentationPredictionInstance> parser()
Returns
Type Description
Parser<ImageSegmentationPredictionInstance>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContent()

public String getContent()

The image bytes to make the predictions on.

string content = 1;

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

The image bytes to make the predictions on.

string content = 1;

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public ImageSegmentationPredictionInstance getDefaultInstanceForType()
Returns
Type Description
ImageSegmentationPredictionInstance

getMimeType()

public String getMimeType()

The MIME type of the content of the image. Only the images in below listed MIME types are supported.

  • image/jpeg
  • image/png

string mime_type = 2;

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

The MIME type of the content of the image. Only the images in below listed MIME types are supported.

  • image/jpeg
  • image/png

string mime_type = 2;

Returns
Type Description
ByteString

The bytes for mimeType.

getParserForType()

public Parser<ImageSegmentationPredictionInstance> getParserForType()
Returns
Type Description
Parser<ImageSegmentationPredictionInstance>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImageSegmentationPredictionInstance.Builder newBuilderForType()
Returns
Type Description
ImageSegmentationPredictionInstance.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImageSegmentationPredictionInstance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImageSegmentationPredictionInstance.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ImageSegmentationPredictionInstance.Builder toBuilder()
Returns
Type Description
ImageSegmentationPredictionInstance.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException