Class SequencedMessage (1.8.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 1.8.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  SequencedMessage   extends   GeneratedMessageV3   implements   SequencedMessageOrBuilder  
   
   A message that has been stored and sequenced by the Pub/Sub Lite system.
 Protobuf type google.cloud.pubsublite.v1.SequencedMessage
 
  
  
  
  Static Fields
   
  CURSOR_FIELD_NUMBER 
  
    
public   static   final   int   CURSOR_FIELD_NUMBER  
   
  Field Value 
  
  MESSAGE_FIELD_NUMBER 
  
    
public   static   final   int   MESSAGE_FIELD_NUMBER  
   
  Field Value 
  
  PUBLISH_TIME_FIELD_NUMBER 
  
    
public   static   final   int   PUBLISH_TIME_FIELD_NUMBER  
   
  Field Value 
  
  SIZE_BYTES_FIELD_NUMBER 
  
    
public   static   final   int   SIZE_BYTES_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   SequencedMessage   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   SequencedMessage . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(SequencedMessage prototype) 
  
    
public   static   SequencedMessage . Builder   newBuilder ( SequencedMessage   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   SequencedMessage   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SequencedMessage   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   SequencedMessage   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SequencedMessage   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   SequencedMessage   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SequencedMessage   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SequencedMessage   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SequencedMessage   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SequencedMessage   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SequencedMessage   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   SequencedMessage   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SequencedMessage   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<SequencedMessage>   parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getCursor() 
  
    
public   Cursor   getCursor ()  
   
   The position of a message within the partition where it is stored.
 .google.cloud.pubsublite.v1.Cursor cursor = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        Cursor  
        The cursor.
 
       
     
  
   
  getCursorOrBuilder() 
  
    
public   CursorOrBuilder   getCursorOrBuilder ()  
   
   The position of a message within the partition where it is stored.
 .google.cloud.pubsublite.v1.Cursor cursor = 1;
 
  Returns 
  
   
  getDefaultInstanceForType() 
  
    
public   SequencedMessage   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getMessage() 
  
    
public   PubSubMessage   getMessage ()  
   
   The user message.
 .google.cloud.pubsublite.v1.PubSubMessage message = 3;
 
  Returns 
  
   
  getMessageOrBuilder() 
  
    
public   PubSubMessageOrBuilder   getMessageOrBuilder ()  
   
   The user message.
 .google.cloud.pubsublite.v1.PubSubMessage message = 3;
 
  Returns 
  
   
  getParserForType() 
  
    
public   Parser<SequencedMessage>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getPublishTime() 
  
    
public   Timestamp   getPublishTime ()  
   
   The time when the message was received by the server when it was first
 published.
 .google.protobuf.Timestamp publish_time = 2;
 
  Returns 
  
   
  getPublishTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getPublishTimeOrBuilder ()  
   
   The time when the message was received by the server when it was first
 published.
 .google.protobuf.Timestamp publish_time = 2;
 
  Returns 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getSizeBytes() 
  
    
public   long   getSizeBytes ()  
   
   The size in bytes of this message for flow control and quota purposes.
 int64 size_bytes = 4;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        long  
        The sizeBytes.
 
       
     
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  hasCursor() 
  
    
public   boolean   hasCursor ()  
   
   The position of a message within the partition where it is stored.
 .google.cloud.pubsublite.v1.Cursor cursor = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the cursor field is set.
 
       
     
  
   
  hasMessage() 
  
    
public   boolean   hasMessage ()  
   
   The user message.
 .google.cloud.pubsublite.v1.PubSubMessage message = 3;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the message field is set.
 
       
     
  
   
  hasPublishTime() 
  
    
public   boolean   hasPublishTime ()  
   
   The time when the message was received by the server when it was first
 published.
 .google.protobuf.Timestamp publish_time = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the publishTime field is set.
 
       
     
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   SequencedMessage . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   SequencedMessage . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   SequencedMessage . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]