@@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313See the License for the specific language governing permissions and
1414limitations under the License.
1515"""
16-
1716import builtins
1817import collections .abc
1918import google .protobuf .any_pb2
@@ -31,13 +30,13 @@ else:
3130
3231DESCRIPTOR : google .protobuf .descriptor .FileDescriptor
3332
34- @typing .final
33+ @typing_extensions .final
3534class HTTPExtension (google .protobuf .message .Message ):
3635 """HTTPExtension includes HTTP verb and querystring
3736 when Dapr runtime delivers HTTP content.
3837
3938 For example, when callers calls http invoke api
40- POST http://localhost:3500/v1.0/invoke/<app_id>/method/<method>?query1=value1&query2=value2
39+ ` POST http://localhost:3500/v1.0/invoke/<app_id>/method/<method>?query1=value1&query2=value2`
4140
4241 Dapr runtime will parse POST as a verb and extract querystring to quersytring map.
4342 """
@@ -90,11 +89,11 @@ class HTTPExtension(google.protobuf.message.Message):
9089 verb : global___HTTPExtension .Verb .ValueType = ...,
9190 querystring : builtins .str = ...,
9291 ) -> None : ...
93- def ClearField (self , field_name : typing .Literal ["querystring" , b"querystring" , "verb" , b"verb" ]) -> None : ...
92+ def ClearField (self , field_name : typing_extensions .Literal ["querystring" , b"querystring" , "verb" , b"verb" ]) -> None : ...
9493
9594global___HTTPExtension = HTTPExtension
9695
97- @typing .final
96+ @typing_extensions .final
9897class InvokeRequest (google .protobuf .message .Message ):
9998 """InvokeRequest is the message to invoke a method with the data.
10099 This message is used in InvokeService of Dapr gRPC Service and OnInvoke
@@ -109,26 +108,24 @@ class InvokeRequest(google.protobuf.message.Message):
109108 HTTP_EXTENSION_FIELD_NUMBER : builtins .int
110109 method : builtins .str
111110 """Required. method is a method name which will be invoked by caller."""
112- content_type : builtins .str
113- """The type of data content.
114-
115- This field is required if data delivers http request body
116- Otherwise, this is optional.
117- """
118111 @property
119112 def data (self ) -> google .protobuf .any_pb2 .Any :
120113 """Required in unary RPCs. Bytes value or Protobuf message which caller sent.
121114 Dapr treats Any.value as bytes type if Any.type_url is unset.
122115 """
116+ content_type : builtins .str
117+ """The type of data content.
123118
119+ This field is required if data delivers http request body
120+ Otherwise, this is optional.
121+ """
124122 @property
125123 def http_extension (self ) -> global___HTTPExtension :
126124 """HTTP specific fields if request conveys http-compatible request.
127125
128126 This field is required for http-compatible request. Otherwise,
129127 this field is optional.
130128 """
131-
132129 def __init__ (
133130 self ,
134131 * ,
@@ -137,12 +134,12 @@ class InvokeRequest(google.protobuf.message.Message):
137134 content_type : builtins .str = ...,
138135 http_extension : global___HTTPExtension | None = ...,
139136 ) -> None : ...
140- def HasField (self , field_name : typing .Literal ["data" , b"data" , "http_extension" , b"http_extension" ]) -> builtins .bool : ...
141- def ClearField (self , field_name : typing .Literal ["content_type" , b"content_type" , "data" , b"data" , "http_extension" , b"http_extension" , "method" , b"method" ]) -> None : ...
137+ def HasField (self , field_name : typing_extensions .Literal ["data" , b"data" , "http_extension" , b"http_extension" ]) -> builtins .bool : ...
138+ def ClearField (self , field_name : typing_extensions .Literal ["content_type" , b"content_type" , "data" , b"data" , "http_extension" , b"http_extension" , "method" , b"method" ]) -> None : ...
142139
143140global___InvokeRequest = InvokeRequest
144141
145- @typing .final
142+ @typing_extensions .final
146143class InvokeResponse (google .protobuf .message .Message ):
147144 """InvokeResponse is the response message including data and its content type
148145 from app callback.
@@ -154,24 +151,23 @@ class InvokeResponse(google.protobuf.message.Message):
154151
155152 DATA_FIELD_NUMBER : builtins .int
156153 CONTENT_TYPE_FIELD_NUMBER : builtins .int
157- content_type : builtins .str
158- """Required. The type of data content."""
159154 @property
160155 def data (self ) -> google .protobuf .any_pb2 .Any :
161156 """Required in unary RPCs. The content body of InvokeService response."""
162-
157+ content_type : builtins .str
158+ """Required. The type of data content."""
163159 def __init__ (
164160 self ,
165161 * ,
166162 data : google .protobuf .any_pb2 .Any | None = ...,
167163 content_type : builtins .str = ...,
168164 ) -> None : ...
169- def HasField (self , field_name : typing .Literal ["data" , b"data" ]) -> builtins .bool : ...
170- def ClearField (self , field_name : typing .Literal ["content_type" , b"content_type" , "data" , b"data" ]) -> None : ...
165+ def HasField (self , field_name : typing_extensions .Literal ["data" , b"data" ]) -> builtins .bool : ...
166+ def ClearField (self , field_name : typing_extensions .Literal ["content_type" , b"content_type" , "data" , b"data" ]) -> None : ...
171167
172168global___InvokeResponse = InvokeResponse
173169
174- @typing .final
170+ @typing_extensions .final
175171class StreamPayload (google .protobuf .message .Message ):
176172 """Chunk of data sent in a streaming request or response.
177173 This is used in requests including InternalInvokeRequestStream.
@@ -195,17 +191,17 @@ class StreamPayload(google.protobuf.message.Message):
195191 data : builtins .bytes = ...,
196192 seq : builtins .int = ...,
197193 ) -> None : ...
198- def ClearField (self , field_name : typing .Literal ["data" , b"data" , "seq" , b"seq" ]) -> None : ...
194+ def ClearField (self , field_name : typing_extensions .Literal ["data" , b"data" , "seq" , b"seq" ]) -> None : ...
199195
200196global___StreamPayload = StreamPayload
201197
202- @typing .final
198+ @typing_extensions .final
203199class StateItem (google .protobuf .message .Message ):
204200 """StateItem represents state key, value, and additional options to save state."""
205201
206202 DESCRIPTOR : google .protobuf .descriptor .Descriptor
207203
208- @typing .final
204+ @typing_extensions .final
209205 class MetadataEntry (google .protobuf .message .Message ):
210206 DESCRIPTOR : google .protobuf .descriptor .Descriptor
211207
@@ -219,7 +215,7 @@ class StateItem(google.protobuf.message.Message):
219215 key : builtins .str = ...,
220216 value : builtins .str = ...,
221217 ) -> None : ...
222- def ClearField (self , field_name : typing .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
218+ def ClearField (self , field_name : typing_extensions .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
223219
224220 KEY_FIELD_NUMBER : builtins .int
225221 VALUE_FIELD_NUMBER : builtins .int
@@ -235,15 +231,12 @@ class StateItem(google.protobuf.message.Message):
235231 """The entity tag which represents the specific version of data.
236232 The exact ETag format is defined by the corresponding data store.
237233 """
238-
239234 @property
240235 def metadata (self ) -> google .protobuf .internal .containers .ScalarMap [builtins .str , builtins .str ]:
241236 """The metadata which will be passed to state store component."""
242-
243237 @property
244238 def options (self ) -> global___StateOptions :
245239 """Options for concurrency and consistency to save the state."""
246-
247240 def __init__ (
248241 self ,
249242 * ,
@@ -253,12 +246,12 @@ class StateItem(google.protobuf.message.Message):
253246 metadata : collections .abc .Mapping [builtins .str , builtins .str ] | None = ...,
254247 options : global___StateOptions | None = ...,
255248 ) -> None : ...
256- def HasField (self , field_name : typing .Literal ["etag" , b"etag" , "options" , b"options" ]) -> builtins .bool : ...
257- def ClearField (self , field_name : typing .Literal ["etag" , b"etag" , "key" , b"key" , "metadata" , b"metadata" , "options" , b"options" , "value" , b"value" ]) -> None : ...
249+ def HasField (self , field_name : typing_extensions .Literal ["etag" , b"etag" , "options" , b"options" ]) -> builtins .bool : ...
250+ def ClearField (self , field_name : typing_extensions .Literal ["etag" , b"etag" , "key" , b"key" , "metadata" , b"metadata" , "options" , b"options" , "value" , b"value" ]) -> None : ...
258251
259252global___StateItem = StateItem
260253
261- @typing .final
254+ @typing_extensions .final
262255class Etag (google .protobuf .message .Message ):
263256 """Etag represents a state item version"""
264257
@@ -272,11 +265,11 @@ class Etag(google.protobuf.message.Message):
272265 * ,
273266 value : builtins .str = ...,
274267 ) -> None : ...
275- def ClearField (self , field_name : typing .Literal ["value" , b"value" ]) -> None : ...
268+ def ClearField (self , field_name : typing_extensions .Literal ["value" , b"value" ]) -> None : ...
276269
277270global___Etag = Etag
278271
279- @typing .final
272+ @typing_extensions .final
280273class StateOptions (google .protobuf .message .Message ):
281274 """StateOptions configures concurrency and consistency for state operations"""
282275
@@ -326,17 +319,17 @@ class StateOptions(google.protobuf.message.Message):
326319 concurrency : global___StateOptions .StateConcurrency .ValueType = ...,
327320 consistency : global___StateOptions .StateConsistency .ValueType = ...,
328321 ) -> None : ...
329- def ClearField (self , field_name : typing .Literal ["concurrency" , b"concurrency" , "consistency" , b"consistency" ]) -> None : ...
322+ def ClearField (self , field_name : typing_extensions .Literal ["concurrency" , b"concurrency" , "consistency" , b"consistency" ]) -> None : ...
330323
331324global___StateOptions = StateOptions
332325
333- @typing .final
326+ @typing_extensions .final
334327class ConfigurationItem (google .protobuf .message .Message ):
335328 """ConfigurationItem represents all the configuration with its name(key)."""
336329
337330 DESCRIPTOR : google .protobuf .descriptor .Descriptor
338331
339- @typing .final
332+ @typing_extensions .final
340333 class MetadataEntry (google .protobuf .message .Message ):
341334 DESCRIPTOR : google .protobuf .descriptor .Descriptor
342335
@@ -350,7 +343,7 @@ class ConfigurationItem(google.protobuf.message.Message):
350343 key : builtins .str = ...,
351344 value : builtins .str = ...,
352345 ) -> None : ...
353- def ClearField (self , field_name : typing .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
346+ def ClearField (self , field_name : typing_extensions .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
354347
355348 VALUE_FIELD_NUMBER : builtins .int
356349 VERSION_FIELD_NUMBER : builtins .int
@@ -362,14 +355,13 @@ class ConfigurationItem(google.protobuf.message.Message):
362355 @property
363356 def metadata (self ) -> google .protobuf .internal .containers .ScalarMap [builtins .str , builtins .str ]:
364357 """the metadata which will be passed to/from configuration store component."""
365-
366358 def __init__ (
367359 self ,
368360 * ,
369361 value : builtins .str = ...,
370362 version : builtins .str = ...,
371363 metadata : collections .abc .Mapping [builtins .str , builtins .str ] | None = ...,
372364 ) -> None : ...
373- def ClearField (self , field_name : typing .Literal ["metadata" , b"metadata" , "value" , b"value" , "version" , b"version" ]) -> None : ...
365+ def ClearField (self , field_name : typing_extensions .Literal ["metadata" , b"metadata" , "value" , b"value" , "version" , b"version" ]) -> None : ...
374366
375367global___ConfigurationItem = ConfigurationItem
0 commit comments