Interface MessageOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Message, Message.Builder

@Generated public interface MessageOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    getContent(int index)
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
    int
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
    List<? extends PartOrBuilder>
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container of the message content.
    The context id of the message.
    com.google.protobuf.ByteString
    The context id of the message.
    getExtensions(int index)
    The URIs of extensions that are present or contributed to this Message.
    com.google.protobuf.ByteString
    getExtensionsBytes(int index)
    The URIs of extensions that are present or contributed to this Message.
    int
    The URIs of extensions that are present or contributed to this Message.
    The URIs of extensions that are present or contributed to this Message.
    The message id of the message.
    com.google.protobuf.ByteString
    The message id of the message.
    com.google.protobuf.Struct
    protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
    com.google.protobuf.StructOrBuilder
    protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.
    A role for the message.
    int
    A role for the message.
    The task id of the message.
    com.google.protobuf.ByteString
    The task id of the message.
    boolean
    protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to provide along with the message.

    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

    • getMessageId

      String getMessageId()
       The message id of the message. This is required and created by the
       message creator.
       
      string message_id = 1;
      Returns:
      The messageId.
    • getMessageIdBytes

      com.google.protobuf.ByteString getMessageIdBytes()
       The message id of the message. This is required and created by the
       message creator.
       
      string message_id = 1;
      Returns:
      The bytes for messageId.
    • getContextId

      String getContextId()
       The context id of the message. This is optional and if set, the message
       will be associated with the given context.
       
      string context_id = 2;
      Returns:
      The contextId.
    • getContextIdBytes

      com.google.protobuf.ByteString getContextIdBytes()
       The context id of the message. This is optional and if set, the message
       will be associated with the given context.
       
      string context_id = 2;
      Returns:
      The bytes for contextId.
    • getTaskId

      String getTaskId()
       The task id of the message. This is optional and if set, the message
       will be associated with the given task.
       
      string task_id = 3;
      Returns:
      The taskId.
    • getTaskIdBytes

      com.google.protobuf.ByteString getTaskIdBytes()
       The task id of the message. This is optional and if set, the message
       will be associated with the given task.
       
      string task_id = 3;
      Returns:
      The bytes for taskId.
    • getRoleValue

      int getRoleValue()
       A role for the message.
       
      .a2a.v1.Role role = 4;
      Returns:
      The enum numeric value on the wire for role.
    • getRole

      Role getRole()
       A role for the message.
       
      .a2a.v1.Role role = 4;
      Returns:
      The role.
    • getContentList

      List<Part> getContentList()
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Content is the container of the message content.
       
      repeated .a2a.v1.Part content = 5;
    • getContent

      Part getContent(int index)
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Content is the container of the message content.
       
      repeated .a2a.v1.Part content = 5;
    • getContentCount

      int getContentCount()
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Content is the container of the message content.
       
      repeated .a2a.v1.Part content = 5;
    • getContentOrBuilderList

      List<? extends PartOrBuilder> getContentOrBuilderList()
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Content is the container of the message content.
       
      repeated .a2a.v1.Part content = 5;
    • getContentOrBuilder

      PartOrBuilder getContentOrBuilder(int index)
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Content is the container of the message content.
       
      repeated .a2a.v1.Part content = 5;
    • hasMetadata

      boolean hasMetadata()
       protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       Any optional metadata to provide along with the message.
       
      .google.protobuf.Struct metadata = 6;
      Returns:
      Whether the metadata field is set.
    • getMetadata

      com.google.protobuf.Struct getMetadata()
       protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       Any optional metadata to provide along with the message.
       
      .google.protobuf.Struct metadata = 6;
      Returns:
      The metadata.
    • getMetadataOrBuilder

      com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
       Any optional metadata to provide along with the message.
       
      .google.protobuf.Struct metadata = 6;
    • getExtensionsList

      List<String> getExtensionsList()
       The URIs of extensions that are present or contributed to this Message.
       
      repeated string extensions = 7;
      Returns:
      A list containing the extensions.
    • getExtensionsCount

      int getExtensionsCount()
       The URIs of extensions that are present or contributed to this Message.
       
      repeated string extensions = 7;
      Returns:
      The count of extensions.
    • getExtensions

      String getExtensions(int index)
       The URIs of extensions that are present or contributed to this Message.
       
      repeated string extensions = 7;
      Parameters:
      index - The index of the element to return.
      Returns:
      The extensions at the given index.
    • getExtensionsBytes

      com.google.protobuf.ByteString getExtensionsBytes(int index)
       The URIs of extensions that are present or contributed to this Message.
       
      repeated string extensions = 7;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the extensions at the given index.