Send feedback
Class ExamplePayload.Builder (2.24.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.24.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExamplePayload . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ExamplePayload build ()
buildPartial()
public ExamplePayload buildPartial ()
clear()
public ExamplePayload . Builder clear ()
Overrides
clearDocument()
public ExamplePayload . Builder clearDocument ()
Example document.
.google.cloud.automl.v1.Document document = 4;
clearField(Descriptors.FieldDescriptor field)
public ExamplePayload . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearImage()
public ExamplePayload . Builder clearImage ()
Example image.
.google.cloud.automl.v1.Image image = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public ExamplePayload . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearPayload()
public ExamplePayload . Builder clearPayload ()
clearTextSnippet()
public ExamplePayload . Builder clearTextSnippet ()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
clone()
public ExamplePayload . Builder clone ()
Overrides
getDefaultInstanceForType()
public ExamplePayload getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getDocument()
public Document getDocument ()
Example document.
.google.cloud.automl.v1.Document document = 4;
Returns Type Description Document
The document.
getDocumentBuilder()
public Document . Builder getDocumentBuilder ()
Example document.
.google.cloud.automl.v1.Document document = 4;
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder ()
Example document.
.google.cloud.automl.v1.Document document = 4;
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;
getImageOrBuilder()
public ImageOrBuilder getImageOrBuilder ()
Example image.
.google.cloud.automl.v1.Image image = 1;
getPayloadCase()
public ExamplePayload . PayloadCase getPayloadCase ()
getTextSnippet()
public TextSnippet getTextSnippet ()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
getTextSnippetBuilder()
public TextSnippet . Builder getTextSnippetBuilder ()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
getTextSnippetOrBuilder()
public TextSnippetOrBuilder getTextSnippetOrBuilder ()
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeDocument(Document value)
public ExamplePayload . Builder mergeDocument ( Document value )
Example document.
.google.cloud.automl.v1.Document document = 4;
mergeFrom(ExamplePayload other)
public ExamplePayload . Builder mergeFrom ( ExamplePayload other )
public ExamplePayload . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ExamplePayload . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeImage(Image value)
public ExamplePayload . Builder mergeImage ( Image value )
Example image.
.google.cloud.automl.v1.Image image = 1;
Parameter Name Description value
Image
mergeTextSnippet(TextSnippet value)
public ExamplePayload . Builder mergeTextSnippet ( TextSnippet value )
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExamplePayload . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setDocument(Document value)
public ExamplePayload . Builder setDocument ( Document value )
Example document.
.google.cloud.automl.v1.Document document = 4;
setDocument(Document.Builder builderForValue)
public ExamplePayload . Builder setDocument ( Document . Builder builderForValue )
Example document.
.google.cloud.automl.v1.Document document = 4;
setField(Descriptors.FieldDescriptor field, Object value)
public ExamplePayload . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setImage(Image value)
public ExamplePayload . Builder setImage ( Image value )
Example image.
.google.cloud.automl.v1.Image image = 1;
Parameter Name Description value
Image
setImage(Image.Builder builderForValue)
public ExamplePayload . Builder setImage ( Image . Builder builderForValue )
Example image.
.google.cloud.automl.v1.Image image = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExamplePayload . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setTextSnippet(TextSnippet value)
public ExamplePayload . Builder setTextSnippet ( TextSnippet value )
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
setTextSnippet(TextSnippet.Builder builderForValue)
public ExamplePayload . Builder setTextSnippet ( TextSnippet . Builder builderForValue )
Example text.
.google.cloud.automl.v1.TextSnippet text_snippet = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final ExamplePayload . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]