public final class ChatRequest extends GeneratedMessageV3 implements ChatRequestOrBuilder
Request for Chat.
Protobuf type google.cloud.geminidataanalytics.v1beta.ChatRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONVERSATION_REFERENCE_FIELD_NUMBER
public static final int CONVERSATION_REFERENCE_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 |
|
INLINE_CONTEXT_FIELD_NUMBER
public static final int INLINE_CONTEXT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PROJECT_FIELD_NUMBER
public static final int PROJECT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ChatRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ChatRequest.Builder newBuilder()
newBuilder(ChatRequest prototype)
public static ChatRequest.Builder newBuilder(ChatRequest prototype)
public static ChatRequest parseDelimitedFrom(InputStream input)
public static ChatRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ChatRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ChatRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ChatRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChatRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChatRequest parseFrom(CodedInputStream input)
public static ChatRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ChatRequest parseFrom(InputStream input)
public static ChatRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ChatRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ChatRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ChatRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getContextProviderCase()
public ChatRequest.ContextProviderCase getContextProviderCase()
getConversationReference()
public 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];
getConversationReferenceOrBuilder()
public 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];
getDataAgentContext()
public 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];
getDataAgentContextOrBuilder()
public 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];
getDefaultInstanceForType()
public ChatRequest getDefaultInstanceForType()
getInlineContext()
public 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 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];
getMessages(int index)
public 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
|
getMessagesCount()
public 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 List<Message> getMessagesList()
Required. Content of current conversation.
repeated .google.cloud.geminidataanalytics.v1beta.Message messages = 2 [(.google.api.field_behavior) = REQUIRED];
getMessagesOrBuilder(int index)
public 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
|
getMessagesOrBuilderList()
public 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 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 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.
|
getParserForType()
public Parser<ChatRequest> getParserForType()
Overrides
getProject() (deprecated)
public String getProject()
Deprecated. google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See
google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164
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 ByteString getProjectBytes()
Deprecated. google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See
google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=164
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.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasConversationReference()
public 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 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 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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ChatRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ChatRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ChatRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides