Class UserEventInlineSource.Builder (0.26.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.recommendationengine.v1beta1.UserEventInlineSource

Static Methods

getDescriptor()

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

Methods

addAllUserEvents(Iterable<? extends UserEvent> values)

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

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.recommendationengine.v1beta1.UserEvent>
Returns
TypeDescription
UserEventInlineSource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUserEvents(UserEvent value)

public UserEventInlineSource.Builder addUserEvents(UserEvent value)

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueUserEvent
Returns
TypeDescription
UserEventInlineSource.Builder

addUserEvents(UserEvent.Builder builderForValue)

public UserEventInlineSource.Builder addUserEvents(UserEvent.Builder builderForValue)

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueUserEvent.Builder
Returns
TypeDescription
UserEventInlineSource.Builder

addUserEvents(int index, UserEvent value)

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

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueUserEvent
Returns
TypeDescription
UserEventInlineSource.Builder

addUserEvents(int index, UserEvent.Builder builderForValue)

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

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueUserEvent.Builder
Returns
TypeDescription
UserEventInlineSource.Builder

addUserEventsBuilder()

public UserEvent.Builder addUserEventsBuilder()

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UserEvent.Builder

addUserEventsBuilder(int index)

public UserEvent.Builder addUserEventsBuilder(int index)

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEvent.Builder

build()

public UserEventInlineSource build()
Returns
TypeDescription
UserEventInlineSource

buildPartial()

public UserEventInlineSource buildPartial()
Returns
TypeDescription
UserEventInlineSource

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserEvents()

public UserEventInlineSource.Builder clearUserEvents()

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UserEventInlineSource.Builder

clone()

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

getDefaultInstanceForType()

public UserEventInlineSource getDefaultInstanceForType()
Returns
TypeDescription
UserEventInlineSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUserEvents(int index)

public UserEvent getUserEvents(int index)

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEvent

getUserEventsBuilder(int index)

public UserEvent.Builder getUserEventsBuilder(int index)

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEvent.Builder

getUserEventsBuilderList()

public List<UserEvent.Builder> getUserEventsBuilderList()

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getUserEventsCount()

public int getUserEventsCount()

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getUserEventsList()

public List<UserEvent> getUserEventsList()

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<UserEvent>

getUserEventsOrBuilder(int index)

public UserEventOrBuilder getUserEventsOrBuilder(int index)

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEventOrBuilder

getUserEventsOrBuilderList()

public List<? extends UserEventOrBuilder> getUserEventsOrBuilderList()

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UserEventInlineSource other)

public UserEventInlineSource.Builder mergeFrom(UserEventInlineSource other)
Parameter
NameDescription
otherUserEventInlineSource
Returns
TypeDescription
UserEventInlineSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUserEvents(int index)

public UserEventInlineSource.Builder removeUserEvents(int index)

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEventInlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserEvents(int index, UserEvent value)

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

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueUserEvent
Returns
TypeDescription
UserEventInlineSource.Builder

setUserEvents(int index, UserEvent.Builder builderForValue)

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

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

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueUserEvent.Builder
Returns
TypeDescription
UserEventInlineSource.Builder