Package io.agentscope.aistio.proto
Class ExecutionAttemptReport.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExecutionAttemptReport.Builder>
io.agentscope.aistio.proto.ExecutionAttemptReport.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExecutionAttemptReportOrBuilder,Cloneable
- Enclosing class:
- ExecutionAttemptReport
public static final class ExecutionAttemptReport.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExecutionAttemptReport.Builder>
implements ExecutionAttemptReportOrBuilder
ExecutionAttemptReport is fenced by attempt identity and dispatch generation.Protobuf type
agentscope.protocol.v1.ExecutionAttemptReport-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputIds(Iterable<String> values) repeated string input_ids = 7;addInputIds(String value) repeated string input_ids = 7;addInputIdsBytes(com.google.protobuf.ByteString value) repeated string input_ids = 7;build()clear()ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelledstring agent_task_id = 2;string attempt_id = 1;string attempt_token = 15;bytes checkpoint = 12;string content = 8;string error_code = 10;string error_message = 11;int64 generation = 5;string idempotency_key = 14;repeated string input_ids = 7;string node_id = 4;bytes result = 9;string run_id = 3;bytes usage = 13;ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelledcom.google.protobuf.ByteStringack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelledstring agent_task_id = 2;com.google.protobuf.ByteStringstring agent_task_id = 2;string attempt_id = 1;com.google.protobuf.ByteStringstring attempt_id = 1;string attempt_token = 15;com.google.protobuf.ByteStringstring attempt_token = 15;com.google.protobuf.ByteStringbytes checkpoint = 12;string content = 8;com.google.protobuf.ByteStringstring content = 8;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorstring error_code = 10;com.google.protobuf.ByteStringstring error_code = 10;string error_message = 11;com.google.protobuf.ByteStringstring error_message = 11;longint64 generation = 5;string idempotency_key = 14;com.google.protobuf.ByteStringstring idempotency_key = 14;getInputIds(int index) repeated string input_ids = 7;com.google.protobuf.ByteStringgetInputIdsBytes(int index) repeated string input_ids = 7;intrepeated string input_ids = 7;com.google.protobuf.ProtocolStringListrepeated string input_ids = 7;string node_id = 4;com.google.protobuf.ByteStringstring node_id = 4;com.google.protobuf.ByteStringbytes result = 9;getRunId()string run_id = 3;com.google.protobuf.ByteStringstring run_id = 3;com.google.protobuf.ByteStringgetUsage()bytes usage = 13;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ExecutionAttemptReport other) ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelledsetActionBytes(com.google.protobuf.ByteString value) ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelledsetAgentTaskId(String value) string agent_task_id = 2;setAgentTaskIdBytes(com.google.protobuf.ByteString value) string agent_task_id = 2;setAttemptId(String value) string attempt_id = 1;setAttemptIdBytes(com.google.protobuf.ByteString value) string attempt_id = 1;setAttemptToken(String value) string attempt_token = 15;setAttemptTokenBytes(com.google.protobuf.ByteString value) string attempt_token = 15;setCheckpoint(com.google.protobuf.ByteString value) bytes checkpoint = 12;setContent(String value) string content = 8;setContentBytes(com.google.protobuf.ByteString value) string content = 8;setErrorCode(String value) string error_code = 10;setErrorCodeBytes(com.google.protobuf.ByteString value) string error_code = 10;setErrorMessage(String value) string error_message = 11;setErrorMessageBytes(com.google.protobuf.ByteString value) string error_message = 11;setGeneration(long value) int64 generation = 5;setIdempotencyKey(String value) string idempotency_key = 14;setIdempotencyKeyBytes(com.google.protobuf.ByteString value) string idempotency_key = 14;setInputIds(int index, String value) repeated string input_ids = 7;string node_id = 4;setNodeIdBytes(com.google.protobuf.ByteString value) string node_id = 4;setResult(com.google.protobuf.ByteString value) bytes result = 9;string run_id = 3;setRunIdBytes(com.google.protobuf.ByteString value) string run_id = 3;setUsage(com.google.protobuf.ByteString value) bytes usage = 13;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<ExecutionAttemptReport.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<ExecutionAttemptReport.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<ExecutionAttemptReport.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<ExecutionAttemptReport.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExecutionAttemptReport.Builder>
-
mergeFrom
public ExecutionAttemptReport.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<ExecutionAttemptReport.Builder>- Throws:
IOException
-
getAttemptId
string attempt_id = 1;- Specified by:
getAttemptIdin interfaceExecutionAttemptReportOrBuilder- Returns:
- The attemptId.
-
getAttemptIdBytes
public com.google.protobuf.ByteString getAttemptIdBytes()string attempt_id = 1;- Specified by:
getAttemptIdBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for attemptId.
-
setAttemptId
string attempt_id = 1;- Parameters:
value- The attemptId to set.- Returns:
- This builder for chaining.
-
clearAttemptId
string attempt_id = 1;- Returns:
- This builder for chaining.
-
setAttemptIdBytes
string attempt_id = 1;- Parameters:
value- The bytes for attemptId to set.- Returns:
- This builder for chaining.
-
getAgentTaskId
string agent_task_id = 2;- Specified by:
getAgentTaskIdin interfaceExecutionAttemptReportOrBuilder- Returns:
- The agentTaskId.
-
getAgentTaskIdBytes
public com.google.protobuf.ByteString getAgentTaskIdBytes()string agent_task_id = 2;- Specified by:
getAgentTaskIdBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for agentTaskId.
-
setAgentTaskId
string agent_task_id = 2;- Parameters:
value- The agentTaskId to set.- Returns:
- This builder for chaining.
-
clearAgentTaskId
string agent_task_id = 2;- Returns:
- This builder for chaining.
-
setAgentTaskIdBytes
string agent_task_id = 2;- Parameters:
value- The bytes for agentTaskId to set.- Returns:
- This builder for chaining.
-
getRunId
string run_id = 3;- Specified by:
getRunIdin interfaceExecutionAttemptReportOrBuilder- Returns:
- The runId.
-
getRunIdBytes
public com.google.protobuf.ByteString getRunIdBytes()string run_id = 3;- Specified by:
getRunIdBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for runId.
-
setRunId
string run_id = 3;- Parameters:
value- The runId to set.- Returns:
- This builder for chaining.
-
clearRunId
string run_id = 3;- Returns:
- This builder for chaining.
-
setRunIdBytes
string run_id = 3;- Parameters:
value- The bytes for runId to set.- Returns:
- This builder for chaining.
-
getNodeId
string node_id = 4;- Specified by:
getNodeIdin interfaceExecutionAttemptReportOrBuilder- Returns:
- The nodeId.
-
getNodeIdBytes
public com.google.protobuf.ByteString getNodeIdBytes()string node_id = 4;- Specified by:
getNodeIdBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for nodeId.
-
setNodeId
string node_id = 4;- Parameters:
value- The nodeId to set.- Returns:
- This builder for chaining.
-
clearNodeId
string node_id = 4;- Returns:
- This builder for chaining.
-
setNodeIdBytes
string node_id = 4;- Parameters:
value- The bytes for nodeId to set.- Returns:
- This builder for chaining.
-
getGeneration
public long getGeneration()int64 generation = 5;- Specified by:
getGenerationin interfaceExecutionAttemptReportOrBuilder- Returns:
- The generation.
-
setGeneration
int64 generation = 5;- Parameters:
value- The generation to set.- Returns:
- This builder for chaining.
-
clearGeneration
int64 generation = 5;- Returns:
- This builder for chaining.
-
getAction
ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelled
string action = 6;- Specified by:
getActionin interfaceExecutionAttemptReportOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelled
string action = 6;- Specified by:
getActionBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for action.
-
setAction
ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelled
string action = 6;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelled
string action = 6;- Returns:
- This builder for chaining.
-
setActionBytes
ack | preparing | start | heartbeat | waiting | progress | respond | complete | fail | cancelled
string action = 6;- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-
getInputIdsList
public com.google.protobuf.ProtocolStringList getInputIdsList()repeated string input_ids = 7;- Specified by:
getInputIdsListin interfaceExecutionAttemptReportOrBuilder- Returns:
- A list containing the inputIds.
-
getInputIdsCount
public int getInputIdsCount()repeated string input_ids = 7;- Specified by:
getInputIdsCountin interfaceExecutionAttemptReportOrBuilder- Returns:
- The count of inputIds.
-
getInputIds
repeated string input_ids = 7;- Specified by:
getInputIdsin interfaceExecutionAttemptReportOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The inputIds at the given index.
-
getInputIdsBytes
public com.google.protobuf.ByteString getInputIdsBytes(int index) repeated string input_ids = 7;- Specified by:
getInputIdsBytesin interfaceExecutionAttemptReportOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inputIds at the given index.
-
setInputIds
repeated string input_ids = 7;- Parameters:
index- The index to set the value at.value- The inputIds to set.- Returns:
- This builder for chaining.
-
addInputIds
repeated string input_ids = 7;- Parameters:
value- The inputIds to add.- Returns:
- This builder for chaining.
-
addAllInputIds
repeated string input_ids = 7;- Parameters:
values- The inputIds to add.- Returns:
- This builder for chaining.
-
clearInputIds
repeated string input_ids = 7;- Returns:
- This builder for chaining.
-
addInputIdsBytes
repeated string input_ids = 7;- Parameters:
value- The bytes of the inputIds to add.- Returns:
- This builder for chaining.
-
getContent
string content = 8;- Specified by:
getContentin interfaceExecutionAttemptReportOrBuilder- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()string content = 8;- Specified by:
getContentBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for content.
-
setContent
string content = 8;- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
string content = 8;- Returns:
- This builder for chaining.
-
setContentBytes
string content = 8;- Parameters:
value- The bytes for content to set.- Returns:
- This builder for chaining.
-
getResult
public com.google.protobuf.ByteString getResult()bytes result = 9;- Specified by:
getResultin interfaceExecutionAttemptReportOrBuilder- Returns:
- The result.
-
setResult
bytes result = 9;- Parameters:
value- The result to set.- Returns:
- This builder for chaining.
-
clearResult
bytes result = 9;- Returns:
- This builder for chaining.
-
getErrorCode
string error_code = 10;- Specified by:
getErrorCodein interfaceExecutionAttemptReportOrBuilder- Returns:
- The errorCode.
-
getErrorCodeBytes
public com.google.protobuf.ByteString getErrorCodeBytes()string error_code = 10;- Specified by:
getErrorCodeBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for errorCode.
-
setErrorCode
string error_code = 10;- Parameters:
value- The errorCode to set.- Returns:
- This builder for chaining.
-
clearErrorCode
string error_code = 10;- Returns:
- This builder for chaining.
-
setErrorCodeBytes
string error_code = 10;- Parameters:
value- The bytes for errorCode to set.- Returns:
- This builder for chaining.
-
getErrorMessage
string error_message = 11;- Specified by:
getErrorMessagein interfaceExecutionAttemptReportOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()string error_message = 11;- Specified by:
getErrorMessageBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for errorMessage.
-
setErrorMessage
string error_message = 11;- Parameters:
value- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
string error_message = 11;- Returns:
- This builder for chaining.
-
setErrorMessageBytes
string error_message = 11;- Parameters:
value- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
getCheckpoint
public com.google.protobuf.ByteString getCheckpoint()bytes checkpoint = 12;- Specified by:
getCheckpointin interfaceExecutionAttemptReportOrBuilder- Returns:
- The checkpoint.
-
setCheckpoint
bytes checkpoint = 12;- Parameters:
value- The checkpoint to set.- Returns:
- This builder for chaining.
-
clearCheckpoint
bytes checkpoint = 12;- Returns:
- This builder for chaining.
-
getUsage
public com.google.protobuf.ByteString getUsage()bytes usage = 13;- Specified by:
getUsagein interfaceExecutionAttemptReportOrBuilder- Returns:
- The usage.
-
setUsage
bytes usage = 13;- Parameters:
value- The usage to set.- Returns:
- This builder for chaining.
-
clearUsage
bytes usage = 13;- Returns:
- This builder for chaining.
-
getIdempotencyKey
string idempotency_key = 14;- Specified by:
getIdempotencyKeyin interfaceExecutionAttemptReportOrBuilder- Returns:
- The idempotencyKey.
-
getIdempotencyKeyBytes
public com.google.protobuf.ByteString getIdempotencyKeyBytes()string idempotency_key = 14;- Specified by:
getIdempotencyKeyBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for idempotencyKey.
-
setIdempotencyKey
string idempotency_key = 14;- Parameters:
value- The idempotencyKey to set.- Returns:
- This builder for chaining.
-
clearIdempotencyKey
string idempotency_key = 14;- Returns:
- This builder for chaining.
-
setIdempotencyKeyBytes
string idempotency_key = 14;- Parameters:
value- The bytes for idempotencyKey to set.- Returns:
- This builder for chaining.
-
getAttemptToken
string attempt_token = 15;- Specified by:
getAttemptTokenin interfaceExecutionAttemptReportOrBuilder- Returns:
- The attemptToken.
-
getAttemptTokenBytes
public com.google.protobuf.ByteString getAttemptTokenBytes()string attempt_token = 15;- Specified by:
getAttemptTokenBytesin interfaceExecutionAttemptReportOrBuilder- Returns:
- The bytes for attemptToken.
-
setAttemptToken
string attempt_token = 15;- Parameters:
value- The attemptToken to set.- Returns:
- This builder for chaining.
-
clearAttemptToken
string attempt_token = 15;- Returns:
- This builder for chaining.
-
setAttemptTokenBytes
string attempt_token = 15;- Parameters:
value- The bytes for attemptToken to set.- Returns:
- This builder for chaining.
-