Package org.a2aproject.sdk.compat03.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.compat03.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
TaskArtifactUpdateEvent represents a task delta where an artifact has been generated.Protobuf type
a2a.v1.TaskArtifactUpdateEvent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Whether this should be appended to a prior one producedThe artifact itselfThe id of the context that this task belongs tooWhether this represents the last part of an artifactOptional metadata associated with the artifact update.The id of the task for this artifactbooleanWhether this should be appended to a prior one producedThe artifact itselfThe artifact itselfThe artifact itselfThe id of the context that this task belongs toocom.google.protobuf.ByteStringThe id of the context that this task belongs toostatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether this represents the last part of an artifactcom.google.protobuf.StructOptional metadata associated with the artifact update.com.google.protobuf.Struct.BuilderOptional metadata associated with the artifact update.com.google.protobuf.StructOrBuilderOptional metadata associated with the artifact update.The id of the task for this artifactcom.google.protobuf.ByteStringThe id of the task for this artifactbooleanThe artifact itselfbooleanOptional metadata associated with the artifact update.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeArtifact(Artifact value) The artifact itselfmergeFrom(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 metadata associated with the artifact update.setAppend(boolean value) Whether this should be appended to a prior one producedsetArtifact(Artifact value) The artifact itselfsetArtifact(Artifact.Builder builderForValue) The artifact itselfsetContextId(String value) The id of the context that this task belongs toosetContextIdBytes(com.google.protobuf.ByteString value) The id of the context that this task belongs toosetLastChunk(boolean value) Whether this represents the last part of an artifactsetMetadata(com.google.protobuf.Struct value) Optional metadata associated with the artifact update.setMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional metadata associated with the artifact update.The id of the task for this artifactsetTaskIdBytes(com.google.protobuf.ByteString value) The id of the task for this artifactMethods 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;- 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;- Specified by:
getTaskIdBytesin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The bytes for taskId.
-
setTaskId
The id of the task for this artifact
string task_id = 1;- Parameters:
value- The taskId to set.- Returns:
- This builder for chaining.
-
clearTaskId
The id of the task for this artifact
string task_id = 1;- Returns:
- This builder for chaining.
-
setTaskIdBytes
The id of the task for this artifact
string task_id = 1;- Parameters:
value- The bytes for taskId to set.- Returns:
- This builder for chaining.
-
getContextId
The id of the context that this task belongs too
string context_id = 2;- Specified by:
getContextIdin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The contextId.
-
getContextIdBytes
public com.google.protobuf.ByteString getContextIdBytes()The id of the context that this task belongs too
string context_id = 2;- Specified by:
getContextIdBytesin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The bytes for contextId.
-
setContextId
The id of the context that this task belongs too
string context_id = 2;- Parameters:
value- The contextId to set.- Returns:
- This builder for chaining.
-
clearContextId
The id of the context that this task belongs too
string context_id = 2;- Returns:
- This builder for chaining.
-
setContextIdBytes
The id of the context that this task belongs too
string context_id = 2;- Parameters:
value- The bytes for contextId to set.- Returns:
- This builder for chaining.
-
hasArtifact
public boolean hasArtifact()The artifact itself
.a2a.v1.Artifact artifact = 3;- Specified by:
hasArtifactin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- Whether the artifact field is set.
-
getArtifact
The artifact itself
.a2a.v1.Artifact artifact = 3;- Specified by:
getArtifactin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The artifact.
-
setArtifact
The artifact itself
.a2a.v1.Artifact artifact = 3; -
setArtifact
The artifact itself
.a2a.v1.Artifact artifact = 3; -
mergeArtifact
The artifact itself
.a2a.v1.Artifact artifact = 3; -
clearArtifact
The artifact itself
.a2a.v1.Artifact artifact = 3; -
getArtifactBuilder
The artifact itself
.a2a.v1.Artifact artifact = 3; -
getArtifactOrBuilder
The artifact itself
.a2a.v1.Artifact artifact = 3;- Specified by:
getArtifactOrBuilderin interfaceTaskArtifactUpdateEventOrBuilder
-
getAppend
public boolean getAppend()Whether this should be appended to a prior one produced
bool append = 4;- Specified by:
getAppendin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The append.
-
setAppend
Whether this should be appended to a prior one produced
bool append = 4;- Parameters:
value- The append to set.- Returns:
- This builder for chaining.
-
clearAppend
Whether this should be appended to a prior one produced
bool append = 4;- Returns:
- This builder for chaining.
-
getLastChunk
public boolean getLastChunk()Whether this represents the last part of an artifact
bool last_chunk = 5;- Specified by:
getLastChunkin interfaceTaskArtifactUpdateEventOrBuilder- Returns:
- The lastChunk.
-
setLastChunk
Whether this represents the last part of an artifact
bool last_chunk = 5;- Parameters:
value- The lastChunk to set.- Returns:
- This builder for chaining.
-
clearLastChunk
Whether this represents the last part of an 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
-