Class ImportUserEventsRequest.Builder (2.8.0)

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

Request message for the ImportUserEvents request.

Protobuf type google.cloud.retail.v2alpha.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

clearErrorsConfig()

public ImportUserEventsRequest.Builder clearErrorsConfig()

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

.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
ImportUserEventsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInputConfig()

public ImportUserEventsRequest.Builder clearInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2alpha.UserEventInputConfig input_config = 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. projects/1234/locations/global/catalogs/default_catalog

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

Returns
TypeDescription
ImportUserEventsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportUserEventsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportUserEventsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorsConfig()

public ImportErrorsConfig getErrorsConfig()

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

.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
ImportErrorsConfig

The errorsConfig.

getErrorsConfigBuilder()

public ImportErrorsConfig.Builder getErrorsConfigBuilder()

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

.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
ImportErrorsConfig.Builder

getErrorsConfigOrBuilder()

public ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder()

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

.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
ImportErrorsConfigOrBuilder

getInputConfig()

public UserEventInputConfig getInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2alpha.UserEventInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UserEventInputConfig

The inputConfig.

getInputConfigBuilder()

public UserEventInputConfig.Builder getInputConfigBuilder()

Required. The desired input location of the data.

.google.cloud.retail.v2alpha.UserEventInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UserEventInputConfig.Builder

getInputConfigOrBuilder()

public UserEventInputConfigOrBuilder getInputConfigOrBuilder()

Required. The desired input location of the data.

.google.cloud.retail.v2alpha.UserEventInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UserEventInputConfigOrBuilder

getParent()

public String getParent()

Required. projects/1234/locations/global/catalogs/default_catalog

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. projects/1234/locations/global/catalogs/default_catalog

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasErrorsConfig()

public boolean hasErrorsConfig()

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

.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;

Returns
TypeDescription
boolean

Whether the errorsConfig field is set.

hasInputConfig()

public boolean hasInputConfig()

Required. The desired input location of the data.

.google.cloud.retail.v2alpha.UserEventInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeErrorsConfig(ImportErrorsConfig value)

public ImportUserEventsRequest.Builder mergeErrorsConfig(ImportErrorsConfig value)

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

.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;

Parameter
NameDescription
valueImportErrorsConfig
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

mergeInputConfig(UserEventInputConfig value)

public ImportUserEventsRequest.Builder mergeInputConfig(UserEventInputConfig value)

Required. The desired input location of the data.

.google.cloud.retail.v2alpha.UserEventInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueUserEventInputConfig
Returns
TypeDescription
ImportUserEventsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setErrorsConfig(ImportErrorsConfig value)

public ImportUserEventsRequest.Builder setErrorsConfig(ImportErrorsConfig value)

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

.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;

Parameter
NameDescription
valueImportErrorsConfig
Returns
TypeDescription
ImportUserEventsRequest.Builder

setErrorsConfig(ImportErrorsConfig.Builder builderForValue)

public ImportUserEventsRequest.Builder setErrorsConfig(ImportErrorsConfig.Builder builderForValue)

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

.google.cloud.retail.v2alpha.ImportErrorsConfig errors_config = 3;

Parameter
NameDescription
builderForValueImportErrorsConfig.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

setInputConfig(UserEventInputConfig value)

public ImportUserEventsRequest.Builder setInputConfig(UserEventInputConfig value)

Required. The desired input location of the data.

.google.cloud.retail.v2alpha.UserEventInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueUserEventInputConfig
Returns
TypeDescription
ImportUserEventsRequest.Builder

setInputConfig(UserEventInputConfig.Builder builderForValue)

public ImportUserEventsRequest.Builder setInputConfig(UserEventInputConfig.Builder builderForValue)

Required. The desired input location of the data.

.google.cloud.retail.v2alpha.UserEventInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueUserEventInputConfig.Builder
Returns
TypeDescription
ImportUserEventsRequest.Builder

setParent(String value)

public ImportUserEventsRequest.Builder setParent(String value)

Required. projects/1234/locations/global/catalogs/default_catalog

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. projects/1234/locations/global/catalogs/default_catalog

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