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 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<TaskArtifactUpdateEvent.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<TaskArtifactUpdateEvent.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<TaskArtifactUpdateEvent.Builder>
    • getDefaultInstanceForType

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

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

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

      public TaskArtifactUpdateEvent.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<TaskArtifactUpdateEvent.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<TaskArtifactUpdateEvent.Builder>
      Throws:
      IOException
    • getTaskId

      public String getTaskId()
       The id of the task for this artifact
       
      string task_id = 1;
      Specified by:
      getTaskId in interface TaskArtifactUpdateEventOrBuilder
      Returns:
      The taskId.
    • getTaskIdBytes

      public com.google.protobuf.ByteString getTaskIdBytes()
       The id of the task for this artifact
       
      string task_id = 1;
      Specified by:
      getTaskIdBytes in interface TaskArtifactUpdateEventOrBuilder
      Returns:
      The bytes for taskId.
    • setTaskId

      public TaskArtifactUpdateEvent.Builder setTaskId(String value)
       The id of the task for this artifact
       
      string task_id = 1;
      Parameters:
      value - The taskId to set.
      Returns:
      This builder for chaining.
    • clearTaskId

      public TaskArtifactUpdateEvent.Builder clearTaskId()
       The id of the task for this artifact
       
      string task_id = 1;
      Returns:
      This builder for chaining.
    • setTaskIdBytes

      public TaskArtifactUpdateEvent.Builder setTaskIdBytes(com.google.protobuf.ByteString value)
       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

      public String getContextId()
       The id of the context that this task belongs too
       
      string context_id = 2;
      Specified by:
      getContextId in interface TaskArtifactUpdateEventOrBuilder
      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:
      getContextIdBytes in interface TaskArtifactUpdateEventOrBuilder
      Returns:
      The bytes for contextId.
    • setContextId

      public TaskArtifactUpdateEvent.Builder setContextId(String value)
       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

      public TaskArtifactUpdateEvent.Builder clearContextId()
       The id of the context that this task belongs too
       
      string context_id = 2;
      Returns:
      This builder for chaining.
    • setContextIdBytes

      public TaskArtifactUpdateEvent.Builder setContextIdBytes(com.google.protobuf.ByteString value)
       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:
      hasArtifact in interface TaskArtifactUpdateEventOrBuilder
      Returns:
      Whether the artifact field is set.
    • getArtifact

      public Artifact getArtifact()
       The artifact itself
       
      .a2a.v1.Artifact artifact = 3;
      Specified by:
      getArtifact in interface TaskArtifactUpdateEventOrBuilder
      Returns:
      The artifact.
    • setArtifact

      public TaskArtifactUpdateEvent.Builder setArtifact(Artifact value)
       The artifact itself
       
      .a2a.v1.Artifact artifact = 3;
    • setArtifact

      public TaskArtifactUpdateEvent.Builder setArtifact(Artifact.Builder builderForValue)
       The artifact itself
       
      .a2a.v1.Artifact artifact = 3;
    • mergeArtifact

      public TaskArtifactUpdateEvent.Builder mergeArtifact(Artifact value)
       The artifact itself
       
      .a2a.v1.Artifact artifact = 3;
    • clearArtifact

      public TaskArtifactUpdateEvent.Builder clearArtifact()
       The artifact itself
       
      .a2a.v1.Artifact artifact = 3;
    • getArtifactBuilder

      public Artifact.Builder getArtifactBuilder()
       The artifact itself
       
      .a2a.v1.Artifact artifact = 3;
    • getArtifactOrBuilder

      public ArtifactOrBuilder getArtifactOrBuilder()
       The artifact itself
       
      .a2a.v1.Artifact artifact = 3;
      Specified by:
      getArtifactOrBuilder in interface TaskArtifactUpdateEventOrBuilder
    • getAppend

      public boolean getAppend()
       Whether this should be appended to a prior one produced
       
      bool append = 4;
      Specified by:
      getAppend in interface TaskArtifactUpdateEventOrBuilder
      Returns:
      The append.
    • setAppend

      public TaskArtifactUpdateEvent.Builder setAppend(boolean value)
       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

      public TaskArtifactUpdateEvent.Builder 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:
      getLastChunk in interface TaskArtifactUpdateEventOrBuilder
      Returns:
      The lastChunk.
    • setLastChunk

      public TaskArtifactUpdateEvent.Builder setLastChunk(boolean value)
       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

      public TaskArtifactUpdateEvent.Builder 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:
      hasMetadata in interface TaskArtifactUpdateEventOrBuilder
      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:
      getMetadata in interface TaskArtifactUpdateEventOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public TaskArtifactUpdateEvent.Builder setMetadata(com.google.protobuf.Struct value)
       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

      public TaskArtifactUpdateEvent.Builder mergeMetadata(com.google.protobuf.Struct value)
       Optional metadata associated with the artifact update.
       
      .google.protobuf.Struct metadata = 6;
    • clearMetadata

      public TaskArtifactUpdateEvent.Builder 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:
      getMetadataOrBuilder in interface TaskArtifactUpdateEventOrBuilder