Class Artifact.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Artifact.Builder>
org.a2aproject.sdk.grpc.Artifact.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ArtifactOrBuilder
Enclosing class:
Artifact

public static final class Artifact.Builder extends com.google.protobuf.GeneratedMessage.Builder<Artifact.Builder> implements ArtifactOrBuilder
 Artifacts represent task outputs.
 
Protobuf type lf.a2a.v1.Artifact
  • 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<Artifact.Builder>
    • clear

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

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

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

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

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

      public Artifact.Builder mergeFrom(Artifact other)
    • isInitialized

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

      public Artifact.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<Artifact.Builder>
      Throws:
      IOException
    • getArtifactId

      public String getArtifactId()
       Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.
       
      string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getArtifactId in interface ArtifactOrBuilder
      Returns:
      The artifactId.
    • getArtifactIdBytes

      public com.google.protobuf.ByteString getArtifactIdBytes()
       Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.
       
      string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getArtifactIdBytes in interface ArtifactOrBuilder
      Returns:
      The bytes for artifactId.
    • setArtifactId

      public Artifact.Builder setArtifactId(String value)
       Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.
       
      string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The artifactId to set.
      Returns:
      This builder for chaining.
    • clearArtifactId

      public Artifact.Builder clearArtifactId()
       Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.
       
      string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setArtifactIdBytes

      public Artifact.Builder setArtifactIdBytes(com.google.protobuf.ByteString value)
       Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.
       
      string artifact_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for artifactId to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       A human readable name for the artifact.
       
      string name = 2;
      Specified by:
      getName in interface ArtifactOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       A human readable name for the artifact.
       
      string name = 2;
      Specified by:
      getNameBytes in interface ArtifactOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Artifact.Builder setName(String value)
       A human readable name for the artifact.
       
      string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Artifact.Builder clearName()
       A human readable name for the artifact.
       
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Artifact.Builder setNameBytes(com.google.protobuf.ByteString value)
       A human readable name for the artifact.
       
      string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. A human readable description of the artifact.
       
      string description = 3;
      Specified by:
      getDescription in interface ArtifactOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A human readable description of the artifact.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface ArtifactOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Artifact.Builder setDescription(String value)
       Optional. A human readable description of the artifact.
       
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Artifact.Builder clearDescription()
       Optional. A human readable description of the artifact.
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Artifact.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A human readable description of the artifact.
       
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getPartsList

      public List<Part> getPartsList()
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartsList in interface ArtifactOrBuilder
    • getPartsCount

      public int getPartsCount()
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartsCount in interface ArtifactOrBuilder
    • getParts

      public Part getParts(int index)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParts in interface ArtifactOrBuilder
    • setParts

      public Artifact.Builder setParts(int index, Part value)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • setParts

      public Artifact.Builder setParts(int index, Part.Builder builderForValue)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addParts

      public Artifact.Builder addParts(Part value)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addParts

      public Artifact.Builder addParts(int index, Part value)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addParts

      public Artifact.Builder addParts(Part.Builder builderForValue)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addParts

      public Artifact.Builder addParts(int index, Part.Builder builderForValue)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addAllParts

      public Artifact.Builder addAllParts(Iterable<? extends Part> values)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearParts

      public Artifact.Builder clearParts()
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • removeParts

      public Artifact.Builder removeParts(int index)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • getPartsBuilder

      public Part.Builder getPartsBuilder(int index)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • getPartsOrBuilder

      public PartOrBuilder getPartsOrBuilder(int index)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartsOrBuilder in interface ArtifactOrBuilder
    • getPartsOrBuilderList

      public List<? extends PartOrBuilder> getPartsOrBuilderList()
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartsOrBuilderList in interface ArtifactOrBuilder
    • addPartsBuilder

      public Part.Builder addPartsBuilder()
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addPartsBuilder

      public Part.Builder addPartsBuilder(int index)
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • getPartsBuilderList

      public List<Part.Builder> getPartsBuilderList()
       The content of the artifact. Must contain at least one part.
       
      repeated .lf.a2a.v1.Part parts = 4 [(.google.api.field_behavior) = REQUIRED];
    • hasMetadata

      public boolean hasMetadata()
       Optional. Metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 5;
      Specified by:
      hasMetadata in interface ArtifactOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public com.google.protobuf.Struct getMetadata()
       Optional. Metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 5;
      Specified by:
      getMetadata in interface ArtifactOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public Artifact.Builder setMetadata(com.google.protobuf.Struct value)
       Optional. Metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 5;
    • setMetadata

      public Artifact.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 5;
    • mergeMetadata

      public Artifact.Builder mergeMetadata(com.google.protobuf.Struct value)
       Optional. Metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 5;
    • clearMetadata

      public Artifact.Builder clearMetadata()
       Optional. Metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 5;
    • getMetadataBuilder

      public com.google.protobuf.Struct.Builder getMetadataBuilder()
       Optional. Metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 5;
    • getMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       Optional. Metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 5;
      Specified by:
      getMetadataOrBuilder in interface ArtifactOrBuilder
    • getExtensionsList

      public com.google.protobuf.ProtocolStringList getExtensionsList()
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Specified by:
      getExtensionsList in interface ArtifactOrBuilder
      Returns:
      A list containing the extensions.
    • getExtensionsCount

      public int getExtensionsCount()
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Specified by:
      getExtensionsCount in interface ArtifactOrBuilder
      Returns:
      The count of extensions.
    • getExtensions

      public String getExtensions(int index)
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Specified by:
      getExtensions in interface ArtifactOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The extensions at the given index.
    • getExtensionsBytes

      public com.google.protobuf.ByteString getExtensionsBytes(int index)
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Specified by:
      getExtensionsBytes in interface ArtifactOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the extensions at the given index.
    • setExtensions

      public Artifact.Builder setExtensions(int index, String value)
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Parameters:
      index - The index to set the value at.
      value - The extensions to set.
      Returns:
      This builder for chaining.
    • addExtensions

      public Artifact.Builder addExtensions(String value)
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Parameters:
      value - The extensions to add.
      Returns:
      This builder for chaining.
    • addAllExtensions

      public Artifact.Builder addAllExtensions(Iterable<String> values)
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Parameters:
      values - The extensions to add.
      Returns:
      This builder for chaining.
    • clearExtensions

      public Artifact.Builder clearExtensions()
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Returns:
      This builder for chaining.
    • addExtensionsBytes

      public Artifact.Builder addExtensionsBytes(com.google.protobuf.ByteString value)
       The URIs of extensions that are present or contributed to this Artifact.
       
      repeated string extensions = 6;
      Parameters:
      value - The bytes of the extensions to add.
      Returns:
      This builder for chaining.