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
    Optional.
    com.google.protobuf.ByteString
    Optional.
    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 unique identifier (e.g.
    com.google.protobuf.ByteString
    The unique identifier (e.g.
    com.google.protobuf.Struct
    Optional.
    com.google.protobuf.StructOrBuilder
    Optional.
    getParts(int index)
    Parts is the container of the message content.
    int
    Parts is the container of the message content.
    Parts is the container of the message content.
    getPartsOrBuilder(int index)
    Parts is the container of the message content.
    List<? extends PartOrBuilder>
    Parts is the container of the message content.
    A list of task IDs that this message references for additional context.
    com.google.protobuf.ByteString
    A list of task IDs that this message references for additional context.
    int
    A list of task IDs that this message references for additional context.
    A list of task IDs that this message references for additional context.
    Identifies the sender of the message.
    int
    Identifies the sender of the message.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    boolean
    Optional.

    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 unique identifier (e.g. UUID) of the message. This is created by the message creator.
       
      string message_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The messageId.
    • getMessageIdBytes

      com.google.protobuf.ByteString getMessageIdBytes()
       The unique identifier (e.g. UUID) of the message. This is created by the message creator.
       
      string message_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for messageId.
    • getContextId

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

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

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

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

      int getRoleValue()
       Identifies the sender of the message.
       
      .lf.a2a.v1.Role role = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enum numeric value on the wire for role.
    • getRole

      Role getRole()
       Identifies the sender of the message.
       
      .lf.a2a.v1.Role role = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The role.
    • getPartsList

      List<Part> getPartsList()
       Parts is the container of the message content.
       
      repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED];
    • getParts

      Part getParts(int index)
       Parts is the container of the message content.
       
      repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED];
    • getPartsCount

      int getPartsCount()
       Parts is the container of the message content.
       
      repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED];
    • getPartsOrBuilderList

      List<? extends PartOrBuilder> getPartsOrBuilderList()
       Parts is the container of the message content.
       
      repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED];
    • getPartsOrBuilder

      PartOrBuilder getPartsOrBuilder(int index)
       Parts is the container of the message content.
       
      repeated .lf.a2a.v1.Part parts = 5 [(.google.api.field_behavior) = REQUIRED];
    • hasMetadata

      boolean hasMetadata()
       Optional. Any 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()
       Optional. Any metadata to provide along with the message.
       
      .google.protobuf.Struct metadata = 6;
      Returns:
      The metadata.
    • getMetadataOrBuilder

      com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       Optional. Any 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.
    • getReferenceTaskIdsList

      List<String> getReferenceTaskIdsList()
       A list of task IDs that this message references for additional context.
       
      repeated string reference_task_ids = 8;
      Returns:
      A list containing the referenceTaskIds.
    • getReferenceTaskIdsCount

      int getReferenceTaskIdsCount()
       A list of task IDs that this message references for additional context.
       
      repeated string reference_task_ids = 8;
      Returns:
      The count of referenceTaskIds.
    • getReferenceTaskIds

      String getReferenceTaskIds(int index)
       A list of task IDs that this message references for additional context.
       
      repeated string reference_task_ids = 8;
      Parameters:
      index - The index of the element to return.
      Returns:
      The referenceTaskIds at the given index.
    • getReferenceTaskIdsBytes

      com.google.protobuf.ByteString getReferenceTaskIdsBytes(int index)
       A list of task IDs that this message references for additional context.
       
      repeated string reference_task_ids = 8;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the referenceTaskIds at the given index.