Interface SessionOrBuilder (3.73.0)

public interface SessionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. Timestamp when the session was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when the session was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDisplayName()

public abstract String getDisplayName()

Optional. The display name of the session.

string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

Optional. The display name of the session.

string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getExpirationCase()

public abstract Session.ExpirationCase getExpirationCase()
Returns
Type Description
Session.ExpirationCase

getExpireTime()

public abstract Timestamp getExpireTime()

Optional. Timestamp of when this session is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeOrBuilder()

public abstract TimestampOrBuilder getExpireTimeOrBuilder()

Optional. Timestamp of when this session is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getName()

public abstract String getName()

Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getSessionState()

public abstract Struct getSessionState()

Optional. Session specific memory which stores key conversation points.

.google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The sessionState.

getSessionStateOrBuilder()

public abstract StructOrBuilder getSessionStateOrBuilder()

Optional. Session specific memory which stores key conversation points.

.google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getTtl()

public abstract Duration getTtl()

Optional. Input only. The TTL for this session.

.google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Duration

The ttl.

getTtlOrBuilder()

public abstract DurationOrBuilder getTtlOrBuilder()

Optional. Input only. The TTL for this session.

.google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. Timestamp when the session was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when the session was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUserId()

public abstract String getUserId()

Required. Immutable. String id provided by the user

string user_id = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The userId.

getUserIdBytes()

public abstract ByteString getUserIdBytes()

Required. Immutable. String id provided by the user

string user_id = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for userId.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Timestamp when the session was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasExpireTime()

public abstract boolean hasExpireTime()

Optional. Timestamp of when this session is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the expireTime field is set.

hasSessionState()

public abstract boolean hasSessionState()

Optional. Session specific memory which stores key conversation points.

.google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sessionState field is set.

hasTtl()

public abstract boolean hasTtl()

Optional. Input only. The TTL for this session.

.google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the ttl field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. Timestamp when the session was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.