Package org.a2aproject.sdk.grpc
Class TaskArtifactUpdateEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TaskArtifactUpdateEvent.Builder>
org.a2aproject.sdk.grpc.TaskArtifactUpdateEvent.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,TaskArtifactUpdateEventOrBuilder
- Enclosing class:
- TaskArtifactUpdateEvent
public static final class TaskArtifactUpdateEvent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TaskArtifactUpdateEvent.Builder>
implements TaskArtifactUpdateEventOrBuilder
A task delta where an artifact has been generated.Protobuf type
lf.a2a.v1.TaskArtifactUpdateEvent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If true, the content of this artifact should be appended to a previously sent artifact with the same ID.The artifact that was generated or updated.The ID of the context that this task belongs to.If true, this is the final chunk of the artifact.Optional.The ID of the task for this artifact.booleanIf true, the content of this artifact should be appended to a previously sent artifact with the same ID.The artifact that was generated or updated.The artifact that was generated or updated.The artifact that was generated or updated.The ID of the context that this task belongs to.com.google.protobuf.ByteStringThe ID of the context that this task belongs to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, this is the final chunk of the artifact.com.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.The ID of the task for this artifact.com.google.protobuf.ByteStringThe ID of the task for this artifact.booleanThe artifact that was generated or updated.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeArtifact(Artifact value) The artifact that was generated or updated.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TaskArtifactUpdateEvent other) mergeMetadata(com.google.protobuf.Struct value) Optional.setAppend(boolean value) If true, the content of this artifact should be appended to a previously sent artifact with the same ID.setArtifact(Artifact value) The artifact that was generated or updated.setArtifact(Artifact.Builder builderForValue) The artifact that was generated or updated.setContextId(String value) The ID of the context that this task belongs to.setContextIdBytes(com.google.protobuf.ByteString value) The ID of the context that this task belongs to.setLastChunk(boolean value) If true, this is the final chunk of the artifact.setMetadata(com.google.protobuf.Struct value) Optional.setMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional.The ID of the task for this artifact.setTaskIdBytes(com.google.protobuf.ByteString value) The ID of the task for this artifact.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TaskArtifactUpdateEvent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TaskArtifactUpdateEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TaskArtifactUpdateEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskArtifactUpdateEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TaskArtifactUpdateEvent.Builder>
-
mergeFrom
public TaskArtifactUpdateEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskArtifactUpdateEvent.Builder>- Throws:
IOException
-
getTaskId
The ID of the task for this artifact.
string task_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTaskIdin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The taskId.
-
getTaskIdBytes
public com.google.protobuf.ByteString getTaskIdBytes()The ID of the task for this artifact.
string task_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTaskIdBytesin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The bytes for taskId.
-
setTaskId
The ID of the task for this artifact.
string task_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The taskId to set.- Returns:
- This builder for chaining.
-
clearTaskId
The ID of the task for this artifact.
string task_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTaskIdBytes
The ID of the task for this artifact.
string task_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for taskId to set.- Returns:
- This builder for chaining.
-
getContextId
The ID of the context that this task belongs to.
string context_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContextIdin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The contextId.
-
getContextIdBytes
public com.google.protobuf.ByteString getContextIdBytes()The ID of the context that this task belongs to.
string context_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContextIdBytesin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The bytes for contextId.
-
setContextId
The ID of the context that this task belongs to.
string context_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The contextId to set.- Returns:
- This builder for chaining.
-
clearContextId
The ID of the context that this task belongs to.
string context_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setContextIdBytes
The ID of the context that this task belongs to.
string context_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for contextId to set.- Returns:
- This builder for chaining.
-
hasArtifact
public boolean hasArtifact()The artifact that was generated or updated.
.lf.a2a.v1.Artifact artifact = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasArtifactin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- Whether the artifact field is set.
-
getArtifact
The artifact that was generated or updated.
.lf.a2a.v1.Artifact artifact = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getArtifactin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The artifact.
-
setArtifact
The artifact that was generated or updated.
.lf.a2a.v1.Artifact artifact = 3 [(.google.api.field_behavior) = REQUIRED]; -
setArtifact
The artifact that was generated or updated.
.lf.a2a.v1.Artifact artifact = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeArtifact
The artifact that was generated or updated.
.lf.a2a.v1.Artifact artifact = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearArtifact
The artifact that was generated or updated.
.lf.a2a.v1.Artifact artifact = 3 [(.google.api.field_behavior) = REQUIRED]; -
getArtifactBuilder
The artifact that was generated or updated.
.lf.a2a.v1.Artifact artifact = 3 [(.google.api.field_behavior) = REQUIRED]; -
getArtifactOrBuilder
The artifact that was generated or updated.
.lf.a2a.v1.Artifact artifact = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getArtifactOrBuilderin interfaceTaskArtifactUpdateEventOrBuilder
-
getAppend
public boolean getAppend()If true, the content of this artifact should be appended to a previously sent artifact with the same ID.
bool append = 4;- Specified by:
getAppendin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The append.
-
setAppend
If true, the content of this artifact should be appended to a previously sent artifact with the same ID.
bool append = 4;- Parameters:
value- The append to set.- Returns:
- This builder for chaining.
-
clearAppend
If true, the content of this artifact should be appended to a previously sent artifact with the same ID.
bool append = 4;- Returns:
- This builder for chaining.
-
getLastChunk
public boolean getLastChunk()If true, this is the final chunk of the artifact.
bool last_chunk = 5;- Specified by:
getLastChunkin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The lastChunk.
-
setLastChunk
If true, this is the final chunk of the artifact.
bool last_chunk = 5;- Parameters:
value- The lastChunk to set.- Returns:
- This builder for chaining.
-
clearLastChunk
If true, this is the final chunk of the artifact.
bool last_chunk = 5;- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()Optional. Metadata associated with the artifact update.
.google.protobuf.Struct metadata = 6;- Specified by:
hasMetadatain interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata()Optional. Metadata associated with the artifact update.
.google.protobuf.Struct metadata = 6;- Specified by:
getMetadatain interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The metadata.
-
setMetadata
Optional. Metadata associated with the artifact update.
.google.protobuf.Struct metadata = 6; -
setMetadata
public TaskArtifactUpdateEvent.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional. Metadata associated with the artifact update.
.google.protobuf.Struct metadata = 6; -
mergeMetadata
Optional. Metadata associated with the artifact update.
.google.protobuf.Struct metadata = 6; -
clearMetadata
Optional. Metadata associated with the artifact update.
.google.protobuf.Struct metadata = 6; -
getMetadataBuilder
public com.google.protobuf.Struct.Builder getMetadataBuilder()Optional. Metadata associated with the artifact update.
.google.protobuf.Struct metadata = 6; -
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Optional. Metadata associated with the artifact update.
.google.protobuf.Struct metadata = 6;- Specified by:
getMetadataOrBuilderin interfaceTaskArtifactUpdateEventOrBuilder
-