public static final class A2AMessage.Builder extends GeneratedMessage.Builder<A2AMessage.Builder> implements A2AMessageOrBuilderA2AMessage is one unit of communication between client and server.
Protobuf type google.cloud.geminidataanalytics.v1beta.A2AMessage
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > A2AMessage.BuilderImplements
A2AMessageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllContent(Iterable<? extends Part> values)
public A2AMessage.Builder addAllContent(Iterable<? extends Part> values)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.geminidataanalytics.v1beta.Part> |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
addAllExtensions(Iterable<String> values)
public A2AMessage.Builder addAllExtensions(Iterable<String> values)Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The extensions to add. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
addContent(Part value)
public A2AMessage.Builder addContent(Part value)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Part |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
addContent(Part.Builder builderForValue)
public A2AMessage.Builder addContent(Part.Builder builderForValue)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Part.Builder |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
addContent(int index, Part value)
public A2AMessage.Builder addContent(int index, Part value)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Part |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
addContent(int index, Part.Builder builderForValue)
public A2AMessage.Builder addContent(int index, Part.Builder builderForValue)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Part.Builder |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
addContentBuilder()
public Part.Builder addContentBuilder()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
addContentBuilder(int index)
public Part.Builder addContentBuilder(int index)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
addExtensions(String value)
public A2AMessage.Builder addExtensions(String value)Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe extensions to add. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
addExtensionsBytes(ByteString value)
public A2AMessage.Builder addExtensionsBytes(ByteString value)Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the extensions to add. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
build()
public A2AMessage build()| Returns | |
|---|---|
| Type | Description |
A2AMessage |
|
buildPartial()
public A2AMessage buildPartial()| Returns | |
|---|---|
| Type | Description |
A2AMessage |
|
clear()
public A2AMessage.Builder clear()| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
clearContent()
public A2AMessage.Builder clearContent()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
clearContextId()
public A2AMessage.Builder clearContextId()Optional. The context id of the message.
string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
clearExtensions()
public A2AMessage.Builder clearExtensions()Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
clearMessageId()
public A2AMessage.Builder clearMessageId()Optional. The unique identifier (e.g. UUID) of the message.
string message_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
clearMetadata()
public A2AMessage.Builder clearMetadata()Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
clearRole()
public A2AMessage.Builder clearRole()Optional. A role for the message.
.google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
clearTaskId()
public A2AMessage.Builder clearTaskId()Optional. The task id of the message.
string task_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
getContent(int index)
public Part getContent(int index)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Part |
|
getContentBuilder(int index)
public Part.Builder getContentBuilder(int index)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
getContentBuilderList()
public List<Part.Builder> getContentBuilderList()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getContentCount()
public int getContentCount()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getContentList()
public List<Part> getContentList()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Part> |
|
getContentOrBuilder(int index)
public PartOrBuilder getContentOrBuilder(int index)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PartOrBuilder |
|
getContentOrBuilderList()
public List<? extends PartOrBuilder> getContentOrBuilderList()Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder> |
|
getContextId()
public String getContextId()Optional. The context id of the message.
string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The contextId. |
getContextIdBytes()
public ByteString getContextIdBytes()Optional. The context id of the message.
string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contextId. |
getDefaultInstanceForType()
public A2AMessage getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
A2AMessage |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExtensions(int index)
public String getExtensions(int index)Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The extensions at the given index. |
getExtensionsBytes(int index)
public ByteString getExtensionsBytes(int index)Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the extensions at the given index. |
getExtensionsCount()
public int getExtensionsCount()Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of extensions. |
getExtensionsList()
public ProtocolStringList getExtensionsList()Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the extensions. |
getMessageId()
public String getMessageId()Optional. The unique identifier (e.g. UUID) of the message.
string message_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The messageId. |
getMessageIdBytes()
public ByteString getMessageIdBytes()Optional. The unique identifier (e.g. UUID) of the message.
string message_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for messageId. |
getMetadata()
public Struct getMetadata()Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The metadata. |
getMetadataBuilder()
public Struct.Builder getMetadataBuilder()Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMetadataOrBuilder()
public StructOrBuilder getMetadataOrBuilder()Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getRole()
public Role getRole()Optional. A role for the message.
.google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Role |
The role. |
getRoleValue()
public int getRoleValue()Optional. A role for the message.
.google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for role. |
getTaskId()
public String getTaskId()Optional. The task id of the message.
string task_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The taskId. |
getTaskIdBytes()
public ByteString getTaskIdBytes()Optional. The task id of the message.
string task_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for taskId. |
hasMetadata()
public boolean hasMetadata()Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the metadata field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(A2AMessage other)
public A2AMessage.Builder mergeFrom(A2AMessage other)| Parameter | |
|---|---|
| Name | Description |
other |
A2AMessage |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public A2AMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public A2AMessage.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
mergeMetadata(Struct value)
public A2AMessage.Builder mergeMetadata(Struct value)Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
removeContent(int index)
public A2AMessage.Builder removeContent(int index)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
setContent(int index, Part value)
public A2AMessage.Builder setContent(int index, Part value)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Part |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
setContent(int index, Part.Builder builderForValue)
public A2AMessage.Builder setContent(int index, Part.Builder builderForValue)Optional. Content is the container of the message content.
repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Part.Builder |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
setContextId(String value)
public A2AMessage.Builder setContextId(String value)Optional. The context id of the message.
string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contextId to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
setContextIdBytes(ByteString value)
public A2AMessage.Builder setContextIdBytes(ByteString value)Optional. The context id of the message.
string context_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contextId to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
setExtensions(int index, String value)
public A2AMessage.Builder setExtensions(int index, String value)Optional. The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe extensions to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
setMessageId(String value)
public A2AMessage.Builder setMessageId(String value)Optional. The unique identifier (e.g. UUID) of the message.
string message_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe messageId to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
setMessageIdBytes(ByteString value)
public A2AMessage.Builder setMessageIdBytes(ByteString value)Optional. The unique identifier (e.g. UUID) of the message.
string message_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for messageId to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
setMetadata(Struct value)
public A2AMessage.Builder setMetadata(Struct value)Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
setMetadata(Struct.Builder builderForValue)
public A2AMessage.Builder setMetadata(Struct.Builder builderForValue)Optional. Any optional metadata to provide along with the message.
.google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
|
setRole(Role value)
public A2AMessage.Builder setRole(Role value)Optional. A role for the message.
.google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RoleThe role to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
setRoleValue(int value)
public A2AMessage.Builder setRoleValue(int value)Optional. A role for the message.
.google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for role to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
setTaskId(String value)
public A2AMessage.Builder setTaskId(String value)Optional. The task id of the message.
string task_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe taskId to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |
setTaskIdBytes(ByteString value)
public A2AMessage.Builder setTaskIdBytes(ByteString value)Optional. The task id of the message.
string task_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for taskId to set. |
| Returns | |
|---|---|
| Type | Description |
A2AMessage.Builder |
This builder for chaining. |