Class ExamplePayload.Builder (2.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExamplePayload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExamplePayload.Builder
Overrides

build()

public ExamplePayload build()
Returns
TypeDescription
ExamplePayload

buildPartial()

public ExamplePayload buildPartial()
Returns
TypeDescription
ExamplePayload

clear()

public ExamplePayload.Builder clear()
Returns
TypeDescription
ExamplePayload.Builder
Overrides

clearDocument()

public ExamplePayload.Builder clearDocument()

Example document.

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

Returns
TypeDescription
ExamplePayload.Builder

clearField(Descriptors.FieldDescriptor field)

public ExamplePayload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExamplePayload.Builder
Overrides

clearImage()

public ExamplePayload.Builder clearImage()

Example image.

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

Returns
TypeDescription
ExamplePayload.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ExamplePayload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExamplePayload.Builder
Overrides

clearPayload()

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

clearRow()

public ExamplePayload.Builder clearRow()

Example relational table row.

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

Returns
TypeDescription
ExamplePayload.Builder

clearTextSnippet()

public ExamplePayload.Builder clearTextSnippet()

Example text.

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

Returns
TypeDescription
ExamplePayload.Builder

clone()

public ExamplePayload.Builder clone()
Returns
TypeDescription
ExamplePayload.Builder
Overrides

getDefaultInstanceForType()

public ExamplePayload getDefaultInstanceForType()
Returns
TypeDescription
ExamplePayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocument()

public Document getDocument()

Example document.

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

Returns
TypeDescription
Document

The document.

getDocumentBuilder()

public Document.Builder getDocumentBuilder()

Example document.

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

Returns
TypeDescription
Document.Builder

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

Example document.

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

Returns
TypeDescription
DocumentOrBuilder

getImage()

public Image getImage()

Example image.

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

Returns
TypeDescription
Image

The image.

getImageBuilder()

public Image.Builder getImageBuilder()

Example image.

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

Returns
TypeDescription
Image.Builder

getImageOrBuilder()

public ImageOrBuilder getImageOrBuilder()

Example image.

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

Returns
TypeDescription
ImageOrBuilder

getPayloadCase()

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

getRow()

public Row getRow()

Example relational table row.

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

Returns
TypeDescription
Row

The row.

getRowBuilder()

public Row.Builder getRowBuilder()

Example relational table row.

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

Returns
TypeDescription
Row.Builder

getRowOrBuilder()

public RowOrBuilder getRowOrBuilder()

Example relational table row.

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

Returns
TypeDescription
RowOrBuilder

getTextSnippet()

public TextSnippet getTextSnippet()

Example text.

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

Returns
TypeDescription
TextSnippet

The textSnippet.

getTextSnippetBuilder()

public TextSnippet.Builder getTextSnippetBuilder()

Example text.

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

Returns
TypeDescription
TextSnippet.Builder

getTextSnippetOrBuilder()

public TextSnippetOrBuilder getTextSnippetOrBuilder()

Example text.

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

Returns
TypeDescription
TextSnippetOrBuilder

hasDocument()

public boolean hasDocument()

Example document.

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

Returns
TypeDescription
boolean

Whether the document field is set.

hasImage()

public boolean hasImage()

Example image.

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

Returns
TypeDescription
boolean

Whether the image field is set.

hasRow()

public boolean hasRow()

Example relational table row.

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

Returns
TypeDescription
boolean

Whether the row field is set.

hasTextSnippet()

public boolean hasTextSnippet()

Example text.

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

Returns
TypeDescription
boolean

Whether the textSnippet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDocument(Document value)

public ExamplePayload.Builder mergeDocument(Document value)

Example document.

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

Parameter
NameDescription
valueDocument
Returns
TypeDescription
ExamplePayload.Builder

mergeFrom(ExamplePayload other)

public ExamplePayload.Builder mergeFrom(ExamplePayload other)
Parameter
NameDescription
otherExamplePayload
Returns
TypeDescription
ExamplePayload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExamplePayload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExamplePayload.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExamplePayload.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExamplePayload.Builder
Overrides

mergeImage(Image value)

public ExamplePayload.Builder mergeImage(Image value)

Example image.

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

Parameter
NameDescription
valueImage
Returns
TypeDescription
ExamplePayload.Builder

mergeRow(Row value)

public ExamplePayload.Builder mergeRow(Row value)

Example relational table row.

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

Parameter
NameDescription
valueRow
Returns
TypeDescription
ExamplePayload.Builder

mergeTextSnippet(TextSnippet value)

public ExamplePayload.Builder mergeTextSnippet(TextSnippet value)

Example text.

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

Parameter
NameDescription
valueTextSnippet
Returns
TypeDescription
ExamplePayload.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExamplePayload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExamplePayload.Builder
Overrides

setDocument(Document value)

public ExamplePayload.Builder setDocument(Document value)

Example document.

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

Parameter
NameDescription
valueDocument
Returns
TypeDescription
ExamplePayload.Builder

setDocument(Document.Builder builderForValue)

public ExamplePayload.Builder setDocument(Document.Builder builderForValue)

Example document.

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

Parameter
NameDescription
builderForValueDocument.Builder
Returns
TypeDescription
ExamplePayload.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ExamplePayload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExamplePayload.Builder
Overrides

setImage(Image value)

public ExamplePayload.Builder setImage(Image value)

Example image.

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

Parameter
NameDescription
valueImage
Returns
TypeDescription
ExamplePayload.Builder

setImage(Image.Builder builderForValue)

public ExamplePayload.Builder setImage(Image.Builder builderForValue)

Example image.

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

Parameter
NameDescription
builderForValueImage.Builder
Returns
TypeDescription
ExamplePayload.Builder

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

public ExamplePayload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExamplePayload.Builder
Overrides

setRow(Row value)

public ExamplePayload.Builder setRow(Row value)

Example relational table row.

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

Parameter
NameDescription
valueRow
Returns
TypeDescription
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
NameDescription
builderForValueRow.Builder
Returns
TypeDescription
ExamplePayload.Builder

setTextSnippet(TextSnippet value)

public ExamplePayload.Builder setTextSnippet(TextSnippet value)

Example text.

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

Parameter
NameDescription
valueTextSnippet
Returns
TypeDescription
ExamplePayload.Builder

setTextSnippet(TextSnippet.Builder builderForValue)

public ExamplePayload.Builder setTextSnippet(TextSnippet.Builder builderForValue)

Example text.

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

Parameter
NameDescription
builderForValueTextSnippet.Builder
Returns
TypeDescription
ExamplePayload.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExamplePayload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExamplePayload.Builder
Overrides