@@ -50,18 +50,16 @@ class InitialSubscribeRequest(proto.Message):
50
50
The partition from which to receive messages. Partitions are
51
51
zero indexed, so ``partition`` must be in the range [0,
52
52
topic.num_partitions).
53
- initial_cursor (google.cloud.pubsublite_v1.types.Cursor):
54
- Optional. Initial stream delivery cursor,
55
- pointing to anywhere in the topic partition.
56
- Cursors past head result in stream breakage. If
57
- not set, messages will be delivered from the
58
- commit cursor for the given subscription and
59
- partition.
53
+ initial_location (google.cloud.pubsublite_v1.types.SeekRequest):
54
+ Optional. Initial target location within the
55
+ message backlog. If not set, messages will be
56
+ delivered from the commit cursor for the given
57
+ subscription and partition.
60
58
"""
61
59
62
60
subscription = proto .Field (proto .STRING , number = 1 ,)
63
61
partition = proto .Field (proto .INT64 , number = 2 ,)
64
- initial_cursor = proto .Field (proto .MESSAGE , number = 3 , message = common . Cursor ,)
62
+ initial_location = proto .Field (proto .MESSAGE , number = 4 , message = "SeekRequest" ,)
65
63
66
64
67
65
class InitialSubscribeResponse (proto .Message ):
@@ -79,9 +77,11 @@ class InitialSubscribeResponse(proto.Message):
79
77
class SeekRequest (proto .Message ):
80
78
r"""Request to update the stream's delivery cursor based on the
81
79
given target. Resets the server available tokens to 0.
80
+ SeekRequests past head result in stream breakage.
81
+
82
82
SeekRequests may not be sent while another SeekRequest is
83
83
outstanding (i.e., has not received a SeekResponse) on the same
84
- stream. SeekRequests past head result in stream breakage.
84
+ stream.
85
85
86
86
Attributes:
87
87
named_target (google.cloud.pubsublite_v1.types.SeekRequest.NamedTarget):
0 commit comments