public final class ConversationReference extends GeneratedMessage implements ConversationReferenceOrBuilderReference to a persisted conversation and agent context.
Protobuf type google.cloud.geminidataanalytics.v1.ConversationReference
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ConversationReferenceImplements
ConversationReferenceOrBuilderStatic Fields
CONVERSATION_FIELD_NUMBER
public static final int CONVERSATION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DATA_AGENT_CONTEXT_FIELD_NUMBER
public static final int DATA_AGENT_CONTEXT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ConversationReference getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ConversationReference.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
newBuilder(ConversationReference prototype)
public static ConversationReference.Builder newBuilder(ConversationReference prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ConversationReference |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
parseDelimitedFrom(InputStream input)
public static ConversationReference parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ConversationReference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ConversationReference parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConversationReference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ConversationReference parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConversationReference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ConversationReference parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ConversationReference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ConversationReference parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ConversationReference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ConversationReference parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConversationReference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ConversationReference> parser()| Returns | |
|---|---|
| Type | Description |
Parser<ConversationReference> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataAgentContext |
The dataAgentContext. |
getDataAgentContextOrBuilder()
public DataAgentContextOrBuilder getDataAgentContextOrBuilder()Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataAgentContextOrBuilder |
|
getDefaultInstanceForType()
public ConversationReference getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ConversationReference |
|
getParserForType()
public Parser<ConversationReference> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<ConversationReference> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasDataAgentContext()
public boolean hasDataAgentContext()Required. Context for the chat request using a data agent.
.google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dataAgentContext field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ConversationReference.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ConversationReference.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
toBuilder()
public ConversationReference.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ConversationReference.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|