Package org.a2aproject.sdk.grpc
Interface PartOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Part,Part.Builder
@Generated
public interface PartOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ValuegetData()Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).com.google.protobuf.ValueOrBuilderArbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).An optional `filename` for the file (e.g., "document.pdf").com.google.protobuf.ByteStringAn optional `filename` for the file (e.g., "document.pdf").The `media_type` (MIME type) of the part content (e.g., "text/plain", "application/json", "image/png").com.google.protobuf.ByteStringThe `media_type` (MIME type) of the part content (e.g., "text/plain", "application/json", "image/png").com.google.protobuf.StructOptional. metadata associated with this part.com.google.protobuf.StructOrBuilderOptional. metadata associated with this part.com.google.protobuf.ByteStringgetRaw()The `raw` byte content of a file.getText()The string content of the `text` part.com.google.protobuf.ByteStringThe string content of the `text` part.getUrl()A `url` pointing to the file's content.com.google.protobuf.ByteStringA `url` pointing to the file's content.booleanhasData()Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).booleanOptional. metadata associated with this part.booleanhasRaw()The `raw` byte content of a file.booleanhasText()The string content of the `text` part.booleanhasUrl()A `url` pointing to the file's content.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasText
boolean hasText()The string content of the `text` part.
string text = 1;- Returns:
- Whether the text field is set.
-
getText
String getText()The string content of the `text` part.
string text = 1;- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()The string content of the `text` part.
string text = 1;- Returns:
- The bytes for text.
-
hasRaw
boolean hasRaw()The `raw` byte content of a file. In JSON serialization, this is encoded as a base64 string.
bytes raw = 2;- Returns:
- Whether the raw field is set.
-
getRaw
com.google.protobuf.ByteString getRaw()The `raw` byte content of a file. In JSON serialization, this is encoded as a base64 string.
bytes raw = 2;- Returns:
- The raw.
-
hasUrl
boolean hasUrl()A `url` pointing to the file's content.
string url = 3;- Returns:
- Whether the url field is set.
-
getUrl
String getUrl()A `url` pointing to the file's content.
string url = 3;- Returns:
- The url.
-
getUrlBytes
com.google.protobuf.ByteString getUrlBytes()A `url` pointing to the file's content.
string url = 3;- Returns:
- The bytes for url.
-
hasData
boolean hasData()Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).
.google.protobuf.Value data = 4;- Returns:
- Whether the data field is set.
-
getData
com.google.protobuf.Value getData()Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).
.google.protobuf.Value data = 4;- Returns:
- The data.
-
getDataOrBuilder
com.google.protobuf.ValueOrBuilder getDataOrBuilder()Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).
.google.protobuf.Value data = 4; -
hasMetadata
boolean hasMetadata()Optional. metadata associated with this part.
.google.protobuf.Struct metadata = 5;- Returns:
- Whether the metadata field is set.
-
getMetadata
com.google.protobuf.Struct getMetadata()Optional. metadata associated with this part.
.google.protobuf.Struct metadata = 5;- Returns:
- The metadata.
-
getMetadataOrBuilder
com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Optional. metadata associated with this part.
.google.protobuf.Struct metadata = 5; -
getFilename
String getFilename()An optional `filename` for the file (e.g., "document.pdf").
string filename = 6;- Returns:
- The filename.
-
getFilenameBytes
com.google.protobuf.ByteString getFilenameBytes()An optional `filename` for the file (e.g., "document.pdf").
string filename = 6;- Returns:
- The bytes for filename.
-
getMediaType
String getMediaType()The `media_type` (MIME type) of the part content (e.g., "text/plain", "application/json", "image/png"). This field is available for all part types.
string media_type = 7;- Returns:
- The mediaType.
-
getMediaTypeBytes
com.google.protobuf.ByteString getMediaTypeBytes()The `media_type` (MIME type) of the part content (e.g., "text/plain", "application/json", "image/png"). This field is available for all part types.
string media_type = 7;- Returns:
- The bytes for mediaType.
-
getContentCase
Part.ContentCase getContentCase()
-