Class Artifact

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.compat03.grpc.Artifact
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, ArtifactOrBuilder

@Generated public final class Artifact extends com.google.protobuf.GeneratedMessage implements ArtifactOrBuilder
 Artifacts are the container for task completed results. These are similar
 to Messages but are intended to be the product of a task, as opposed to
 point-to-point communication.
 
Protobuf type a2a.v1.Artifact
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Artifacts are the container for task completed results.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Unique id for the artifact.
    com.google.protobuf.ByteString
    Unique id for the artifact.
    static Artifact
     
     
    A human readable description of the artifact, optional.
    com.google.protobuf.ByteString
    A human readable description of the artifact, optional.
    static final com.google.protobuf.Descriptors.Descriptor
     
    getExtensions(int index)
    The URIs of extensions that are present or contributed to this Artifact.
    com.google.protobuf.ByteString
    getExtensionsBytes(int index)
    The URIs of extensions that are present or contributed to this Artifact.
    int
    The URIs of extensions that are present or contributed to this Artifact.
    com.google.protobuf.ProtocolStringList
    The URIs of extensions that are present or contributed to this Artifact.
    com.google.protobuf.Struct
    Optional metadata included with the artifact.
    com.google.protobuf.StructOrBuilder
    Optional metadata included with the artifact.
    A human readable name for the artifact.
    com.google.protobuf.ByteString
    A human readable name for the artifact.
    com.google.protobuf.Parser<Artifact>
     
    getParts(int index)
    The content of the artifact.
    int
    The content of the artifact.
    The content of the artifact.
    getPartsOrBuilder(int index)
    The content of the artifact.
    List<? extends PartOrBuilder>
    The content of the artifact.
    int
     
    int
     
    boolean
    Optional metadata included with the artifact.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Artifact prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Artifact
     
    static Artifact
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Artifact
    parseFrom(byte[] data)
     
    static Artifact
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Artifact
    parseFrom(com.google.protobuf.ByteString data)
     
    static Artifact
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Artifact
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Artifact
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Artifact
     
    static Artifact
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Artifact
     
    static Artifact
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Artifact>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • 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
    • getArtifactId

      public String getArtifactId()
       Unique id for the artifact. It must be at least unique within a task.
       
      string artifact_id = 1;
      Specified by:
      getArtifactId in interface ArtifactOrBuilder
      Returns:
      The artifactId.
    • getArtifactIdBytes

      public com.google.protobuf.ByteString getArtifactIdBytes()
       Unique id for the artifact. It must be at least unique within a task.
       
      string artifact_id = 1;
      Specified by:
      getArtifactIdBytes in interface ArtifactOrBuilder
      Returns:
      The bytes for artifactId.
    • getName

      public String getName()
       A human readable name for the artifact.
       
      string name = 3;
      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 = 3;
      Specified by:
      getNameBytes in interface ArtifactOrBuilder
      Returns:
      The bytes for name.
    • getDescription

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

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

      public List<Part> getPartsList()
       The content of the artifact.
       
      repeated .a2a.v1.Part parts = 5;
      Specified by:
      getPartsList in interface ArtifactOrBuilder
    • getPartsOrBuilderList

      public List<? extends PartOrBuilder> getPartsOrBuilderList()
       The content of the artifact.
       
      repeated .a2a.v1.Part parts = 5;
      Specified by:
      getPartsOrBuilderList in interface ArtifactOrBuilder
    • getPartsCount

      public int getPartsCount()
       The content of the artifact.
       
      repeated .a2a.v1.Part parts = 5;
      Specified by:
      getPartsCount in interface ArtifactOrBuilder
    • getParts

      public Part getParts(int index)
       The content of the artifact.
       
      repeated .a2a.v1.Part parts = 5;
      Specified by:
      getParts in interface ArtifactOrBuilder
    • getPartsOrBuilder

      public PartOrBuilder getPartsOrBuilder(int index)
       The content of the artifact.
       
      repeated .a2a.v1.Part parts = 5;
      Specified by:
      getPartsOrBuilder in interface ArtifactOrBuilder
    • hasMetadata

      public boolean hasMetadata()
       Optional metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 6;
      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 = 6;
      Specified by:
      getMetadata in interface ArtifactOrBuilder
      Returns:
      The metadata.
    • getMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       Optional metadata included with the artifact.
       
      .google.protobuf.Struct metadata = 6;
      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 = 7;
      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 = 7;
      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 = 7;
      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 = 7;
      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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Artifact parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifact parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifact parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifact parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifact parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifact parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifact parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Artifact parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Artifact parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifact parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifact parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Artifact.Builder newBuilder()
    • newBuilder

      public static Artifact.Builder newBuilder(Artifact prototype)
    • toBuilder

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

      protected Artifact.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Artifact getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Artifact> parser()
    • getParserForType

      public com.google.protobuf.Parser<Artifact> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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