Class CreateAssistantSessionRequest.Builder (0.19.0)

public static final class CreateAssistantSessionRequest.Builder extends GeneratedMessage.Builder<CreateAssistantSessionRequest.Builder> implements CreateAssistantSessionRequestOrBuilder

Request message for AssistantService.CreateAssistantSession.

Protobuf type google.cloud.ces.v1beta.CreateAssistantSessionRequest

Static Methods

getDescriptor()

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

Methods

addAllAssistantSessionMessages(Iterable<? extends AssistantMessage> values)

public CreateAssistantSessionRequest.Builder addAllAssistantSessionMessages(Iterable<? extends AssistantMessage> values)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

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

addAssistantSessionMessages(AssistantMessage value)

public CreateAssistantSessionRequest.Builder addAssistantSessionMessages(AssistantMessage value)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AssistantMessage
Returns
Type Description
CreateAssistantSessionRequest.Builder

addAssistantSessionMessages(AssistantMessage.Builder builderForValue)

public CreateAssistantSessionRequest.Builder addAssistantSessionMessages(AssistantMessage.Builder builderForValue)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AssistantMessage.Builder
Returns
Type Description
CreateAssistantSessionRequest.Builder

addAssistantSessionMessages(int index, AssistantMessage value)

public CreateAssistantSessionRequest.Builder addAssistantSessionMessages(int index, AssistantMessage value)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AssistantMessage
Returns
Type Description
CreateAssistantSessionRequest.Builder

addAssistantSessionMessages(int index, AssistantMessage.Builder builderForValue)

public CreateAssistantSessionRequest.Builder addAssistantSessionMessages(int index, AssistantMessage.Builder builderForValue)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AssistantMessage.Builder
Returns
Type Description
CreateAssistantSessionRequest.Builder

addAssistantSessionMessagesBuilder()

public AssistantMessage.Builder addAssistantSessionMessagesBuilder()

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AssistantMessage.Builder

addAssistantSessionMessagesBuilder(int index)

public AssistantMessage.Builder addAssistantSessionMessagesBuilder(int index)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantMessage.Builder

build()

public CreateAssistantSessionRequest build()
Returns
Type Description
CreateAssistantSessionRequest

buildPartial()

public CreateAssistantSessionRequest buildPartial()
Returns
Type Description
CreateAssistantSessionRequest

clear()

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

clearAssistantSessionId()

public CreateAssistantSessionRequest.Builder clearAssistantSessionId()

Optional. The ID to use for the assistant session, which will become the final component of the assistant session's resource name. If not provided, a unique ID will be automatically assigned for the assistant session.

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

Returns
Type Description
CreateAssistantSessionRequest.Builder

This builder for chaining.

clearAssistantSessionMessages()

public CreateAssistantSessionRequest.Builder clearAssistantSessionMessages()

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateAssistantSessionRequest.Builder

clearParent()

public CreateAssistantSessionRequest.Builder clearParent()

Required. The app to create the assistant session in Format: projects/{project}/locations/{location}/apps/{app}

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

Returns
Type Description
CreateAssistantSessionRequest.Builder

This builder for chaining.

getAssistantSessionId()

public String getAssistantSessionId()

Optional. The ID to use for the assistant session, which will become the final component of the assistant session's resource name. If not provided, a unique ID will be automatically assigned for the assistant session.

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

Returns
Type Description
String

The assistantSessionId.

getAssistantSessionIdBytes()

public ByteString getAssistantSessionIdBytes()

Optional. The ID to use for the assistant session, which will become the final component of the assistant session's resource name. If not provided, a unique ID will be automatically assigned for the assistant session.

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

Returns
Type Description
ByteString

The bytes for assistantSessionId.

getAssistantSessionMessages(int index)

public AssistantMessage getAssistantSessionMessages(int index)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantMessage

getAssistantSessionMessagesBuilder(int index)

public AssistantMessage.Builder getAssistantSessionMessagesBuilder(int index)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantMessage.Builder

getAssistantSessionMessagesBuilderList()

public List<AssistantMessage.Builder> getAssistantSessionMessagesBuilderList()

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAssistantSessionMessagesCount()

public int getAssistantSessionMessagesCount()

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAssistantSessionMessagesList()

public List<AssistantMessage> getAssistantSessionMessagesList()

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AssistantMessage>

getAssistantSessionMessagesOrBuilder(int index)

public AssistantMessageOrBuilder getAssistantSessionMessagesOrBuilder(int index)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantMessageOrBuilder

getAssistantSessionMessagesOrBuilderList()

public List<? extends AssistantMessageOrBuilder> getAssistantSessionMessagesOrBuilderList()

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

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

getDefaultInstanceForType()

public CreateAssistantSessionRequest getDefaultInstanceForType()
Returns
Type Description
CreateAssistantSessionRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The app to create the assistant session in Format: projects/{project}/locations/{location}/apps/{app}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The app to create the assistant session in Format: projects/{project}/locations/{location}/apps/{app}

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateAssistantSessionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeAssistantSessionMessages(int index)

public CreateAssistantSessionRequest.Builder removeAssistantSessionMessages(int index)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CreateAssistantSessionRequest.Builder

setAssistantSessionId(String value)

public CreateAssistantSessionRequest.Builder setAssistantSessionId(String value)

Optional. The ID to use for the assistant session, which will become the final component of the assistant session's resource name. If not provided, a unique ID will be automatically assigned for the assistant session.

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

Parameter
Name Description
value String

The assistantSessionId to set.

Returns
Type Description
CreateAssistantSessionRequest.Builder

This builder for chaining.

setAssistantSessionIdBytes(ByteString value)

public CreateAssistantSessionRequest.Builder setAssistantSessionIdBytes(ByteString value)

Optional. The ID to use for the assistant session, which will become the final component of the assistant session's resource name. If not provided, a unique ID will be automatically assigned for the assistant session.

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

Parameter
Name Description
value ByteString

The bytes for assistantSessionId to set.

Returns
Type Description
CreateAssistantSessionRequest.Builder

This builder for chaining.

setAssistantSessionMessages(int index, AssistantMessage value)

public CreateAssistantSessionRequest.Builder setAssistantSessionMessages(int index, AssistantMessage value)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AssistantMessage
Returns
Type Description
CreateAssistantSessionRequest.Builder

setAssistantSessionMessages(int index, AssistantMessage.Builder builderForValue)

public CreateAssistantSessionRequest.Builder setAssistantSessionMessages(int index, AssistantMessage.Builder builderForValue)

Optional. The messages to seed the assistant session with.

repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AssistantMessage.Builder
Returns
Type Description
CreateAssistantSessionRequest.Builder

setParent(String value)

public CreateAssistantSessionRequest.Builder setParent(String value)

Required. The app to create the assistant session in Format: projects/{project}/locations/{location}/apps/{app}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAssistantSessionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAssistantSessionRequest.Builder setParentBytes(ByteString value)

Required. The app to create the assistant session in Format: projects/{project}/locations/{location}/apps/{app}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateAssistantSessionRequest.Builder

This builder for chaining.