Class SeekRequest (1.11.2) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 1.11.2keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  SeekRequest   extends   GeneratedMessageV3   implements   SeekRequestOrBuilder  
   
   Request to update the stream's delivery cursor based on the given target.
 Resets the server available tokens to 0. SeekRequests past head result in
 stream breakage.
 SeekRequests may not be sent while another SeekRequest is outstanding (i.e.,
 has not received a SeekResponse) on the same stream.
 Protobuf type google.cloud.pubsublite.v1.SeekRequest
 
  
  
  
  Static Fields
   
  CURSOR_FIELD_NUMBER 
  
    
public   static   final   int   CURSOR_FIELD_NUMBER  
   
  Field Value 
  
  NAMED_TARGET_FIELD_NUMBER 
  
    
public   static   final   int   NAMED_TARGET_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   SeekRequest   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   SeekRequest . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(SeekRequest prototype) 
  
    
public   static   SeekRequest . Builder   newBuilder ( SeekRequest   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   SeekRequest   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SeekRequest   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   SeekRequest   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SeekRequest   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   SeekRequest   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SeekRequest   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SeekRequest   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SeekRequest   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SeekRequest   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   SeekRequest   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   SeekRequest   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SeekRequest   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<SeekRequest>   parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getCursor() 
  
    
public   Cursor   getCursor ()  
   
   A target corresponding to the cursor, pointing to anywhere in the
 topic partition.
 .google.cloud.pubsublite.v1.Cursor cursor = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        Cursor  
        The cursor.
 
       
     
  
   
  getCursorOrBuilder() 
  
    
public   CursorOrBuilder   getCursorOrBuilder ()  
   
   A target corresponding to the cursor, pointing to anywhere in the
 topic partition.
 .google.cloud.pubsublite.v1.Cursor cursor = 2;
 
  Returns 
  
   
  getDefaultInstanceForType() 
  
    
public   SeekRequest   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getNamedTarget() 
  
    
public   SeekRequest . NamedTarget   getNamedTarget ()  
   
   A named target.
 .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
 
  Returns 
  
   
  getNamedTargetValue() 
  
    
public   int   getNamedTargetValue ()  
   
   A named target.
 .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The enum numeric value on the wire for namedTarget.
 
       
     
  
   
  getParserForType() 
  
    
public   Parser<SeekRequest>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getTargetCase() 
  
    
public   SeekRequest . TargetCase   getTargetCase ()  
   
  Returns 
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  hasCursor() 
  
    
public   boolean   hasCursor ()  
   
   A target corresponding to the cursor, pointing to anywhere in the
 topic partition.
 .google.cloud.pubsublite.v1.Cursor cursor = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the cursor field is set.
 
       
     
  
   
  hasNamedTarget() 
  
    
public   boolean   hasNamedTarget ()  
   
   A named target.
 .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the namedTarget field is set.
 
       
     
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   SeekRequest . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   SeekRequest . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   SeekRequest . 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."],[],[]]