Package org.a2aproject.sdk.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.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
An event sent by the agent to notify the client of a change in a task's status.Protobuf type
lf.a2a.v1.TaskStatusUpdateEvent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The ID of the context that the task belongs to.Optional.The new status of the task.The ID of the task that has changed.The ID of the context that the task belongs to.com.google.protobuf.ByteStringThe ID of the context that the task belongs to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.The new status of the task.The new status of the task.The new status of the task.The ID of the task that has changed.com.google.protobuf.ByteStringThe ID of the task that has changed.booleanOptional.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.mergeStatus(TaskStatus value) The new status of the task.setContextId(String value) The ID of the context that the task belongs to.setContextIdBytes(com.google.protobuf.ByteString value) The ID of the context that the task belongs to.setMetadata(com.google.protobuf.Struct value) Optional.setMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional.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 has changed.setTaskIdBytes(com.google.protobuf.ByteString value) The ID of the task that has changed.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<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 has changed.
string task_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTaskIdin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The taskId.
-
getTaskIdBytes
public com.google.protobuf.ByteString getTaskIdBytes()The ID of the task that has changed.
string task_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTaskIdBytesin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The bytes for taskId.
-
setTaskId
The ID of the task that has changed.
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 that has changed.
string task_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTaskIdBytes
The ID of the task that has changed.
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 the task belongs to.
string context_id = 2 [(.google.api.field_behavior) = REQUIRED];- 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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContextIdBytesin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The bytes for contextId.
-
setContextId
The ID of the context that the 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 the task belongs to.
string context_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setContextIdBytes
The ID of the context that the 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.
-
hasStatus
public boolean hasStatus()The new status of the task.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasStatusin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
The new status of the task.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStatusin interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The status.
-
setStatus
The new status of the task.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED]; -
setStatus
The new status of the task.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeStatus
The new status of the task.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearStatus
The new status of the task.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED]; -
getStatusBuilder
The new status of the task.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED]; -
getStatusOrBuilder
The new status of the task.
.lf.a2a.v1.TaskStatus status = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStatusOrBuilderin interfaceTaskStatusUpdateEventOrBuilder
-
hasMetadata
public boolean hasMetadata()Optional. Metadata associated with the task update.
.google.protobuf.Struct metadata = 4;- Specified by:
hasMetadatain interfaceTaskStatusUpdateEventOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata()Optional. Metadata associated with the task update.
.google.protobuf.Struct metadata = 4;- Specified by:
getMetadatain interfaceTaskStatusUpdateEventOrBuilder- Returns:
- The metadata.
-
setMetadata
Optional. Metadata associated with the task update.
.google.protobuf.Struct metadata = 4; -
setMetadata
public TaskStatusUpdateEvent.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional. Metadata associated with the task update.
.google.protobuf.Struct metadata = 4; -
mergeMetadata
Optional. Metadata associated with the task update.
.google.protobuf.Struct metadata = 4; -
clearMetadata
Optional. Metadata associated with the task update.
.google.protobuf.Struct metadata = 4; -
getMetadataBuilder
public com.google.protobuf.Struct.Builder getMetadataBuilder()Optional. Metadata associated with the task update.
.google.protobuf.Struct metadata = 4; -
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Optional. Metadata associated with the task update.
.google.protobuf.Struct metadata = 4;- Specified by:
getMetadataOrBuilderin interfaceTaskStatusUpdateEventOrBuilder
-