Class AgentSession.Builder (2.103.0)

public static final class AgentSession.Builder extends GeneratedMessage.Builder<AgentSession.Builder> implements AgentSessionOrBuilder

Represents a conversational session where the finding occurred.

Protobuf type google.cloud.securitycenter.v1.AgentSession

Static Methods

getDescriptor()

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

Methods

build()

public AgentSession build()
Returns
Type Description
AgentSession

buildPartial()

public AgentSession buildPartial()
Returns
Type Description
AgentSession

clear()

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

clearSessionId()

public AgentSession.Builder clearSessionId()

The session ID of a conversation.

string session_id = 1;

Returns
Type Description
AgentSession.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentSession getDefaultInstanceForType()
Returns
Type Description
AgentSession

getDescriptorForType()

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

getSessionId()

public String getSessionId()

The session ID of a conversation.

string session_id = 1;

Returns
Type Description
String

The sessionId.

getSessionIdBytes()

public ByteString getSessionIdBytes()

The session ID of a conversation.

string session_id = 1;

Returns
Type Description
ByteString

The bytes for sessionId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentSession other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSessionId(String value)

public AgentSession.Builder setSessionId(String value)

The session ID of a conversation.

string session_id = 1;

Parameter
Name Description
value String

The sessionId to set.

Returns
Type Description
AgentSession.Builder

This builder for chaining.

setSessionIdBytes(ByteString value)

public AgentSession.Builder setSessionIdBytes(ByteString value)

The session ID of a conversation.

string session_id = 1;

Parameter
Name Description
value ByteString

The bytes for sessionId to set.

Returns
Type Description
AgentSession.Builder

This builder for chaining.