Class MessageResponse (1.6.3) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 1.6.3keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  MessageResponse   extends   GeneratedMessageV3   implements   MessageResponseOrBuilder  
   
   Response containing a list of messages. Upon delivering a MessageResponse to
 the client, the server:
Updates the stream's delivery cursor to one greater than the cursor of the
last message in the list. 
Subtracts the total number of bytes and messages from the tokens available
to the server. 
 
 Protobuf type google.cloud.pubsublite.v1.MessageResponse
 
  
  
  
  Static Fields
   
  MESSAGES_FIELD_NUMBER 
  
    
public   static   final   int   MESSAGES_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   MessageResponse   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   MessageResponse . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(MessageResponse prototype) 
  
    
public   static   MessageResponse . Builder   newBuilder ( MessageResponse   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   MessageResponse   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   MessageResponse   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   MessageResponse   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   MessageResponse   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   MessageResponse   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   MessageResponse   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   MessageResponse   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   MessageResponse   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   MessageResponse   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   MessageResponse   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   MessageResponse   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   MessageResponse   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<MessageResponse>   parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   MessageResponse   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getMessages(int index) 
  
    
public   SequencedMessage   getMessages ( int   index )  
   
   Messages from the topic partition.
 repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getMessagesCount() 
  
    
public   int   getMessagesCount ()  
   
   Messages from the topic partition.
 repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
 
  Returns 
  
   
  getMessagesList() 
  
    
public   List<SequencedMessage>   getMessagesList ()  
   
   Messages from the topic partition.
 repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
 
  Returns 
  
   
  getMessagesOrBuilder(int index) 
  
    
public   SequencedMessageOrBuilder   getMessagesOrBuilder ( int   index )  
   
   Messages from the topic partition.
 repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getMessagesOrBuilderList() 
  
    
public   List <?   extends   SequencedMessageOrBuilder >  getMessagesOrBuilderList ()  
   
   Messages from the topic partition.
 repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        List <? extends com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder > 
         
       
     
  
   
  getParserForType() 
  
    
public   Parser<MessageResponse>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   MessageResponse . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   MessageResponse . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   MessageResponse . 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."],[],[]]