Class SubagentInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SubagentInfo.Builder>
io.agentscope.aistio.proto.SubagentInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SubagentInfoOrBuilder, Cloneable
Enclosing class:
SubagentInfo

public static final class SubagentInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<SubagentInfo.Builder> implements SubagentInfoOrBuilder
Protobuf type agentscope.protocol.v1.SubagentInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SubagentInfo.Builder>
    • clear

      public SubagentInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SubagentInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SubagentInfo.Builder>
    • getDefaultInstanceForType

      public SubagentInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SubagentInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SubagentInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SubagentInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SubagentInfo.Builder>
    • mergeFrom

      public SubagentInfo.Builder mergeFrom(SubagentInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SubagentInfo.Builder>
    • mergeFrom

      public SubagentInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SubagentInfo.Builder>
      Throws:
      IOException
    • getName

      public String getName()
      string name = 1;
      Specified by:
      getName in interface SubagentInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 1;
      Specified by:
      getNameBytes in interface SubagentInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SubagentInfo.Builder setName(String value)
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SubagentInfo.Builder clearName()
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SubagentInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
      string description = 2;
      Specified by:
      getDescription in interface SubagentInfoOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      string description = 2;
      Specified by:
      getDescriptionBytes in interface SubagentInfoOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public SubagentInfo.Builder setDescription(String value)
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public SubagentInfo.Builder clearDescription()
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public SubagentInfo.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getToolsList

      public com.google.protobuf.ProtocolStringList getToolsList()
      repeated string tools = 3;
      Specified by:
      getToolsList in interface SubagentInfoOrBuilder
      Returns:
      A list containing the tools.
    • getToolsCount

      public int getToolsCount()
      repeated string tools = 3;
      Specified by:
      getToolsCount in interface SubagentInfoOrBuilder
      Returns:
      The count of tools.
    • getTools

      public String getTools(int index)
      repeated string tools = 3;
      Specified by:
      getTools in interface SubagentInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tools at the given index.
    • getToolsBytes

      public com.google.protobuf.ByteString getToolsBytes(int index)
      repeated string tools = 3;
      Specified by:
      getToolsBytes in interface SubagentInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tools at the given index.
    • setTools

      public SubagentInfo.Builder setTools(int index, String value)
      repeated string tools = 3;
      Parameters:
      index - The index to set the value at.
      value - The tools to set.
      Returns:
      This builder for chaining.
    • addTools

      public SubagentInfo.Builder addTools(String value)
      repeated string tools = 3;
      Parameters:
      value - The tools to add.
      Returns:
      This builder for chaining.
    • addAllTools

      public SubagentInfo.Builder addAllTools(Iterable<String> values)
      repeated string tools = 3;
      Parameters:
      values - The tools to add.
      Returns:
      This builder for chaining.
    • clearTools

      public SubagentInfo.Builder clearTools()
      repeated string tools = 3;
      Returns:
      This builder for chaining.
    • addToolsBytes

      public SubagentInfo.Builder addToolsBytes(com.google.protobuf.ByteString value)
      repeated string tools = 3;
      Parameters:
      value - The bytes of the tools to add.
      Returns:
      This builder for chaining.
    • getWorkspaceMode

      public String getWorkspaceMode()
       isolated | shared
       
      string workspace_mode = 4;
      Specified by:
      getWorkspaceMode in interface SubagentInfoOrBuilder
      Returns:
      The workspaceMode.
    • getWorkspaceModeBytes

      public com.google.protobuf.ByteString getWorkspaceModeBytes()
       isolated | shared
       
      string workspace_mode = 4;
      Specified by:
      getWorkspaceModeBytes in interface SubagentInfoOrBuilder
      Returns:
      The bytes for workspaceMode.
    • setWorkspaceMode

      public SubagentInfo.Builder setWorkspaceMode(String value)
       isolated | shared
       
      string workspace_mode = 4;
      Parameters:
      value - The workspaceMode to set.
      Returns:
      This builder for chaining.
    • clearWorkspaceMode

      public SubagentInfo.Builder clearWorkspaceMode()
       isolated | shared
       
      string workspace_mode = 4;
      Returns:
      This builder for chaining.
    • setWorkspaceModeBytes

      public SubagentInfo.Builder setWorkspaceModeBytes(com.google.protobuf.ByteString value)
       isolated | shared
       
      string workspace_mode = 4;
      Parameters:
      value - The bytes for workspaceMode to set.
      Returns:
      This builder for chaining.
    • getUrl

      public String getUrl()
       remote subagent endpoint, if any
       
      string url = 5;
      Specified by:
      getUrl in interface SubagentInfoOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       remote subagent endpoint, if any
       
      string url = 5;
      Specified by:
      getUrlBytes in interface SubagentInfoOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public SubagentInfo.Builder setUrl(String value)
       remote subagent endpoint, if any
       
      string url = 5;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public SubagentInfo.Builder clearUrl()
       remote subagent endpoint, if any
       
      string url = 5;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public SubagentInfo.Builder setUrlBytes(com.google.protobuf.ByteString value)
       remote subagent endpoint, if any
       
      string url = 5;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getInvokeCount

      public long getInvokeCount()
      int64 invoke_count = 6;
      Specified by:
      getInvokeCount in interface SubagentInfoOrBuilder
      Returns:
      The invokeCount.
    • setInvokeCount

      public SubagentInfo.Builder setInvokeCount(long value)
      int64 invoke_count = 6;
      Parameters:
      value - The invokeCount to set.
      Returns:
      This builder for chaining.
    • clearInvokeCount

      public SubagentInfo.Builder clearInvokeCount()
      int64 invoke_count = 6;
      Returns:
      This builder for chaining.
    • getLastInvokedAt

      public long getLastInvokedAt()
       unix milliseconds
       
      int64 last_invoked_at = 7;
      Specified by:
      getLastInvokedAt in interface SubagentInfoOrBuilder
      Returns:
      The lastInvokedAt.
    • setLastInvokedAt

      public SubagentInfo.Builder setLastInvokedAt(long value)
       unix milliseconds
       
      int64 last_invoked_at = 7;
      Parameters:
      value - The lastInvokedAt to set.
      Returns:
      This builder for chaining.
    • clearLastInvokedAt

      public SubagentInfo.Builder clearLastInvokedAt()
       unix milliseconds
       
      int64 last_invoked_at = 7;
      Returns:
      This builder for chaining.