public static final class SessionConfig.Builder extends GeneratedMessage.Builder<SessionConfig.Builder> implements SessionConfigOrBuilderConfiguration for the session.
Protobuf type google.cloud.discoveryengine.v1.SessionConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SessionConfig.BuilderImplements
SessionConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SessionConfig build()| Returns | |
|---|---|
| Type | Description |
SessionConfig |
|
buildPartial()
public SessionConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
SessionConfig |
|
clear()
public SessionConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
|
clearSessionManagementPolicy()
public SessionConfig.Builder clearSessionManagementPolicy()Optional. Session management policy that defines who will manage the session.
.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
This builder for chaining. |
clearSessionTtl()
public SessionConfig.Builder clearSessionTtl()Optional. The TTL for the session. If unset, the default value is 60 days.
.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
|
getDefaultInstanceForType()
public SessionConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SessionConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSessionManagementPolicy()
public SessionConfig.SessionManagementPolicy getSessionManagementPolicy()Optional. Session management policy that defines who will manage the session.
.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SessionConfig.SessionManagementPolicy |
The sessionManagementPolicy. |
getSessionManagementPolicyValue()
public int getSessionManagementPolicyValue()Optional. Session management policy that defines who will manage the session.
.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for sessionManagementPolicy. |
getSessionTtl()
public SessionConfig.SessionTtl getSessionTtl()Optional. The TTL for the session. If unset, the default value is 60 days.
.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SessionConfig.SessionTtl |
The sessionTtl. |
getSessionTtlBuilder()
public SessionConfig.SessionTtl.Builder getSessionTtlBuilder()Optional. The TTL for the session. If unset, the default value is 60 days.
.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SessionConfig.SessionTtl.Builder |
|
getSessionTtlOrBuilder()
public SessionConfig.SessionTtlOrBuilder getSessionTtlOrBuilder()Optional. The TTL for the session. If unset, the default value is 60 days.
.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SessionConfig.SessionTtlOrBuilder |
|
hasSessionTtl()
public boolean hasSessionTtl()Optional. The TTL for the session. If unset, the default value is 60 days.
.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sessionTtl field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SessionConfig other)
public SessionConfig.Builder mergeFrom(SessionConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
SessionConfig |
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SessionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SessionConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
|
mergeSessionTtl(SessionConfig.SessionTtl value)
public SessionConfig.Builder mergeSessionTtl(SessionConfig.SessionTtl value)Optional. The TTL for the session. If unset, the default value is 60 days.
.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SessionConfig.SessionTtl |
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
|
setSessionManagementPolicy(SessionConfig.SessionManagementPolicy value)
public SessionConfig.Builder setSessionManagementPolicy(SessionConfig.SessionManagementPolicy value)Optional. Session management policy that defines who will manage the session.
.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SessionConfig.SessionManagementPolicyThe sessionManagementPolicy to set. |
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
This builder for chaining. |
setSessionManagementPolicyValue(int value)
public SessionConfig.Builder setSessionManagementPolicyValue(int value)Optional. Session management policy that defines who will manage the session.
.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for sessionManagementPolicy to set. |
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
This builder for chaining. |
setSessionTtl(SessionConfig.SessionTtl value)
public SessionConfig.Builder setSessionTtl(SessionConfig.SessionTtl value)Optional. The TTL for the session. If unset, the default value is 60 days.
.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SessionConfig.SessionTtl |
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
|
setSessionTtl(SessionConfig.SessionTtl.Builder builderForValue)
public SessionConfig.Builder setSessionTtl(SessionConfig.SessionTtl.Builder builderForValue)Optional. The TTL for the session. If unset, the default value is 60 days.
.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SessionConfig.SessionTtl.Builder |
| Returns | |
|---|---|
| Type | Description |
SessionConfig.Builder |
|