Class ImportUserEventsRequest.Builder (0.19.0)

public static final class ImportUserEventsRequest.Builder extends GeneratedMessageV3.Builder<ImportUserEventsRequest.Builder> implements ImportUserEventsRequestOrBuilder

Request message for the ImportUserEvents request.

Protobuf type google.cloud.discoveryengine.v1.ImportUserEventsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportUserEventsRequest build()
Returns
TypeDescription
ImportUserEventsRequest

buildPartial()

public ImportUserEventsRequest buildPartial()
Returns
TypeDescription
ImportUserEventsRequest

clear()

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

clearBigquerySource()

public ImportUserEventsRequest.Builder clearBigquerySource()

Required. BigQuery input source.

.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportUserEventsRequest.Builder

clearErrorConfig()

public ImportUserEventsRequest.Builder clearErrorConfig()

The desired location of errors incurred during the Import. Cannot be set for inline user event imports.

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

Returns
TypeDescription
ImportUserEventsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public ImportUserEventsRequest.Builder clearGcsSource()

Required. Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportUserEventsRequest.Builder

clearInlineSource()

public ImportUserEventsRequest.Builder clearInlineSource()

Required. The Inline source for the input content for UserEvents.

.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportUserEventsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportUserEventsRequest.Builder clearParent()

Required. Parent DataStore resource name, of the form projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}

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

Returns
TypeDescription
ImportUserEventsRequest.Builder

This builder for chaining.

clearSource()

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

clone()

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

getBigquerySource()

public BigQuerySource getBigquerySource()

Required. BigQuery input source.

.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BigQuerySource

The bigquerySource.

getBigquerySourceBuilder()

public BigQuerySource.Builder getBigquerySourceBuilder()

Required. BigQuery input source.

.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BigQuerySource.Builder

getBigquerySourceOrBuilder()

public BigQuerySourceOrBuilder getBigquerySourceOrBuilder()

Required. BigQuery input source.

.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BigQuerySourceOrBuilder

getDefaultInstanceForType()

public ImportUserEventsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportUserEventsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorConfig()

public ImportErrorConfig getErrorConfig()

The desired location of errors incurred during the Import. Cannot be set for inline user event imports.

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

Returns
TypeDescription
ImportErrorConfig

The errorConfig.

getErrorConfigBuilder()

public ImportErrorConfig.Builder getErrorConfigBuilder()

The desired location of errors incurred during the Import. Cannot be set for inline user event imports.

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

Returns
TypeDescription
ImportErrorConfig.Builder

getErrorConfigOrBuilder()

public ImportErrorConfigOrBuilder getErrorConfigOrBuilder()

The desired location of errors incurred during the Import. Cannot be set for inline user event imports.

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

Returns
TypeDescription
ImportErrorConfigOrBuilder

getGcsSource()

public GcsSource getGcsSource()

Required. Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

Required. Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Required. Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GcsSourceOrBuilder

getInlineSource()

public ImportUserEventsRequest.InlineSource getInlineSource()

Required. The Inline source for the input content for UserEvents.

.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportUserEventsRequest.InlineSource

The inlineSource.

getInlineSourceBuilder()

public ImportUserEventsRequest.InlineSource.Builder getInlineSourceBuilder()

Required. The Inline source for the input content for UserEvents.

.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportUserEventsRequest.InlineSource.Builder

getInlineSourceOrBuilder()

public ImportUserEventsRequest.InlineSourceOrBuilder getInlineSourceOrBuilder()

Required. The Inline source for the input content for UserEvents.

.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportUserEventsRequest.InlineSourceOrBuilder

getParent()

public String getParent()

Required. Parent DataStore resource name, of the form projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent DataStore resource name, of the form projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}

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

Returns
TypeDescription
ByteString

The bytes for parent.

getSourceCase()

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

hasBigquerySource()

public boolean hasBigquerySource()

Required. BigQuery input source.

.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the bigquerySource field is set.

hasErrorConfig()

public boolean hasErrorConfig()

The desired location of errors incurred during the Import. Cannot be set for inline user event imports.

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

Returns
TypeDescription
boolean

Whether the errorConfig field is set.

hasGcsSource()

public boolean hasGcsSource()

Required. Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

hasInlineSource()

public boolean hasInlineSource()

Required. The Inline source for the input content for UserEvents.

.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];

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 ImportUserEventsRequest.Builder mergeBigquerySource(BigQuerySource value)

Required. BigQuery input source.

.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBigQuerySource
Returns
TypeDescription
ImportUserEventsRequest.Builder

mergeErrorConfig(ImportErrorConfig value)

public ImportUserEventsRequest.Builder mergeErrorConfig(ImportErrorConfig value)

The desired location of errors incurred during the Import. Cannot be set for inline user event imports.

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

Parameter
NameDescription
valueImportErrorConfig
Returns
TypeDescription
ImportUserEventsRequest.Builder

mergeFrom(ImportUserEventsRequest other)

public ImportUserEventsRequest.Builder mergeFrom(ImportUserEventsRequest other)
Parameter
NameDescription
otherImportUserEventsRequest
Returns
TypeDescription
ImportUserEventsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsSource(GcsSource value)

public ImportUserEventsRequest.Builder mergeGcsSource(GcsSource value)

Required. Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
ImportUserEventsRequest.Builder

mergeInlineSource(ImportUserEventsRequest.InlineSource value)

public ImportUserEventsRequest.Builder mergeInlineSource(ImportUserEventsRequest.InlineSource value)

Required. The Inline source for the input content for UserEvents.

.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueImportUserEventsRequest.InlineSource
Returns
TypeDescription
ImportUserEventsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBigquerySource(BigQuerySource value)

public ImportUserEventsRequest.Builder setBigquerySource(BigQuerySource value)

Required. BigQuery input source.

.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBigQuerySource
Returns
TypeDescription
ImportUserEventsRequest.Builder

setBigquerySource(BigQuerySource.Builder builderForValue)

public ImportUserEventsRequest.Builder setBigquerySource(BigQuerySource.Builder builderForValue)

Required. BigQuery input source.

.google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBigQuerySource.Builder
Returns
TypeDescription
ImportUserEventsRequest.Builder

setErrorConfig(ImportErrorConfig value)

public ImportUserEventsRequest.Builder setErrorConfig(ImportErrorConfig value)

The desired location of errors incurred during the Import. Cannot be set for inline user event imports.

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

Parameter
NameDescription
valueImportErrorConfig
Returns
TypeDescription
ImportUserEventsRequest.Builder

setErrorConfig(ImportErrorConfig.Builder builderForValue)

public ImportUserEventsRequest.Builder setErrorConfig(ImportErrorConfig.Builder builderForValue)

The desired location of errors incurred during the Import. Cannot be set for inline user event imports.

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

Parameter
NameDescription
builderForValueImportErrorConfig.Builder
Returns
TypeDescription
ImportUserEventsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(GcsSource value)

public ImportUserEventsRequest.Builder setGcsSource(GcsSource value)

Required. Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
ImportUserEventsRequest.Builder

setGcsSource(GcsSource.Builder builderForValue)

public ImportUserEventsRequest.Builder setGcsSource(GcsSource.Builder builderForValue)

Required. Cloud Storage location for the input content.

.google.cloud.discoveryengine.v1.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
ImportUserEventsRequest.Builder

setInlineSource(ImportUserEventsRequest.InlineSource value)

public ImportUserEventsRequest.Builder setInlineSource(ImportUserEventsRequest.InlineSource value)

Required. The Inline source for the input content for UserEvents.

.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueImportUserEventsRequest.InlineSource
Returns
TypeDescription
ImportUserEventsRequest.Builder

setInlineSource(ImportUserEventsRequest.InlineSource.Builder builderForValue)

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

Required. The Inline source for the input content for UserEvents.

.google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueImportUserEventsRequest.InlineSource.Builder
Returns
TypeDescription
ImportUserEventsRequest.Builder

setParent(String value)

public ImportUserEventsRequest.Builder setParent(String value)

Required. Parent DataStore resource name, of the form projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ImportUserEventsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportUserEventsRequest.Builder setParentBytes(ByteString value)

Required. Parent DataStore resource name, of the form projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ImportUserEventsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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