Class GetSessionRequest.Builder (0.81.0)

public static final class GetSessionRequest.Builder extends GeneratedMessage.Builder<GetSessionRequest.Builder> implements GetSessionRequestOrBuilder

Request for GetSession method.

Protobuf type google.cloud.discoveryengine.v1.GetSessionRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetSessionRequest build()
Returns
Type Description
GetSessionRequest

buildPartial()

public GetSessionRequest buildPartial()
Returns
Type Description
GetSessionRequest

clear()

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

clearIncludeAnswerDetails()

public GetSessionRequest.Builder clearIncludeAnswerDetails()

Optional. If set to true, the full session including all answer details will be returned.

bool include_answer_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetSessionRequest.Builder

This builder for chaining.

clearName()

public GetSessionRequest.Builder clearName()

Required. The resource name of the Session to get. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetSessionRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetSessionRequest getDefaultInstanceForType()
Returns
Type Description
GetSessionRequest

getDescriptorForType()

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

getIncludeAnswerDetails()

public boolean getIncludeAnswerDetails()

Optional. If set to true, the full session including all answer details will be returned.

bool include_answer_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The includeAnswerDetails.

getName()

public String getName()

Required. The resource name of the Session to get. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the Session to get. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetSessionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setIncludeAnswerDetails(boolean value)

public GetSessionRequest.Builder setIncludeAnswerDetails(boolean value)

Optional. If set to true, the full session including all answer details will be returned.

bool include_answer_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The includeAnswerDetails to set.

Returns
Type Description
GetSessionRequest.Builder

This builder for chaining.

setName(String value)

public GetSessionRequest.Builder setName(String value)

Required. The resource name of the Session to get. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetSessionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetSessionRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the Session to get. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetSessionRequest.Builder

This builder for chaining.