Class CreateAssistantSessionRequest (0.19.0)

public final class CreateAssistantSessionRequest extends GeneratedMessage implements CreateAssistantSessionRequestOrBuilder

Request message for AssistantService.CreateAssistantSession.

Protobuf type google.cloud.ces.v1beta.CreateAssistantSessionRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CreateAssistantSessionRequest

Static Fields

ASSISTANT_SESSION_ID_FIELD_NUMBER

public static final int ASSISTANT_SESSION_ID_FIELD_NUMBER
Field Value
Type Description
int

ASSISTANT_SESSION_MESSAGES_FIELD_NUMBER

public static final int ASSISTANT_SESSION_MESSAGES_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateAssistantSessionRequest getDefaultInstance()
Returns
Type Description
CreateAssistantSessionRequest

getDescriptor()

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

newBuilder()

public static CreateAssistantSessionRequest.Builder newBuilder()
Returns
Type Description
CreateAssistantSessionRequest.Builder

newBuilder(CreateAssistantSessionRequest prototype)

public static CreateAssistantSessionRequest.Builder newBuilder(CreateAssistantSessionRequest prototype)
Parameter
Name Description
prototype CreateAssistantSessionRequest
Returns
Type Description
CreateAssistantSessionRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateAssistantSessionRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAssistantSessionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateAssistantSessionRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateAssistantSessionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateAssistantSessionRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateAssistantSessionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateAssistantSessionRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAssistantSessionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateAssistantSessionRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAssistantSessionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateAssistantSessionRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateAssistantSessionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAssistantSessionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateAssistantSessionRequest> parser()
Returns
Type Description
Parser<CreateAssistantSessionRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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

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.

getParserForType()

public Parser<CreateAssistantSessionRequest> getParserForType()
Returns
Type Description
Parser<CreateAssistantSessionRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateAssistantSessionRequest.Builder newBuilderForType()
Returns
Type Description
CreateAssistantSessionRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CreateAssistantSessionRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateAssistantSessionRequest.Builder
Overrides

toBuilder()

public CreateAssistantSessionRequest.Builder toBuilder()
Returns
Type Description
CreateAssistantSessionRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException