Class ExamplePayload (2.19.0)

public final class ExamplePayload extends GeneratedMessageV3 implements ExamplePayloadOrBuilder

Example data used for training or prediction.

Protobuf type google.cloud.automl.v1.ExamplePayload

Static Fields

DOCUMENT_FIELD_NUMBER

public static final int DOCUMENT_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_FIELD_NUMBER

public static final int IMAGE_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_SNIPPET_FIELD_NUMBER

public static final int TEXT_SNIPPET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExamplePayload getDefaultInstance()
Returns
TypeDescription
ExamplePayload

getDescriptor()

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

newBuilder()

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

newBuilder(ExamplePayload prototype)

public static ExamplePayload.Builder newBuilder(ExamplePayload prototype)
Parameter
NameDescription
prototypeExamplePayload
Returns
TypeDescription
ExamplePayload.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ExamplePayload getDefaultInstanceForType()
Returns
TypeDescription
ExamplePayload

getDocument()

public Document getDocument()

Example document.

.google.cloud.automl.v1.Document document = 4;

Returns
TypeDescription
Document

The document.

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

Example document.

.google.cloud.automl.v1.Document document = 4;

Returns
TypeDescription
DocumentOrBuilder

getImage()

public Image getImage()

Example image.

.google.cloud.automl.v1.Image image = 1;

Returns
TypeDescription
Image

The image.

getImageOrBuilder()

public ImageOrBuilder getImageOrBuilder()

Example image.

.google.cloud.automl.v1.Image image = 1;

Returns
TypeDescription
ImageOrBuilder

getParserForType()

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

getPayloadCase()

public ExamplePayload.PayloadCase getPayloadCase()
Returns
TypeDescription
ExamplePayload.PayloadCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTextSnippet()

public TextSnippet getTextSnippet()

Example text.

.google.cloud.automl.v1.TextSnippet text_snippet = 2;

Returns
TypeDescription
TextSnippet

The textSnippet.

getTextSnippetOrBuilder()

public TextSnippetOrBuilder getTextSnippetOrBuilder()

Example text.

.google.cloud.automl.v1.TextSnippet text_snippet = 2;

Returns
TypeDescription
TextSnippetOrBuilder

hasDocument()

public boolean hasDocument()

Example document.

.google.cloud.automl.v1.Document document = 4;

Returns
TypeDescription
boolean

Whether the document field is set.

hasImage()

public boolean hasImage()

Example image.

.google.cloud.automl.v1.Image image = 1;

Returns
TypeDescription
boolean

Whether the image field is set.

hasTextSnippet()

public boolean hasTextSnippet()

Example text.

.google.cloud.automl.v1.TextSnippet text_snippet = 2;

Returns
TypeDescription
boolean

Whether the textSnippet field is set.

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 ExamplePayload.Builder newBuilderForType()
Returns
TypeDescription
ExamplePayload.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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