Class EndSession.Builder (0.1.0)

public static final class EndSession.Builder extends GeneratedMessage.Builder<EndSession.Builder> implements EndSessionOrBuilder

Indicates the session has terminated, due to either successful completion (e.g. user says "Good bye!" ) or an agent escalation.

The agent will not process any further inputs after session is terminated and the client should half-close and disconnect after receiving all remaining responses from the agent.

Protobuf type google.cloud.ces.v1.EndSession

Implements

EndSessionOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public EndSession build()
Returns
Type Description
EndSession

buildPartial()

public EndSession buildPartial()
Returns
Type Description
EndSession

clear()

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

clearMetadata()

public EndSession.Builder clearMetadata()

Optional. Provides additional information about the end session signal, such as the reason for ending the session.

.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EndSession.Builder

getDefaultInstanceForType()

public EndSession getDefaultInstanceForType()
Returns
Type Description
EndSession

getDescriptorForType()

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

getMetadata()

public Struct getMetadata()

Optional. Provides additional information about the end session signal, such as the reason for ending the session.

.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The metadata.

getMetadataBuilder()

public Struct.Builder getMetadataBuilder()

Optional. Provides additional information about the end session signal, such as the reason for ending the session.

.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getMetadataOrBuilder()

public StructOrBuilder getMetadataOrBuilder()

Optional. Provides additional information about the end session signal, such as the reason for ending the session.

.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

hasMetadata()

public boolean hasMetadata()

Optional. Provides additional information about the end session signal, such as the reason for ending the session.

.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EndSession other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(Struct value)

public EndSession.Builder mergeMetadata(Struct value)

Optional. Provides additional information about the end session signal, such as the reason for ending the session.

.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
EndSession.Builder

setMetadata(Struct value)

public EndSession.Builder setMetadata(Struct value)

Optional. Provides additional information about the end session signal, such as the reason for ending the session.

.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
EndSession.Builder

setMetadata(Struct.Builder builderForValue)

public EndSession.Builder setMetadata(Struct.Builder builderForValue)

Optional. Provides additional information about the end session signal, such as the reason for ending the session.

.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EndSession.Builder