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 Type
    Method
    Description
     
    com.google.protobuf.Value
    Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).
    com.google.protobuf.ValueOrBuilder
    Arbitrary 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.ByteString
    An 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.ByteString
    The `media_type` (MIME type) of the part content (e.g., "text/plain", "application/json", "image/png").
    com.google.protobuf.Struct
    Optional. metadata associated with this part.
    com.google.protobuf.StructOrBuilder
    Optional. metadata associated with this part.
    com.google.protobuf.ByteString
    The `raw` byte content of a file.
    The string content of the `text` part.
    com.google.protobuf.ByteString
    The string content of the `text` part.
    A `url` pointing to the file's content.
    com.google.protobuf.ByteString
    A `url` pointing to the file's content.
    boolean
    Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).
    boolean
    Optional. metadata associated with this part.
    boolean
    The `raw` byte content of a file.
    boolean
    The string content of the `text` part.
    boolean
    A `url` pointing to the file's content.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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()