Class ListUserEventsResponse.Builder (0.19.0)

public static final class ListUserEventsResponse.Builder extends GeneratedMessageV3.Builder<ListUserEventsResponse.Builder> implements ListUserEventsResponseOrBuilder

Response message for ListUserEvents method.

Protobuf type google.cloud.recommendationengine.v1beta1.ListUserEventsResponse

Static Methods

getDescriptor()

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

Methods

addAllUserEvents(Iterable<? extends UserEvent> values)

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

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUserEvents(UserEvent value)

public ListUserEventsResponse.Builder addUserEvents(UserEvent value)

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameter
NameDescription
valueUserEvent
Returns
TypeDescription
ListUserEventsResponse.Builder

addUserEvents(UserEvent.Builder builderForValue)

public ListUserEventsResponse.Builder addUserEvents(UserEvent.Builder builderForValue)

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameter
NameDescription
builderForValueUserEvent.Builder
Returns
TypeDescription
ListUserEventsResponse.Builder

addUserEvents(int index, UserEvent value)

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

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameters
NameDescription
indexint
valueUserEvent
Returns
TypeDescription
ListUserEventsResponse.Builder

addUserEvents(int index, UserEvent.Builder builderForValue)

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

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameters
NameDescription
indexint
builderForValueUserEvent.Builder
Returns
TypeDescription
ListUserEventsResponse.Builder

addUserEventsBuilder()

public UserEvent.Builder addUserEventsBuilder()

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Returns
TypeDescription
UserEvent.Builder

addUserEventsBuilder(int index)

public UserEvent.Builder addUserEventsBuilder(int index)

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEvent.Builder

build()

public ListUserEventsResponse build()
Returns
TypeDescription
ListUserEventsResponse

buildPartial()

public ListUserEventsResponse buildPartial()
Returns
TypeDescription
ListUserEventsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListUserEventsResponse.Builder clearNextPageToken()

If empty, the list is complete. If nonempty, the token to pass to the next request's ListUserEvents.page_token.

string next_page_token = 2;

Returns
TypeDescription
ListUserEventsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserEvents()

public ListUserEventsResponse.Builder clearUserEvents()

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Returns
TypeDescription
ListUserEventsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListUserEventsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListUserEventsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

If empty, the list is complete. If nonempty, the token to pass to the next request's ListUserEvents.page_token.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If empty, the list is complete. If nonempty, the token to pass to the next request's ListUserEvents.page_token.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUserEvents(int index)

public UserEvent getUserEvents(int index)

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEvent

getUserEventsBuilder(int index)

public UserEvent.Builder getUserEventsBuilder(int index)

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEvent.Builder

getUserEventsBuilderList()

public List<UserEvent.Builder> getUserEventsBuilderList()

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Returns
TypeDescription
List<Builder>

getUserEventsCount()

public int getUserEventsCount()

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Returns
TypeDescription
int

getUserEventsList()

public List<UserEvent> getUserEventsList()

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Returns
TypeDescription
List<UserEvent>

getUserEventsOrBuilder(int index)

public UserEventOrBuilder getUserEventsOrBuilder(int index)

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserEventOrBuilder

getUserEventsOrBuilderList()

public List<? extends UserEventOrBuilder> getUserEventsOrBuilderList()

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

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(ListUserEventsResponse other)

public ListUserEventsResponse.Builder mergeFrom(ListUserEventsResponse other)
Parameter
NameDescription
otherListUserEventsResponse
Returns
TypeDescription
ListUserEventsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUserEvents(int index)

public ListUserEventsResponse.Builder removeUserEvents(int index)

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListUserEventsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListUserEventsResponse.Builder setNextPageToken(String value)

If empty, the list is complete. If nonempty, the token to pass to the next request's ListUserEvents.page_token.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListUserEventsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListUserEventsResponse.Builder setNextPageTokenBytes(ByteString value)

If empty, the list is complete. If nonempty, the token to pass to the next request's ListUserEvents.page_token.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListUserEventsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserEvents(int index, UserEvent value)

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

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameters
NameDescription
indexint
valueUserEvent
Returns
TypeDescription
ListUserEventsResponse.Builder

setUserEvents(int index, UserEvent.Builder builderForValue)

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

The user events.

repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1;

Parameters
NameDescription
indexint
builderForValueUserEvent.Builder
Returns
TypeDescription
ListUserEventsResponse.Builder