Class StreamAssistResponse.SessionInfo.Builder (0.81.0)

public static final class StreamAssistResponse.SessionInfo.Builder extends GeneratedMessage.Builder<StreamAssistResponse.SessionInfo.Builder> implements StreamAssistResponse.SessionInfoOrBuilder

Information about the session.

Protobuf type google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo

Static Methods

getDescriptor()

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

Methods

build()

public StreamAssistResponse.SessionInfo build()
Returns
Type Description
StreamAssistResponse.SessionInfo

buildPartial()

public StreamAssistResponse.SessionInfo buildPartial()
Returns
Type Description
StreamAssistResponse.SessionInfo

clear()

public StreamAssistResponse.SessionInfo.Builder clear()
Returns
Type Description
StreamAssistResponse.SessionInfo.Builder
Overrides

clearSession()

public StreamAssistResponse.SessionInfo.Builder clearSession()

Name of the newly generated or continued session.

Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}.

string session = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
StreamAssistResponse.SessionInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public StreamAssistResponse.SessionInfo getDefaultInstanceForType()
Returns
Type Description
StreamAssistResponse.SessionInfo

getDescriptorForType()

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

getSession()

public String getSession()

Name of the newly generated or continued session.

Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}.

string session = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The session.

getSessionBytes()

public ByteString getSessionBytes()

Name of the newly generated or continued session.

Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}.

string session = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for session.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamAssistResponse.SessionInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSession(String value)

public StreamAssistResponse.SessionInfo.Builder setSession(String value)

Name of the newly generated or continued session.

Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}.

string session = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The session to set.

Returns
Type Description
StreamAssistResponse.SessionInfo.Builder

This builder for chaining.

setSessionBytes(ByteString value)

public StreamAssistResponse.SessionInfo.Builder setSessionBytes(ByteString value)

Name of the newly generated or continued session.

Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}.

string session = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for session to set.

Returns
Type Description
StreamAssistResponse.SessionInfo.Builder

This builder for chaining.