Class ListAssistantSessionsResponse.Builder (0.19.0)

public static final class ListAssistantSessionsResponse.Builder extends GeneratedMessage.Builder<ListAssistantSessionsResponse.Builder> implements ListAssistantSessionsResponseOrBuilder

Response message for AssistantService.ListAssistantSessions.

Protobuf type google.cloud.ces.v1beta.ListAssistantSessionsResponse

Static Methods

getDescriptor()

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

Methods

addAllAssistantSessions(Iterable<? extends AssistantSession> values)

public ListAssistantSessionsResponse.Builder addAllAssistantSessions(Iterable<? extends AssistantSession> values)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.AssistantSession>
Returns
Type Description
ListAssistantSessionsResponse.Builder

addAssistantSessions(AssistantSession value)

public ListAssistantSessionsResponse.Builder addAssistantSessions(AssistantSession value)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameter
Name Description
value AssistantSession
Returns
Type Description
ListAssistantSessionsResponse.Builder

addAssistantSessions(AssistantSession.Builder builderForValue)

public ListAssistantSessionsResponse.Builder addAssistantSessions(AssistantSession.Builder builderForValue)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameter
Name Description
builderForValue AssistantSession.Builder
Returns
Type Description
ListAssistantSessionsResponse.Builder

addAssistantSessions(int index, AssistantSession value)

public ListAssistantSessionsResponse.Builder addAssistantSessions(int index, AssistantSession value)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameters
Name Description
index int
value AssistantSession
Returns
Type Description
ListAssistantSessionsResponse.Builder

addAssistantSessions(int index, AssistantSession.Builder builderForValue)

public ListAssistantSessionsResponse.Builder addAssistantSessions(int index, AssistantSession.Builder builderForValue)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameters
Name Description
index int
builderForValue AssistantSession.Builder
Returns
Type Description
ListAssistantSessionsResponse.Builder

addAssistantSessionsBuilder()

public AssistantSession.Builder addAssistantSessionsBuilder()

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Returns
Type Description
AssistantSession.Builder

addAssistantSessionsBuilder(int index)

public AssistantSession.Builder addAssistantSessionsBuilder(int index)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameter
Name Description
index int
Returns
Type Description
AssistantSession.Builder

build()

public ListAssistantSessionsResponse build()
Returns
Type Description
ListAssistantSessionsResponse

buildPartial()

public ListAssistantSessionsResponse buildPartial()
Returns
Type Description
ListAssistantSessionsResponse

clear()

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

clearAssistantSessions()

public ListAssistantSessionsResponse.Builder clearAssistantSessions()

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Returns
Type Description
ListAssistantSessionsResponse.Builder

clearNextPageToken()

public ListAssistantSessionsResponse.Builder clearNextPageToken()

Optional. A token that can be sent as ListAssistantSessionsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListAssistantSessionsResponse.Builder

This builder for chaining.

getAssistantSessions(int index)

public AssistantSession getAssistantSessions(int index)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameter
Name Description
index int
Returns
Type Description
AssistantSession

getAssistantSessionsBuilder(int index)

public AssistantSession.Builder getAssistantSessionsBuilder(int index)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameter
Name Description
index int
Returns
Type Description
AssistantSession.Builder

getAssistantSessionsBuilderList()

public List<AssistantSession.Builder> getAssistantSessionsBuilderList()

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Returns
Type Description
List<Builder>

getAssistantSessionsCount()

public int getAssistantSessionsCount()

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Returns
Type Description
int

getAssistantSessionsList()

public List<AssistantSession> getAssistantSessionsList()

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Returns
Type Description
List<AssistantSession>

getAssistantSessionsOrBuilder(int index)

public AssistantSessionOrBuilder getAssistantSessionsOrBuilder(int index)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameter
Name Description
index int
Returns
Type Description
AssistantSessionOrBuilder

getAssistantSessionsOrBuilderList()

public List<? extends AssistantSessionOrBuilder> getAssistantSessionsOrBuilderList()

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AssistantSessionOrBuilder>

getDefaultInstanceForType()

public ListAssistantSessionsResponse getDefaultInstanceForType()
Returns
Type Description
ListAssistantSessionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Optional. A token that can be sent as ListAssistantSessionsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. A token that can be sent as ListAssistantSessionsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListAssistantSessionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeAssistantSessions(int index)

public ListAssistantSessionsResponse.Builder removeAssistantSessions(int index)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAssistantSessionsResponse.Builder

setAssistantSessions(int index, AssistantSession value)

public ListAssistantSessionsResponse.Builder setAssistantSessions(int index, AssistantSession value)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameters
Name Description
index int
value AssistantSession
Returns
Type Description
ListAssistantSessionsResponse.Builder

setAssistantSessions(int index, AssistantSession.Builder builderForValue)

public ListAssistantSessionsResponse.Builder setAssistantSessions(int index, AssistantSession.Builder builderForValue)

The list of assistant sessions.

repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1;

Parameters
Name Description
index int
builderForValue AssistantSession.Builder
Returns
Type Description
ListAssistantSessionsResponse.Builder

setNextPageToken(String value)

public ListAssistantSessionsResponse.Builder setNextPageToken(String value)

Optional. A token that can be sent as ListAssistantSessionsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListAssistantSessionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAssistantSessionsResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. A token that can be sent as ListAssistantSessionsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListAssistantSessionsResponse.Builder

This builder for chaining.