public static final class ConversationReference.Builder extends GeneratedMessage.Builder<ConversationReference.Builder> implements ConversationReferenceOrBuilderReference to a persisted conversation and agent context.
Protobuf type google.cloud.geminidataanalytics.v1beta.ConversationReference
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ConversationReference.BuilderImplements
ConversationReferenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ConversationReference build()| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
buildPartial()
public ConversationReference buildPartial()| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
clear()
public ConversationReference.Builder clear()| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
clearConversation()
public ConversationReference.Builder clearConversation() Required. Name of the conversation resource.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
This builder for chaining. |
clearDataAgentContext()
public ConversationReference.Builder clearDataAgentContext()Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
getConversation()
public String getConversation() Required. Name of the conversation resource.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The conversation. |
getConversationBytes()
public ByteString getConversationBytes() Required. Name of the conversation resource.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for conversation. |
getDataAgentContext()
public DataAgentContext getDataAgentContext()Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataAgentContext |
The dataAgentContext. |
getDataAgentContextBuilder()
public DataAgentContext.Builder getDataAgentContextBuilder()Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataAgentContext.Builder |
|
getDataAgentContextOrBuilder()
public DataAgentContextOrBuilder getDataAgentContextOrBuilder()Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataAgentContextOrBuilder |
|
getDefaultInstanceForType()
public ConversationReference getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
hasDataAgentContext()
public boolean hasDataAgentContext()Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dataAgentContext field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDataAgentContext(DataAgentContext value)
public ConversationReference.Builder mergeDataAgentContext(DataAgentContext value)Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
DataAgentContext |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
mergeFrom(ConversationReference other)
public ConversationReference.Builder mergeFrom(ConversationReference other)| Parameter | |
|---|---|
| Name | Description |
other |
ConversationReference |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConversationReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ConversationReference.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
setConversation(String value)
public ConversationReference.Builder setConversation(String value) Required. Name of the conversation resource.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe conversation to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
This builder for chaining. |
setConversationBytes(ByteString value)
public ConversationReference.Builder setConversationBytes(ByteString value) Required. Name of the conversation resource.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for conversation to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
This builder for chaining. |
setDataAgentContext(DataAgentContext value)
public ConversationReference.Builder setDataAgentContext(DataAgentContext value)Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
DataAgentContext |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
setDataAgentContext(DataAgentContext.Builder builderForValue)
public ConversationReference.Builder setDataAgentContext(DataAgentContext.Builder builderForValue)Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1beta.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DataAgentContext.Builder |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|