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.v1.ExamplePayload
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExamplePayload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ExamplePayload build()
Returns
buildPartial()
public ExamplePayload buildPartial()
Returns
clear()
public ExamplePayload.Builder clear()
Returns
Overrides
clearDocument()
public ExamplePayload.Builder clearDocument()
Example document.
.google.cloud.automl.v1.Document document = 4;
Returns
clearField(Descriptors.FieldDescriptor field)
public ExamplePayload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearImage()
public ExamplePayload.Builder clearImage()
Example image.
.google.cloud.automl.v1.Image image = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ExamplePayload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPayload()
public ExamplePayload.Builder clearPayload()
Returns
clearTextSnippet()
public ExamplePayload.Builder clearTextSnippet()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
Returns
clone()
public ExamplePayload.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ExamplePayload getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDocument()
public Document getDocument()
Example document.
.google.cloud.automl.v1.Document document = 4;
Returns
getDocumentBuilder()
public Document.Builder getDocumentBuilder()
Example document.
.google.cloud.automl.v1.Document document = 4;
Returns
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Example document.
.google.cloud.automl.v1.Document document = 4;
Returns
getImage()
Example image.
.google.cloud.automl.v1.Image image = 1;
Returns
Type | Description |
Image | The image.
|
getImageBuilder()
public Image.Builder getImageBuilder()
Example image.
.google.cloud.automl.v1.Image image = 1;
Returns
getImageOrBuilder()
public ImageOrBuilder getImageOrBuilder()
Example image.
.google.cloud.automl.v1.Image image = 1;
Returns
getPayloadCase()
public ExamplePayload.PayloadCase getPayloadCase()
Returns
getTextSnippet()
public TextSnippet getTextSnippet()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
Returns
getTextSnippetBuilder()
public TextSnippet.Builder getTextSnippetBuilder()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
Returns
getTextSnippetOrBuilder()
public TextSnippetOrBuilder getTextSnippetOrBuilder()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
Returns
hasDocument()
public boolean hasDocument()
Example document.
.google.cloud.automl.v1.Document document = 4;
Returns
Type | Description |
boolean | Whether the document field is set.
|
hasImage()
public boolean hasImage()
Example image.
.google.cloud.automl.v1.Image image = 1;
Returns
Type | Description |
boolean | Whether the image field is set.
|
hasTextSnippet()
public boolean hasTextSnippet()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
Returns
Type | Description |
boolean | Whether the textSnippet field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeDocument(Document value)
public ExamplePayload.Builder mergeDocument(Document value)
Example document.
.google.cloud.automl.v1.Document document = 4;
Parameter
Returns
mergeFrom(ExamplePayload other)
public ExamplePayload.Builder mergeFrom(ExamplePayload other)
Parameter
Returns
public ExamplePayload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ExamplePayload.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeImage(Image value)
public ExamplePayload.Builder mergeImage(Image value)
Example image.
.google.cloud.automl.v1.Image image = 1;
Parameter
Name | Description |
value | Image
|
Returns
mergeTextSnippet(TextSnippet value)
public ExamplePayload.Builder mergeTextSnippet(TextSnippet value)
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExamplePayload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDocument(Document value)
public ExamplePayload.Builder setDocument(Document value)
Example document.
.google.cloud.automl.v1.Document document = 4;
Parameter
Returns
setDocument(Document.Builder builderForValue)
public ExamplePayload.Builder setDocument(Document.Builder builderForValue)
Example document.
.google.cloud.automl.v1.Document document = 4;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ExamplePayload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setImage(Image value)
public ExamplePayload.Builder setImage(Image value)
Example image.
.google.cloud.automl.v1.Image image = 1;
Parameter
Name | Description |
value | Image
|
Returns
setImage(Image.Builder builderForValue)
public ExamplePayload.Builder setImage(Image.Builder builderForValue)
Example image.
.google.cloud.automl.v1.Image image = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExamplePayload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTextSnippet(TextSnippet value)
public ExamplePayload.Builder setTextSnippet(TextSnippet value)
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
Parameter
Returns
setTextSnippet(TextSnippet.Builder builderForValue)
public ExamplePayload.Builder setTextSnippet(TextSnippet.Builder builderForValue)
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ExamplePayload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides