Package org.a2aproject.sdk.compat03.grpc
Class TaskStatusUpdateEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder>
org.a2aproject.sdk.compat03.grpc.TaskStatusUpdateEvent.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,TaskStatusUpdateEventOrBuilder
- Enclosing class:
- TaskStatusUpdateEvent
public static final class TaskStatusUpdateEvent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder>
implements TaskStatusUpdateEventOrBuilder
TaskStatusUpdateEvent is a delta even on a task indicating that a task has changed.Protobuf type
a2a.v1.TaskStatusUpdateEvent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The id of the context that the task belongs toWhether this is the last status update expected for this task.Optional metadata to associate with the task update.The new status of the task.The id of the task that is changedThe id of the context that the task belongs tocom.google.protobuf.ByteStringThe id of the context that the task belongs tostatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleangetFinal()Whether this is the last status update expected for this task.com.google.protobuf.StructOptional metadata to associate with the task update.com.google.protobuf.Struct.BuilderOptional metadata to associate with the task update.com.google.protobuf.StructOrBuilderOptional metadata to associate with the task update.The new status of the task.The new status of the task.The new status of the task.The id of the task that is changedcom.google.protobuf.ByteStringThe id of the task that is changedbooleanOptional metadata to associate with the task update.booleanThe new status of the task.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TaskStatusUpdateEvent other) mergeMetadata(com.google.protobuf.Struct value) Optional metadata to associate with the task update.mergeStatus(TaskStatus value) The new status of the task.setContextId(String value) The id of the context that the task belongs tosetContextIdBytes(com.google.protobuf.ByteString value) The id of the context that the task belongs tosetFinal(boolean value) Whether this is the last status update expected for this task.setMetadata(com.google.protobuf.Struct value) Optional metadata to associate with the task update.setMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional metadata to associate with the task update.setStatus(TaskStatus value) The new status of the task.setStatus(TaskStatus.Builder builderForValue) The new status of the task.The id of the task that is changedsetTaskIdBytes(com.google.protobuf.ByteString value) The id of the task that is changedMethods 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<TaskStatusUpdateEvent.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<TaskStatusUpdateEvent.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<TaskStatusUpdateEvent.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<TaskStatusUpdateEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TaskStatusUpdateEvent.Builder>
-
mergeFrom
public TaskStatusUpdateEvent.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<TaskStatusUpdateEvent.Builder>- Throws:
IOException
-
getTaskId
The id of the task that is changed
string task_id = 1;- Specified by:
getTaskIdin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The taskId.
-
getTaskIdBytes
public com.google.protobuf.ByteString getTaskIdBytes()The id of the task that is changed
string task_id = 1;- Specified by:
getTaskIdBytesin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The bytes for taskId.
-
setTaskId
The id of the task that is changed
string task_id = 1;- Parameters:
value- The taskId to set.- Returns:
- This builder for chaining.
-
clearTaskId
The id of the task that is changed
string task_id = 1;- Returns:
- This builder for chaining.
-
setTaskIdBytes
The id of the task that is changed
string task_id = 1;- Parameters:
value- The bytes for taskId to set.- Returns:
- This builder for chaining.
-
getContextId
The id of the context that the task belongs to
string context_id = 2;- Specified by:
getContextIdin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The contextId.
-
getContextIdBytes
public com.google.protobuf.ByteString getContextIdBytes()The id of the context that the task belongs to
string context_id = 2;- Specified by:
getContextIdBytesin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The bytes for contextId.
-
setContextId
The id of the context that the task belongs to
string context_id = 2;- Parameters:
value- The contextId to set.- Returns:
- This builder for chaining.
-
clearContextId
The id of the context that the task belongs to
string context_id = 2;- Returns:
- This builder for chaining.
-
setContextIdBytes
The id of the context that the task belongs to
string context_id = 2;- Parameters:
value- The bytes for contextId to set.- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()The new status of the task.
.a2a.v1.TaskStatus status = 3;- Specified by:
hasStatusin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
The new status of the task.
.a2a.v1.TaskStatus status = 3;- Specified by:
getStatusin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The status.
-
setStatus
The new status of the task.
.a2a.v1.TaskStatus status = 3; -
setStatus
The new status of the task.
.a2a.v1.TaskStatus status = 3; -
mergeStatus
The new status of the task.
.a2a.v1.TaskStatus status = 3; -
clearStatus
The new status of the task.
.a2a.v1.TaskStatus status = 3; -
getStatusBuilder
The new status of the task.
.a2a.v1.TaskStatus status = 3; -
getStatusOrBuilder
The new status of the task.
.a2a.v1.TaskStatus status = 3;- Specified by:
getStatusOrBuilderin interfaceTaskStatusUpdateEventOrBuilder
-
getFinal
public boolean getFinal()Whether this is the last status update expected for this task.
bool final = 4;- Specified by:
getFinalin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The final.
-
setFinal
Whether this is the last status update expected for this task.
bool final = 4;- Parameters:
value- The final to set.- Returns:
- This builder for chaining.
-
clearFinal
Whether this is the last status update expected for this task.
bool final = 4;- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()Optional metadata to associate with the task update.
.google.protobuf.Struct metadata = 5;- Specified by:
hasMetadatain interfaceTaskStatusUpdateEventOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata()Optional metadata to associate with the task update.
.google.protobuf.Struct metadata = 5;- Specified by:
getMetadatain interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The metadata.
-
setMetadata
Optional metadata to associate with the task update.
.google.protobuf.Struct metadata = 5; -
setMetadata
public TaskStatusUpdateEvent.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional metadata to associate with the task update.
.google.protobuf.Struct metadata = 5; -
mergeMetadata
Optional metadata to associate with the task update.
.google.protobuf.Struct metadata = 5; -
clearMetadata
Optional metadata to associate with the task update.
.google.protobuf.Struct metadata = 5; -
getMetadataBuilder
public com.google.protobuf.Struct.Builder getMetadataBuilder()Optional metadata to associate with the task update.
.google.protobuf.Struct metadata = 5; -
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Optional metadata to associate with the task update.
.google.protobuf.Struct metadata = 5;- Specified by:
getMetadataOrBuilderin interfaceTaskStatusUpdateEventOrBuilder
-