public interface ChatRequestOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getClientManagedResourceContext()
public abstract ClientManagedResourceContext getClientManagedResourceContext()Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ClientManagedResourceContext |
The clientManagedResourceContext. |
getClientManagedResourceContextOrBuilder()
public abstract ClientManagedResourceContextOrBuilder getClientManagedResourceContextOrBuilder()Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ClientManagedResourceContextOrBuilder |
|
getContextProviderCase()
public abstract ChatRequest.ContextProviderCase getContextProviderCase()| Returns | |
|---|---|
| Type | Description |
ChatRequest.ContextProviderCase |
|
getConversationReference()
public abstract ConversationReference getConversationReference()Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
.google.cloud.geminidataanalytics.v1beta.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
The conversationReference. |
getConversationReferenceOrBuilder()
public abstract ConversationReferenceOrBuilder getConversationReferenceOrBuilder()Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
.google.cloud.geminidataanalytics.v1beta.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationReferenceOrBuilder |
|
getDataAgentContext()
public abstract DataAgentContext getDataAgentContext()Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataAgentContext |
The dataAgentContext. |
getDataAgentContextOrBuilder()
public abstract DataAgentContextOrBuilder getDataAgentContextOrBuilder()Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataAgentContextOrBuilder |
|
getInlineContext()
public abstract Context getInlineContext()Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.
.google.cloud.geminidataanalytics.v1beta.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Context |
The inlineContext. |
getInlineContextOrBuilder()
public abstract ContextOrBuilder getInlineContextOrBuilder()Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.
.google.cloud.geminidataanalytics.v1beta.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ContextOrBuilder |
|
getMessages(int index)
public abstract Message getMessages(int index)Required. Content of current conversation.
repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Message |
|
getMessagesCount()
public abstract int getMessagesCount()Required. Content of current conversation.
repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
|
getMessagesList()
public abstract List<Message> getMessagesList()Required. Content of current conversation.
repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Message> |
|
getMessagesOrBuilder(int index)
public abstract MessageOrBuilder getMessagesOrBuilder(int index)Required. Content of current conversation.
repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MessageOrBuilder |
|
getMessagesOrBuilderList()
public abstract List<? extends MessageOrBuilder> getMessagesOrBuilderList()Required. Content of current conversation.
repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.geminidataanalytics.v1beta.MessageOrBuilder> |
|
getParent()
public abstract String getParent() Required. The parent value for chat request.
Pattern: projects/{project}/locations/{location}
string parent = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public abstract ByteString getParentBytes() Required. The parent value for chat request.
Pattern: projects/{project}/locations/{location}
string parent = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getProject() (deprecated)
public abstract String getProject()Deprecated. google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316
Optional. The Google Cloud project to be used for quota and billing.
string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The project. |
getProjectBytes() (deprecated)
public abstract ByteString getProjectBytes()Deprecated. google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316
Optional. The Google Cloud project to be used for quota and billing.
string project = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for project. |
hasClientManagedResourceContext()
public abstract boolean hasClientManagedResourceContext()Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext client_managed_resource_context = 105 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the clientManagedResourceContext field is set. |
hasConversationReference()
public abstract boolean hasConversationReference()Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
.google.cloud.geminidataanalytics.v1beta.ConversationReference conversation_reference = 103 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the conversationReference field is set. |
hasDataAgentContext()
public abstract boolean hasDataAgentContext()Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 104 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dataAgentContext field is set. |
hasInlineContext()
public abstract boolean hasInlineContext()Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.
.google.cloud.geminidataanalytics.v1beta.Context inline_context = 101 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inlineContext field is set. |