@@ -145,16 +145,48 @@ class ChatAttachments(google.protobuf.message.Message):
145
145
146
146
DESCRIPTOR : google .protobuf .descriptor .Descriptor
147
147
148
- FILE_URLS_FIELD_NUMBER : builtins .int
148
+ @typing_extensions .final
149
+ class FileAttachment (google .protobuf .message .Message ):
150
+ """FileAttachment represents the file attachment for the message."""
151
+
152
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
153
+
154
+ FILE_NAME_FIELD_NUMBER : builtins .int
155
+ FILE_SIZE_FIELD_NUMBER : builtins .int
156
+ CONTENT_TYPE_FIELD_NUMBER : builtins .int
157
+ FILE_EXTENSION_FIELD_NUMBER : builtins .int
158
+ DOWNLOAD_URL_FIELD_NUMBER : builtins .int
159
+ file_name : builtins .str
160
+ """file name"""
161
+ file_size : builtins .int
162
+ """file size"""
163
+ content_type : builtins .str
164
+ """file type"""
165
+ file_extension : builtins .str
166
+ """file extension"""
167
+ download_url : builtins .str
168
+ """file download url"""
169
+ def __init__ (
170
+ self ,
171
+ * ,
172
+ file_name : builtins .str = ...,
173
+ file_size : builtins .int = ...,
174
+ content_type : builtins .str = ...,
175
+ file_extension : builtins .str = ...,
176
+ download_url : builtins .str = ...,
177
+ ) -> None : ...
178
+ def ClearField (self , field_name : typing_extensions .Literal ["content_type" , b"content_type" , "download_url" , b"download_url" , "file_extension" , b"file_extension" , "file_name" , b"file_name" , "file_size" , b"file_size" ]) -> None : ...
179
+
180
+ FILE_ATTACHMENTS_FIELD_NUMBER : builtins .int
149
181
@property
150
- def file_urls (self ) -> google .protobuf .internal .containers .RepeatedScalarFieldContainer [ builtins . str ]:
182
+ def file_attachments (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [ global___ChatAttachments . FileAttachment ]:
151
183
"""file urls (only for user messages)"""
152
184
def __init__ (
153
185
self ,
154
186
* ,
155
- file_urls : collections .abc .Iterable [builtins . str ] | None = ...,
187
+ file_attachments : collections .abc .Iterable [global___ChatAttachments . FileAttachment ] | None = ...,
156
188
) -> None : ...
157
- def ClearField (self , field_name : typing_extensions .Literal ["file_urls " , b"file_urls " ]) -> None : ...
189
+ def ClearField (self , field_name : typing_extensions .Literal ["file_attachments " , b"file_attachments " ]) -> None : ...
158
190
159
191
global___ChatAttachments = ChatAttachments
160
192
0 commit comments