Class ImportDocumentsRequest.InlineSource.Builder (0.48.0)

public static final class ImportDocumentsRequest.InlineSource.Builder extends GeneratedMessageV3.Builder<ImportDocumentsRequest.InlineSource.Builder> implements ImportDocumentsRequest.InlineSourceOrBuilder

The inline source for the input config for ImportDocuments method.

Protobuf type google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource

Static Methods

getDescriptor()

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

Methods

addAllDocuments(Iterable<? extends Document> values)

public ImportDocumentsRequest.InlineSource.Builder addAllDocuments(Iterable<? extends Document> values)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1alpha.Document>
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

addDocuments(Document value)

public ImportDocumentsRequest.InlineSource.Builder addDocuments(Document value)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Document
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

addDocuments(Document.Builder builderForValue)

public ImportDocumentsRequest.InlineSource.Builder addDocuments(Document.Builder builderForValue)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

addDocuments(int index, Document value)

public ImportDocumentsRequest.InlineSource.Builder addDocuments(int index, Document value)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Document
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

addDocuments(int index, Document.Builder builderForValue)

public ImportDocumentsRequest.InlineSource.Builder addDocuments(int index, Document.Builder builderForValue)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Document.Builder
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

addDocumentsBuilder()

public Document.Builder addDocumentsBuilder()

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Document.Builder

addDocumentsBuilder(int index)

public Document.Builder addDocumentsBuilder(int index)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Document.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDocumentsRequest.InlineSource build()
Returns
Type Description
ImportDocumentsRequest.InlineSource

buildPartial()

public ImportDocumentsRequest.InlineSource buildPartial()
Returns
Type Description
ImportDocumentsRequest.InlineSource

clear()

public ImportDocumentsRequest.InlineSource.Builder clear()
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder
Overrides

clearDocuments()

public ImportDocumentsRequest.InlineSource.Builder clearDocuments()

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ImportDocumentsRequest.InlineSource.Builder clone()
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder
Overrides

getDefaultInstanceForType()

public ImportDocumentsRequest.InlineSource getDefaultInstanceForType()
Returns
Type Description
ImportDocumentsRequest.InlineSource

getDescriptorForType()

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

getDocuments(int index)

public Document getDocuments(int index)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Document

getDocumentsBuilder(int index)

public Document.Builder getDocumentsBuilder(int index)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Document.Builder

getDocumentsBuilderList()

public List<Document.Builder> getDocumentsBuilderList()

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getDocumentsCount()

public int getDocumentsCount()

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getDocumentsList()

public List<Document> getDocumentsList()

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Document>

getDocumentsOrBuilder(int index)

public DocumentOrBuilder getDocumentsOrBuilder(int index)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DocumentOrBuilder

getDocumentsOrBuilderList()

public List<? extends DocumentOrBuilder> getDocumentsOrBuilderList()

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportDocumentsRequest.InlineSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDocuments(int index)

public ImportDocumentsRequest.InlineSource.Builder removeDocuments(int index)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

setDocuments(int index, Document value)

public ImportDocumentsRequest.InlineSource.Builder setDocuments(int index, Document value)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Document
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

setDocuments(int index, Document.Builder builderForValue)

public ImportDocumentsRequest.InlineSource.Builder setDocuments(int index, Document.Builder builderForValue)

Required. A list of documents to update/create. Each document must have a valid Document.id. Recommended max of 100 items.

repeated .google.cloud.discoveryengine.v1alpha.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Document.Builder
Returns
Type Description
ImportDocumentsRequest.InlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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