public final class Conversation extends GeneratedMessageV3 implements ConversationOrBuilder
Message for a conversation.
Protobuf type google.cloud.geminidataanalytics.v1beta.Conversation
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
AGENTS_FIELD_NUMBER
public static final int AGENTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LAST_USED_TIME_FIELD_NUMBER
public static final int LAST_USED_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Conversation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Conversation.Builder newBuilder()
newBuilder(Conversation prototype)
public static Conversation.Builder newBuilder(Conversation prototype)
public static Conversation parseDelimitedFrom(InputStream input)
public static Conversation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Conversation parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Conversation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(CodedInputStream input)
public static Conversation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(InputStream input)
public static Conversation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Conversation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Conversation> parser()
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Optional. Open-ended and user-defined labels that can be set by the client
to tag a conversation (e.g. to filter conversations for specific
surfaces/products).
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAgents(int index)
public String getAgents(int index)
Required. Agent(s) in the conversation.
Currently, only one agent is supported. This field is repeated to allow
for future support of multiple agents in a conversation.
Format: projects/{project}/locations/{location}/dataAgents/{agent}
repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The agents at the given index.
|
getAgentsBytes(int index)
public ByteString getAgentsBytes(int index)
Required. Agent(s) in the conversation.
Currently, only one agent is supported. This field is repeated to allow
for future support of multiple agents in a conversation.
Format: projects/{project}/locations/{location}/dataAgents/{agent}
repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the agents at the given index.
|
getAgentsCount()
public int getAgentsCount()
Required. Agent(s) in the conversation.
Currently, only one agent is supported. This field is repeated to allow
for future support of multiple agents in a conversation.
Format: projects/{project}/locations/{location}/dataAgents/{agent}
repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The count of agents.
|
getAgentsList()
public ProtocolStringList getAgentsList()
Required. Agent(s) in the conversation.
Currently, only one agent is supported. This field is repeated to allow
for future support of multiple agents in a conversation.
Format: projects/{project}/locations/{location}/dataAgents/{agent}
repeated string agents = 2 [(.google.api.field_behavior) = REQUIRED];
getCreateTime()
public Timestamp getCreateTime()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Conversation getDefaultInstanceForType()
getLabels() (deprecated)
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Optional. Open-ended and user-defined labels that can be set by the client
to tag a conversation (e.g. to filter conversations for specific
surfaces/products).
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. Open-ended and user-defined labels that can be set by the client
to tag a conversation (e.g. to filter conversations for specific
surfaces/products).
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. Open-ended and user-defined labels that can be set by the client
to tag a conversation (e.g. to filter conversations for specific
surfaces/products).
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. Open-ended and user-defined labels that can be set by the client
to tag a conversation (e.g. to filter conversations for specific
surfaces/products).
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getLastUsedTime()
public Timestamp getLastUsedTime()
Output only. Timestamp of the last used conversation.
.google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Timestamp |
The lastUsedTime.
|
getLastUsedTimeOrBuilder()
public TimestampOrBuilder getLastUsedTimeOrBuilder()
Output only. Timestamp of the last used conversation.
.google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getName()
Optional. Identifier. The unique resource name of a conversation. Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
{conversation_id}
is the resource id and should be 63 characters or less
and must match the format described in
https://google.aip.dev/122#resource-id-segments
Example:
projects/1234567890/locations/us-central1/conversations/my-conversation
.
It is recommended to skip setting this field during conversation creation
as it will be inferred automatically and overwritten with the
{parent}/conversations/{conversation_id}.
string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Optional. Identifier. The unique resource name of a conversation. Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
{conversation_id}
is the resource id and should be 63 characters or less
and must match the format described in
https://google.aip.dev/122#resource-id-segments
Example:
projects/1234567890/locations/us-central1/conversations/my-conversation
.
It is recommended to skip setting this field during conversation creation
as it will be inferred automatically and overwritten with the
{parent}/conversations/{conversation_id}.
string name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Conversation> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasCreateTime()
public boolean hasCreateTime()
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the createTime field is set.
|
hasLastUsedTime()
public boolean hasLastUsedTime()
Output only. Timestamp of the last used conversation.
.google.protobuf.Timestamp last_used_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the lastUsedTime field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Conversation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Conversation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Conversation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides