Class ImportDocumentsRequest.InlineSource.Builder (0.32.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.v1.ImportDocumentsRequest.InlineSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1.Document>
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDocument
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueDocument.Builder
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueDocument
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueDocument.Builder
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Document.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDocumentsRequest.InlineSource build()
Returns
TypeDescription
ImportDocumentsRequest.InlineSource

buildPartial()

public ImportDocumentsRequest.InlineSource buildPartial()
Returns
TypeDescription
ImportDocumentsRequest.InlineSource

clear()

public ImportDocumentsRequest.InlineSource.Builder clear()
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportDocumentsRequest.InlineSource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ImportDocumentsRequest.InlineSource.Builder clone()
Returns
TypeDescription
ImportDocumentsRequest.InlineSource.Builder
Overrides

getDefaultInstanceForType()

public ImportDocumentsRequest.InlineSource getDefaultInstanceForType()
Returns
TypeDescription
ImportDocumentsRequest.InlineSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1.DocumentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportDocumentsRequest.InlineSource other)

public ImportDocumentsRequest.InlineSource.Builder mergeFrom(ImportDocumentsRequest.InlineSource other)
Parameter
NameDescription
otherImportDocumentsRequest.InlineSource
Returns
TypeDescription
ImportDocumentsRequest.InlineSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportDocumentsRequest.InlineSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueDocument
Returns
TypeDescription
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.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueDocument.Builder
Returns
TypeDescription
ImportDocumentsRequest.InlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportDocumentsRequest.InlineSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportDocumentsRequest.InlineSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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