Class ExamplePayload.Builder (2.48.0)

public static final class ExamplePayload.Builder extends GeneratedMessageV3.Builder<ExamplePayload.Builder> implements ExamplePayloadOrBuilder

Example data used for training or prediction.

Protobuf type google.cloud.automl.v1beta1.ExamplePayload

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExamplePayload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExamplePayload.Builder
Overrides

build()

public ExamplePayload build()
Returns
Type Description
ExamplePayload

buildPartial()

public ExamplePayload buildPartial()
Returns
Type Description
ExamplePayload

clear()

public ExamplePayload.Builder clear()
Returns
Type Description
ExamplePayload.Builder
Overrides

clearDocument()

public ExamplePayload.Builder clearDocument()

Example document.

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

Returns
Type Description
ExamplePayload.Builder

clearField(Descriptors.FieldDescriptor field)

public ExamplePayload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExamplePayload.Builder
Overrides

clearImage()

public ExamplePayload.Builder clearImage()

Example image.

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

Returns
Type Description
ExamplePayload.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ExamplePayload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExamplePayload.Builder
Overrides

clearPayload()

public ExamplePayload.Builder clearPayload()
Returns
Type Description
ExamplePayload.Builder

clearRow()

public ExamplePayload.Builder clearRow()

Example relational table row.

.google.cloud.automl.v1beta1.Row row = 3;

Returns
Type Description
ExamplePayload.Builder

clearTextSnippet()

public ExamplePayload.Builder clearTextSnippet()

Example text.

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

Returns
Type Description
ExamplePayload.Builder

clone()

public ExamplePayload.Builder clone()
Returns
Type Description
ExamplePayload.Builder
Overrides

getDefaultInstanceForType()

public ExamplePayload getDefaultInstanceForType()
Returns
Type Description
ExamplePayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocument()

public Document getDocument()

Example document.

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

Returns
Type Description
Document

The document.

getDocumentBuilder()

public Document.Builder getDocumentBuilder()

Example document.

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

Returns
Type Description
Document.Builder

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

Example document.

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

Returns
Type Description
DocumentOrBuilder

getImage()

public Image getImage()

Example image.

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

Returns
Type Description
Image

The image.

getImageBuilder()

public Image.Builder getImageBuilder()

Example image.

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

Returns
Type Description
Image.Builder

getImageOrBuilder()

public ImageOrBuilder getImageOrBuilder()

Example image.

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

Returns
Type Description
ImageOrBuilder

getPayloadCase()

public ExamplePayload.PayloadCase getPayloadCase()
Returns
Type Description
ExamplePayload.PayloadCase

getRow()

public Row getRow()

Example relational table row.

.google.cloud.automl.v1beta1.Row row = 3;

Returns
Type Description
Row

The row.

getRowBuilder()

public Row.Builder getRowBuilder()

Example relational table row.

.google.cloud.automl.v1beta1.Row row = 3;

Returns
Type Description
Row.Builder

getRowOrBuilder()

public RowOrBuilder getRowOrBuilder()

Example relational table row.

.google.cloud.automl.v1beta1.Row row = 3;

Returns
Type Description
RowOrBuilder

getTextSnippet()

public TextSnippet getTextSnippet()

Example text.

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

Returns
Type Description
TextSnippet

The textSnippet.

getTextSnippetBuilder()

public TextSnippet.Builder getTextSnippetBuilder()

Example text.

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

Returns
Type Description
TextSnippet.Builder

getTextSnippetOrBuilder()

public TextSnippetOrBuilder getTextSnippetOrBuilder()

Example text.

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

Returns
Type Description
TextSnippetOrBuilder

hasDocument()

public boolean hasDocument()

Example document.

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

Returns
Type Description
boolean

Whether the document field is set.

hasImage()

public boolean hasImage()

Example image.

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

Returns
Type Description
boolean

Whether the image field is set.

hasRow()

public boolean hasRow()

Example relational table row.

.google.cloud.automl.v1beta1.Row row = 3;

Returns
Type Description
boolean

Whether the row field is set.

hasTextSnippet()

public boolean hasTextSnippet()

Example text.

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

Returns
Type Description
boolean

Whether the textSnippet field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDocument(Document value)

public ExamplePayload.Builder mergeDocument(Document value)

Example document.

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

Parameter
Name Description
value Document
Returns
Type Description
ExamplePayload.Builder

mergeFrom(ExamplePayload other)

public ExamplePayload.Builder mergeFrom(ExamplePayload other)
Parameter
Name Description
other ExamplePayload
Returns
Type Description
ExamplePayload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExamplePayload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExamplePayload.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExamplePayload.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExamplePayload.Builder
Overrides

mergeImage(Image value)

public ExamplePayload.Builder mergeImage(Image value)

Example image.

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

Parameter
Name Description
value Image
Returns
Type Description
ExamplePayload.Builder

mergeRow(Row value)

public ExamplePayload.Builder mergeRow(Row value)

Example relational table row.

.google.cloud.automl.v1beta1.Row row = 3;

Parameter
Name Description
value Row
Returns
Type Description
ExamplePayload.Builder

mergeTextSnippet(TextSnippet value)

public ExamplePayload.Builder mergeTextSnippet(TextSnippet value)

Example text.

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

Parameter
Name Description
value TextSnippet
Returns
Type Description
ExamplePayload.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExamplePayload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExamplePayload.Builder
Overrides

setDocument(Document value)

public ExamplePayload.Builder setDocument(Document value)

Example document.

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

Parameter
Name Description
value Document
Returns
Type Description
ExamplePayload.Builder

setDocument(Document.Builder builderForValue)

public ExamplePayload.Builder setDocument(Document.Builder builderForValue)

Example document.

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

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
ExamplePayload.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ExamplePayload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExamplePayload.Builder
Overrides

setImage(Image value)

public ExamplePayload.Builder setImage(Image value)

Example image.

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

Parameter
Name Description
value Image
Returns
Type Description
ExamplePayload.Builder

setImage(Image.Builder builderForValue)

public ExamplePayload.Builder setImage(Image.Builder builderForValue)

Example image.

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

Parameter
Name Description
builderForValue Image.Builder
Returns
Type Description
ExamplePayload.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExamplePayload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExamplePayload.Builder
Overrides

setRow(Row value)

public ExamplePayload.Builder setRow(Row value)

Example relational table row.

.google.cloud.automl.v1beta1.Row row = 3;

Parameter
Name Description
value Row
Returns
Type Description
ExamplePayload.Builder

setRow(Row.Builder builderForValue)

public ExamplePayload.Builder setRow(Row.Builder builderForValue)

Example relational table row.

.google.cloud.automl.v1beta1.Row row = 3;

Parameter
Name Description
builderForValue Row.Builder
Returns
Type Description
ExamplePayload.Builder

setTextSnippet(TextSnippet value)

public ExamplePayload.Builder setTextSnippet(TextSnippet value)

Example text.

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

Parameter
Name Description
value TextSnippet
Returns
Type Description
ExamplePayload.Builder

setTextSnippet(TextSnippet.Builder builderForValue)

public ExamplePayload.Builder setTextSnippet(TextSnippet.Builder builderForValue)

Example text.

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

Parameter
Name Description
builderForValue TextSnippet.Builder
Returns
Type Description
ExamplePayload.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExamplePayload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExamplePayload.Builder
Overrides