Send feedback
Class ExamplePayload.Builder (2.3.18)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.18 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 ()
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
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."],[],[]]