Package org.a2aproject.sdk.compat03.grpc
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.compat03.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 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-
Method Summary
Modifier and TypeMethodDescriptionaddAllExtensions(Iterable<String> values) The URIs of extensions that are present or contributed to this Artifact.addAllParts(Iterable<? extends Part> values) The content of the artifact.addExtensions(String value) The URIs of extensions that are present or contributed to this Artifact.addExtensionsBytes(com.google.protobuf.ByteString value) The URIs of extensions that are present or contributed to this Artifact.The content of the artifact.addParts(int index, Part.Builder builderForValue) The content of the artifact.The content of the artifact.addParts(Part.Builder builderForValue) The content of the artifact.The content of the artifact.addPartsBuilder(int index) The content of the artifact.build()clear()Unique id for the artifact.A human readable description of the artifact, optional.The URIs of extensions that are present or contributed to this Artifact.Optional metadata included with the artifact.A human readable name for the artifact.The content of the artifact.Unique id for the artifact.com.google.protobuf.ByteStringUnique id for the artifact.A human readable description of the artifact, optional.com.google.protobuf.ByteStringA human readable description of the artifact, optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExtensions(int index) The URIs of extensions that are present or contributed to this Artifact.com.google.protobuf.ByteStringgetExtensionsBytes(int index) The URIs of extensions that are present or contributed to this Artifact.intThe URIs of extensions that are present or contributed to this Artifact.com.google.protobuf.ProtocolStringListThe URIs of extensions that are present or contributed to this Artifact.com.google.protobuf.StructOptional metadata included with the artifact.com.google.protobuf.Struct.BuilderOptional metadata included with the artifact.com.google.protobuf.StructOrBuilderOptional metadata included with the artifact.getName()A human readable name for the artifact.com.google.protobuf.ByteStringA human readable name for the artifact.getParts(int index) The content of the artifact.getPartsBuilder(int index) The content of the artifact.The content of the artifact.intThe 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.booleanOptional metadata included with the artifact.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetadata(com.google.protobuf.Struct value) Optional metadata included with the artifact.removeParts(int index) The content of the artifact.setArtifactId(String value) Unique id for the artifact.setArtifactIdBytes(com.google.protobuf.ByteString value) Unique id for the artifact.setDescription(String value) A human readable description of the artifact, optional.setDescriptionBytes(com.google.protobuf.ByteString value) A human readable description of the artifact, optional.setExtensions(int index, String value) The URIs of extensions that are present or contributed to this Artifact.setMetadata(com.google.protobuf.Struct value) Optional metadata included with the artifact.setMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional metadata included with the artifact.A human readable name for the artifact.setNameBytes(com.google.protobuf.ByteString value) A human readable name for the artifact.The content of the artifact.setParts(int index, Part.Builder builderForValue) The content of the artifact.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<Artifact.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<Artifact.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<Artifact.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<Artifact.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Artifact.Builder>- Throws:
IOException
-
getArtifactId
Unique id for the artifact. It must be at least unique within a task.
string artifact_id = 1;- Specified by:
getArtifactIdin interfaceArtifactOrBuilder- 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:
getArtifactIdBytesin interfaceArtifactOrBuilder- Returns:
- The bytes for artifactId.
-
setArtifactId
Unique id for the artifact. It must be at least unique within a task.
string artifact_id = 1;- Parameters:
value- The artifactId to set.- Returns:
- This builder for chaining.
-
clearArtifactId
Unique id for the artifact. It must be at least unique within a task.
string artifact_id = 1;- Returns:
- This builder for chaining.
-
setArtifactIdBytes
Unique id for the artifact. It must be at least unique within a task.
string artifact_id = 1;- Parameters:
value- The bytes for artifactId to set.- Returns:
- This builder for chaining.
-
getName
A human readable name for the artifact.
string name = 3;- Specified by:
getNamein interfaceArtifactOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A human readable name for the artifact.
string name = 3;- Specified by:
getNameBytesin interfaceArtifactOrBuilder- Returns:
- The bytes for name.
-
setName
A human readable name for the artifact.
string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
A human readable name for the artifact.
string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
A human readable name for the artifact.
string name = 3;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
A human readable description of the artifact, optional.
string description = 4;- Specified by:
getDescriptionin interfaceArtifactOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A human readable description of the artifact, optional.
string description = 4;- Specified by:
getDescriptionBytesin interfaceArtifactOrBuilder- Returns:
- The bytes for description.
-
setDescription
A human readable description of the artifact, optional.
string description = 4;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A human readable description of the artifact, optional.
string description = 4;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A human readable description of the artifact, optional.
string description = 4;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getPartsList
The content of the artifact.
repeated .a2a.v1.Part parts = 5;- Specified by:
getPartsListin interfaceArtifactOrBuilder
-
getPartsCount
public int getPartsCount()The content of the artifact.
repeated .a2a.v1.Part parts = 5;- Specified by:
getPartsCountin interfaceArtifactOrBuilder
-
getParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5;- Specified by:
getPartsin interfaceArtifactOrBuilder
-
setParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
setParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
addParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
addParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
addParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
addParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
addAllParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
clearParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
removeParts
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
getPartsBuilder
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
getPartsOrBuilder
The content of the artifact.
repeated .a2a.v1.Part parts = 5;- Specified by:
getPartsOrBuilderin interfaceArtifactOrBuilder
-
getPartsOrBuilderList
The content of the artifact.
repeated .a2a.v1.Part parts = 5;- Specified by:
getPartsOrBuilderListin interfaceArtifactOrBuilder
-
addPartsBuilder
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
addPartsBuilder
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
getPartsBuilderList
The content of the artifact.
repeated .a2a.v1.Part parts = 5; -
hasMetadata
public boolean hasMetadata()Optional metadata included with the artifact.
.google.protobuf.Struct metadata = 6;- Specified by:
hasMetadatain interfaceArtifactOrBuilder- 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:
getMetadatain interfaceArtifactOrBuilder- Returns:
- The metadata.
-
setMetadata
Optional metadata included with the artifact.
.google.protobuf.Struct metadata = 6; -
setMetadata
Optional metadata included with the artifact.
.google.protobuf.Struct metadata = 6; -
mergeMetadata
Optional metadata included with the artifact.
.google.protobuf.Struct metadata = 6; -
clearMetadata
Optional metadata included with the artifact.
.google.protobuf.Struct metadata = 6; -
getMetadataBuilder
public com.google.protobuf.Struct.Builder getMetadataBuilder()Optional metadata included with the artifact.
.google.protobuf.Struct metadata = 6; -
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Optional metadata included with the artifact.
.google.protobuf.Struct metadata = 6;- Specified by:
getMetadataOrBuilderin interfaceArtifactOrBuilder
-
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:
getExtensionsListin interfaceArtifactOrBuilder- 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:
getExtensionsCountin interfaceArtifactOrBuilder- Returns:
- The count of extensions.
-
getExtensions
The URIs of extensions that are present or contributed to this Artifact.
repeated string extensions = 7;- Specified by:
getExtensionsin interfaceArtifactOrBuilder- 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:
getExtensionsBytesin interfaceArtifactOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the extensions at the given index.
-
setExtensions
The URIs of extensions that are present or contributed to this Artifact.
repeated string extensions = 7;- Parameters:
index- The index to set the value at.value- The extensions to set.- Returns:
- This builder for chaining.
-
addExtensions
The URIs of extensions that are present or contributed to this Artifact.
repeated string extensions = 7;- Parameters:
value- The extensions to add.- Returns:
- This builder for chaining.
-
addAllExtensions
The URIs of extensions that are present or contributed to this Artifact.
repeated string extensions = 7;- Parameters:
values- The extensions to add.- Returns:
- This builder for chaining.
-
clearExtensions
The URIs of extensions that are present or contributed to this Artifact.
repeated string extensions = 7;- Returns:
- This builder for chaining.
-
addExtensionsBytes
The URIs of extensions that are present or contributed to this Artifact.
repeated string extensions = 7;- Parameters:
value- The bytes of the extensions to add.- Returns:
- This builder for chaining.
-