Interface CreateContextRequestOrBuilder (4.4.0)

public interface CreateContextRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContext()

public abstract Context getContext()

Required. The context to create.

.google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Context

The context.

getContextOrBuilder()

public abstract ContextOrBuilder getContextOrBuilder()

Required. The context to create.

.google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ContextOrBuilder

getParent()

public abstract String getParent()

Required. The session to create a context for. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The session to create a context for. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasContext()

public abstract boolean hasContext()

Required. The context to create.

.google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the context field is set.