Class UserEventInlineSource.Builder (2.48.0)

public static final class UserEventInlineSource.Builder extends GeneratedMessageV3.Builder<UserEventInlineSource.Builder> implements UserEventInlineSourceOrBuilder

The inline source for the input config for ImportUserEvents method.

Protobuf type google.cloud.retail.v2.UserEventInlineSource

Static Methods

getDescriptor()

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

Methods

addAllUserEvents(Iterable<? extends UserEvent> values)

public UserEventInlineSource.Builder addAllUserEvents(Iterable<? extends UserEvent> values)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2.UserEvent>
Returns
Type Description
UserEventInlineSource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUserEvents(UserEvent value)

public UserEventInlineSource.Builder addUserEvents(UserEvent value)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserEvent
Returns
Type Description
UserEventInlineSource.Builder

addUserEvents(UserEvent.Builder builderForValue)

public UserEventInlineSource.Builder addUserEvents(UserEvent.Builder builderForValue)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UserEvent.Builder
Returns
Type Description
UserEventInlineSource.Builder

addUserEvents(int index, UserEvent value)

public UserEventInlineSource.Builder addUserEvents(int index, UserEvent value)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value UserEvent
Returns
Type Description
UserEventInlineSource.Builder

addUserEvents(int index, UserEvent.Builder builderForValue)

public UserEventInlineSource.Builder addUserEvents(int index, UserEvent.Builder builderForValue)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue UserEvent.Builder
Returns
Type Description
UserEventInlineSource.Builder

addUserEventsBuilder()

public UserEvent.Builder addUserEventsBuilder()

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserEvent.Builder

addUserEventsBuilder(int index)

public UserEvent.Builder addUserEventsBuilder(int index)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserEvent.Builder

build()

public UserEventInlineSource build()
Returns
Type Description
UserEventInlineSource

buildPartial()

public UserEventInlineSource buildPartial()
Returns
Type Description
UserEventInlineSource

clear()

public UserEventInlineSource.Builder clear()
Returns
Type Description
UserEventInlineSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserEvents()

public UserEventInlineSource.Builder clearUserEvents()

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserEventInlineSource.Builder

clone()

public UserEventInlineSource.Builder clone()
Returns
Type Description
UserEventInlineSource.Builder
Overrides

getDefaultInstanceForType()

public UserEventInlineSource getDefaultInstanceForType()
Returns
Type Description
UserEventInlineSource

getDescriptorForType()

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

getUserEvents(int index)

public UserEvent getUserEvents(int index)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserEvent

getUserEventsBuilder(int index)

public UserEvent.Builder getUserEventsBuilder(int index)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserEvent.Builder

getUserEventsBuilderList()

public List<UserEvent.Builder> getUserEventsBuilderList()

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getUserEventsCount()

public int getUserEventsCount()

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getUserEventsList()

public List<UserEvent> getUserEventsList()

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<UserEvent>

getUserEventsOrBuilder(int index)

public UserEventOrBuilder getUserEventsOrBuilder(int index)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserEventOrBuilder

getUserEventsOrBuilderList()

public List<? extends UserEventOrBuilder> getUserEventsOrBuilderList()

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.retail.v2.UserEventOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserEventInlineSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUserEvents(int index)

public UserEventInlineSource.Builder removeUserEvents(int index)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserEventInlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserEvents(int index, UserEvent value)

public UserEventInlineSource.Builder setUserEvents(int index, UserEvent value)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value UserEvent
Returns
Type Description
UserEventInlineSource.Builder

setUserEvents(int index, UserEvent.Builder builderForValue)

public UserEventInlineSource.Builder setUserEvents(int index, UserEvent.Builder builderForValue)

Required. A list of user events to import. Recommended max of 10k items.

repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue UserEvent.Builder
Returns
Type Description
UserEventInlineSource.Builder