Class ImportDocumentsRequest.Builder (0.7.0)

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

Request message for Import methods.

Protobuf type google.cloud.discoveryengine.v1beta.ImportDocumentsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDocumentsRequest build()
Returns
TypeDescription
ImportDocumentsRequest

buildPartial()

public ImportDocumentsRequest buildPartial()
Returns
TypeDescription
ImportDocumentsRequest

clear()

public ImportDocumentsRequest.Builder clear()
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

clearBigquerySource()

public ImportDocumentsRequest.Builder clearBigquerySource()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearErrorConfig()

public ImportDocumentsRequest.Builder clearErrorConfig()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public ImportDocumentsRequest.Builder clearGcsSource()

Google Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearInlineSource()

public ImportDocumentsRequest.Builder clearInlineSource()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportDocumentsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportDocumentsRequest.Builder clearParent()

Required. The parent branch resource name, such as projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearReconciliationMode()

public ImportDocumentsRequest.Builder clearReconciliationMode()

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

clearSource()

public ImportDocumentsRequest.Builder clearSource()
Returns
TypeDescription
ImportDocumentsRequest.Builder

clone()

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

getBigquerySource()

public BigQuerySource getBigquerySource()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
BigQuerySource

The bigquerySource.

getBigquerySourceBuilder()

public BigQuerySource.Builder getBigquerySourceBuilder()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
BigQuerySource.Builder

getBigquerySourceOrBuilder()

public BigQuerySourceOrBuilder getBigquerySourceOrBuilder()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
BigQuerySourceOrBuilder

getDefaultInstanceForType()

public ImportDocumentsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportDocumentsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorConfig()

public ImportErrorConfig getErrorConfig()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
ImportErrorConfig

The errorConfig.

getErrorConfigBuilder()

public ImportErrorConfig.Builder getErrorConfigBuilder()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
ImportErrorConfig.Builder

getErrorConfigOrBuilder()

public ImportErrorConfigOrBuilder getErrorConfigOrBuilder()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
ImportErrorConfigOrBuilder

getGcsSource()

public GcsSource getGcsSource()

Google Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

Google Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Google Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
GcsSourceOrBuilder

getInlineSource()

public ImportDocumentsRequest.InlineSource getInlineSource()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportDocumentsRequest.InlineSource

The inlineSource.

getInlineSourceBuilder()

public ImportDocumentsRequest.InlineSource.Builder getInlineSourceBuilder()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportDocumentsRequest.InlineSource.Builder

getInlineSourceOrBuilder()

public ImportDocumentsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
ImportDocumentsRequest.InlineSourceOrBuilder

getParent()

public String getParent()

Required. The parent branch resource name, such as projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent branch resource name, such as projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getReconciliationMode()

public ImportDocumentsRequest.ReconciliationMode getReconciliationMode()

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Returns
TypeDescription
ImportDocumentsRequest.ReconciliationMode

The reconciliationMode.

getReconciliationModeValue()

public int getReconciliationModeValue()

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for reconciliationMode.

getSourceCase()

public ImportDocumentsRequest.SourceCase getSourceCase()
Returns
TypeDescription
ImportDocumentsRequest.SourceCase

hasBigquerySource()

public boolean hasBigquerySource()

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Returns
TypeDescription
boolean

Whether the bigquerySource field is set.

hasErrorConfig()

public boolean hasErrorConfig()

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Returns
TypeDescription
boolean

Whether the errorConfig field is set.

hasGcsSource()

public boolean hasGcsSource()

Google Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

hasInlineSource()

public boolean hasInlineSource()

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Returns
TypeDescription
boolean

Whether the inlineSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBigquerySource(BigQuerySource value)

public ImportDocumentsRequest.Builder mergeBigquerySource(BigQuerySource value)

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Parameter
NameDescription
valueBigQuerySource
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeErrorConfig(ImportErrorConfig value)

public ImportDocumentsRequest.Builder mergeErrorConfig(ImportErrorConfig value)

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Parameter
NameDescription
valueImportErrorConfig
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeFrom(ImportDocumentsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsSource(GcsSource value)

public ImportDocumentsRequest.Builder mergeGcsSource(GcsSource value)

Google Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeInlineSource(ImportDocumentsRequest.InlineSource value)

public ImportDocumentsRequest.Builder mergeInlineSource(ImportDocumentsRequest.InlineSource value)

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Parameter
NameDescription
valueImportDocumentsRequest.InlineSource
Returns
TypeDescription
ImportDocumentsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBigquerySource(BigQuerySource value)

public ImportDocumentsRequest.Builder setBigquerySource(BigQuerySource value)

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Parameter
NameDescription
valueBigQuerySource
Returns
TypeDescription
ImportDocumentsRequest.Builder

setBigquerySource(BigQuerySource.Builder builderForValue)

public ImportDocumentsRequest.Builder setBigquerySource(BigQuerySource.Builder builderForValue)

BigQuery input source.

.google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;

Parameter
NameDescription
builderForValueBigQuerySource.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setErrorConfig(ImportErrorConfig value)

public ImportDocumentsRequest.Builder setErrorConfig(ImportErrorConfig value)

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Parameter
NameDescription
valueImportErrorConfig
Returns
TypeDescription
ImportDocumentsRequest.Builder

setErrorConfig(ImportErrorConfig.Builder builderForValue)

public ImportDocumentsRequest.Builder setErrorConfig(ImportErrorConfig.Builder builderForValue)

The desired location of errors incurred during the Import.

.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 5;

Parameter
NameDescription
builderForValueImportErrorConfig.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(GcsSource value)

public ImportDocumentsRequest.Builder setGcsSource(GcsSource value)

Google Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
ImportDocumentsRequest.Builder

setGcsSource(GcsSource.Builder builderForValue)

public ImportDocumentsRequest.Builder setGcsSource(GcsSource.Builder builderForValue)

Google Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;

Parameter
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setInlineSource(ImportDocumentsRequest.InlineSource value)

public ImportDocumentsRequest.Builder setInlineSource(ImportDocumentsRequest.InlineSource value)

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Parameter
NameDescription
valueImportDocumentsRequest.InlineSource
Returns
TypeDescription
ImportDocumentsRequest.Builder

setInlineSource(ImportDocumentsRequest.InlineSource.Builder builderForValue)

public ImportDocumentsRequest.Builder setInlineSource(ImportDocumentsRequest.InlineSource.Builder builderForValue)

The Inline source for the input content for documents.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource inline_source = 2;

Parameter
NameDescription
builderForValueImportDocumentsRequest.InlineSource.Builder
Returns
TypeDescription
ImportDocumentsRequest.Builder

setParent(String value)

public ImportDocumentsRequest.Builder setParent(String value)

Required. The parent branch resource name, such as projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportDocumentsRequest.Builder setParentBytes(ByteString value)

Required. The parent branch resource name, such as projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}. Requires create/update permission.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setReconciliationMode(ImportDocumentsRequest.ReconciliationMode value)

public ImportDocumentsRequest.Builder setReconciliationMode(ImportDocumentsRequest.ReconciliationMode value)

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Parameter
NameDescription
valueImportDocumentsRequest.ReconciliationMode

The reconciliationMode to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

setReconciliationModeValue(int value)

public ImportDocumentsRequest.Builder setReconciliationModeValue(int value)

The mode of reconciliation between existing documents and the documents to be imported. Defaults to ReconciliationMode.INCREMENTAL.

.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for reconciliationMode to set.

Returns
TypeDescription
ImportDocumentsRequest.Builder

This builder for chaining.

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

public ImportDocumentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportDocumentsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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