Skip to content

Commit 5a74b29

Browse files
committed
Update generated files
1 parent 441aa4c commit 5a74b29

File tree

174 files changed

+2137
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+2137
-40
lines changed

src/firestore/src/generated/gapic/model.rs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ pub struct BitSequence {
9696
/// If the length of `bitmap` is zero, then this value must be `0`.
9797
/// Otherwise, this value must be between 0 and 7, inclusive.
9898
#[serde(skip_serializing_if = "wkt::internal::is_default")]
99+
#[serde_as(as = "wkt::internal::I32")]
99100
pub padding: i32,
100101

101102
#[serde(flatten, skip_serializing_if = "serde_json::Map::is_empty")]
@@ -152,6 +153,7 @@ pub struct BloomFilter {
152153

153154
/// The number of hashes used by the algorithm.
154155
#[serde(skip_serializing_if = "wkt::internal::is_default")]
156+
#[serde_as(as = "wkt::internal::I32")]
155157
pub hash_count: i32,
156158

157159
#[serde(flatten, skip_serializing_if = "serde_json::Map::is_empty")]
@@ -1453,6 +1455,7 @@ pub struct ListDocumentsRequest {
14531455
///
14541456
/// Firestore may return fewer than this value.
14551457
#[serde(skip_serializing_if = "wkt::internal::is_default")]
1458+
#[serde_as(as = "wkt::internal::I32")]
14561459
pub page_size: i32,
14571460

14581461
/// Optional. A page token, received from a previous `ListDocuments` response.
@@ -3025,6 +3028,7 @@ pub struct RunQueryResponse {
30253028
/// The number of results that have been skipped due to an offset between
30263029
/// the last response and the current response.
30273030
#[serde(skip_serializing_if = "wkt::internal::is_default")]
3031+
#[serde_as(as = "wkt::internal::I32")]
30283032
pub skipped_results: i32,
30293033

30303034
/// Query explain metrics. This is only present when the
@@ -3651,6 +3655,7 @@ pub struct PartitionQueryRequest {
36513655
/// if more results exist. A second call to PartitionQuery will return up to
36523656
/// 2 partitions, to complete the total of 10 specified in `partition_count`.
36533657
#[serde(skip_serializing_if = "wkt::internal::is_default")]
3658+
#[serde_as(as = "wkt::internal::I32")]
36543659
pub page_size: i32,
36553660

36563661
/// The query to partition.
@@ -4266,7 +4271,7 @@ pub mod listen_request {
42664271
/// A target to add to this stream.
42674272
AddTarget(std::boxed::Box<crate::model::Target>),
42684273
/// The ID of a target to remove from this stream.
4269-
RemoveTarget(i32),
4274+
RemoveTarget(#[serde_as(as = "wkt::internal::I32")] i32),
42704275
}
42714276

42724277
impl TargetChange {
@@ -4567,6 +4572,7 @@ pub struct Target {
45674572
/// If `target_id` is non-zero, there must not be an existing active target on
45684573
/// this stream with the same ID.
45694574
#[serde(skip_serializing_if = "wkt::internal::is_default")]
4575+
#[serde_as(as = "wkt::internal::I32")]
45704576
pub target_id: i32,
45714577

45724578
/// If the target should be removed once it is current and consistent.
@@ -4580,6 +4586,7 @@ pub struct Target {
45804586
/// being present and greater than zero signals that the client wants
45814587
/// `ExistenceFilter.unchanged_names` to be included in the response.
45824588
#[serde(skip_serializing_if = "std::option::Option::is_none")]
4589+
#[serde_as(as = "std::option::Option<wkt::internal::I32>")]
45834590
pub expected_count: std::option::Option<wkt::Int32Value>,
45844591

45854592
/// The type of target to listen to.
@@ -5007,6 +5014,7 @@ pub struct TargetChange {
50075014
///
50085015
/// The order of the target IDs is not defined.
50095016
#[serde(skip_serializing_if = "std::vec::Vec::is_empty")]
5017+
#[serde_as(as = "std::vec::Vec<wkt::internal::I32>")]
50105018
pub target_ids: std::vec::Vec<i32>,
50115019

50125020
/// The error that resulted in this change, if applicable.
@@ -5295,6 +5303,7 @@ pub struct ListCollectionIdsRequest {
52955303

52965304
/// The maximum number of results to return.
52975305
#[serde(skip_serializing_if = "wkt::internal::is_default")]
5306+
#[serde_as(as = "wkt::internal::I32")]
52985307
pub page_size: i32,
52995308

53005309
/// A page token. Must be a value from
@@ -5713,6 +5722,7 @@ pub struct StructuredQuery {
57135722
///
57145723
/// * The value must be greater than or equal to zero if specified.
57155724
#[serde(skip_serializing_if = "wkt::internal::is_default")]
5725+
#[serde_as(as = "wkt::internal::I32")]
57165726
pub offset: i32,
57175727

57185728
/// The maximum number of results to return.
@@ -5723,6 +5733,7 @@ pub struct StructuredQuery {
57235733
///
57245734
/// * The value must be greater than or equal to zero if specified.
57255735
#[serde(skip_serializing_if = "std::option::Option::is_none")]
5736+
#[serde_as(as = "std::option::Option<wkt::internal::I32>")]
57265737
pub limit: std::option::Option<wkt::Int32Value>,
57275738

57285739
/// Optional. A potential nearest neighbors search.
@@ -7079,6 +7090,7 @@ pub mod structured_query {
70797090
/// Required. The number of nearest neighbors to return. Must be a positive
70807091
/// integer of no more than 1000.
70817092
#[serde(skip_serializing_if = "std::option::Option::is_none")]
7093+
#[serde_as(as = "std::option::Option<wkt::internal::I32>")]
70827094
pub limit: std::option::Option<wkt::Int32Value>,
70837095

70847096
/// Optional. Optional name of the field to output the result of the vector
@@ -9223,10 +9235,12 @@ pub struct DocumentChange {
92239235

92249236
/// A set of target IDs of targets that match this document.
92259237
#[serde(skip_serializing_if = "std::vec::Vec::is_empty")]
9238+
#[serde_as(as = "std::vec::Vec<wkt::internal::I32>")]
92269239
pub target_ids: std::vec::Vec<i32>,
92279240

92289241
/// A set of target IDs for targets that no longer match this document.
92299242
#[serde(skip_serializing_if = "std::vec::Vec::is_empty")]
9243+
#[serde_as(as = "std::vec::Vec<wkt::internal::I32>")]
92309244
pub removed_target_ids: std::vec::Vec<i32>,
92319245

92329246
#[serde(flatten, skip_serializing_if = "serde_json::Map::is_empty")]
@@ -9311,6 +9325,7 @@ pub struct DocumentDelete {
93119325

93129326
/// A set of target IDs for targets that previously matched this entity.
93139327
#[serde(skip_serializing_if = "std::vec::Vec::is_empty")]
9328+
#[serde_as(as = "std::vec::Vec<wkt::internal::I32>")]
93149329
pub removed_target_ids: std::vec::Vec<i32>,
93159330

93169331
/// The read timestamp at which the delete was observed.
@@ -9397,6 +9412,7 @@ pub struct DocumentRemove {
93979412

93989413
/// A set of target IDs for targets that previously matched this document.
93999414
#[serde(skip_serializing_if = "std::vec::Vec::is_empty")]
9415+
#[serde_as(as = "std::vec::Vec<wkt::internal::I32>")]
94009416
pub removed_target_ids: std::vec::Vec<i32>,
94019417

94029418
/// The read timestamp at which the remove was observed.
@@ -9464,6 +9480,7 @@ impl wkt::message::Message for DocumentRemove {
94649480
pub struct ExistenceFilter {
94659481
/// The target ID to which this filter applies.
94669482
#[serde(skip_serializing_if = "wkt::internal::is_default")]
9483+
#[serde_as(as = "wkt::internal::I32")]
94679484
pub target_id: i32,
94689485

94699486
/// The total count of documents that match
@@ -9479,6 +9496,7 @@ pub struct ExistenceFilter {
94799496
///
94809497
/// [google.firestore.v1.ExistenceFilter.target_id]: crate::model::ExistenceFilter::target_id
94819498
#[serde(skip_serializing_if = "wkt::internal::is_default")]
9499+
#[serde_as(as = "wkt::internal::I32")]
94829500
pub count: i32,
94839501

94849502
/// A bloom filter that, despite its name, contains the UTF-8 byte encodings of

src/generated/api/apikeys/v2/src/model.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ pub struct ListKeysRequest {
118118

119119
/// Optional. Specifies the maximum number of results to be returned at a time.
120120
#[serde(skip_serializing_if = "wkt::internal::is_default")]
121+
#[serde_as(as = "wkt::internal::I32")]
121122
pub page_size: i32,
122123

123124
/// Optional. Requests a specific page of results.

src/generated/api/cloudquotas/v1/src/model.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pub struct ListQuotaInfosRequest {
5050
/// Optional. Requested page size. Server may return fewer items than
5151
/// requested. If unspecified, server will pick an appropriate default.
5252
#[serde(skip_serializing_if = "wkt::internal::is_default")]
53+
#[serde_as(as = "wkt::internal::I32")]
5354
pub page_size: i32,
5455

5556
/// Optional. A token identifying a page of results the server should return.
@@ -209,6 +210,7 @@ pub struct ListQuotaPreferencesRequest {
209210
/// Optional. Requested page size. Server may return fewer items than
210211
/// requested. If unspecified, server will pick an appropriate default.
211212
#[serde(skip_serializing_if = "wkt::internal::is_default")]
213+
#[serde_as(as = "wkt::internal::I32")]
212214
pub page_size: i32,
213215

214216
/// Optional. A token identifying a page of results the server should return.

src/generated/api/servicecontrol/v1/src/model.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ pub mod distribution {
680680
/// the total number of buckets is `num_finite_buckets` + 2.
681681
/// See comments on `bucket_options` for details.
682682
#[serde(skip_serializing_if = "wkt::internal::is_default")]
683+
#[serde_as(as = "wkt::internal::I32")]
683684
pub num_finite_buckets: i32,
684685

685686
/// The i'th linear bucket covers the interval
@@ -741,6 +742,7 @@ pub mod distribution {
741742
/// the total number of buckets is `num_finite_buckets` + 2.
742743
/// See comments on `bucket_options` for details.
743744
#[serde(skip_serializing_if = "wkt::internal::is_default")]
745+
#[serde_as(as = "wkt::internal::I32")]
744746
pub num_finite_buckets: i32,
745747

746748
/// The i'th exponential bucket covers the interval
@@ -909,6 +911,7 @@ pub struct HttpRequest {
909911
/// The response code indicating the status of the response.
910912
/// Examples: 200, 404.
911913
#[serde(skip_serializing_if = "wkt::internal::is_default")]
914+
#[serde_as(as = "wkt::internal::I32")]
912915
pub status: i32,
913916

914917
/// The size of the HTTP response message sent back to the client, in bytes,

src/generated/api/servicemanagement/v1/src/model.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ pub struct OperationMetadata {
9999

100100
/// Percentage of completion of this operation, ranging from 0 to 100.
101101
#[serde(skip_serializing_if = "wkt::internal::is_default")]
102+
#[serde_as(as = "wkt::internal::I32")]
102103
pub progress_percentage: i32,
103104

104105
/// The start time of the operation.
@@ -1382,6 +1383,7 @@ pub struct ListServicesRequest {
13821383
/// The max number of items to include in the response list. Page size is 50
13831384
/// if not specified. Maximum value is 500.
13841385
#[serde(skip_serializing_if = "wkt::internal::is_default")]
1386+
#[serde_as(as = "wkt::internal::I32")]
13851387
pub page_size: i32,
13861388

13871389
/// Token identifying which result to start with; returned by a previous list
@@ -1905,6 +1907,7 @@ pub struct ListServiceConfigsRequest {
19051907
/// The max number of items to include in the response list. Page size is 50
19061908
/// if not specified. Maximum value is 100.
19071909
#[serde(skip_serializing_if = "wkt::internal::is_default")]
1910+
#[serde_as(as = "wkt::internal::I32")]
19081911
pub page_size: i32,
19091912

19101913
#[serde(flatten, skip_serializing_if = "serde_json::Map::is_empty")]
@@ -2245,6 +2248,7 @@ pub struct ListServiceRolloutsRequest {
22452248
/// The max number of items to include in the response list. Page size is 50
22462249
/// if not specified. Maximum value is 100.
22472250
#[serde(skip_serializing_if = "wkt::internal::is_default")]
2251+
#[serde_as(as = "wkt::internal::I32")]
22482252
pub page_size: i32,
22492253

22502254
/// Required. Use `filter` to return subset of rollouts.

src/generated/api/serviceusage/v1/src/model.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ pub struct ListServicesRequest {
757757
/// Requested page size cannot exceed 200.
758758
/// If not set, the default page size is 50.
759759
#[serde(skip_serializing_if = "wkt::internal::is_default")]
760+
#[serde_as(as = "wkt::internal::I32")]
760761
pub page_size: i32,
761762

762763
/// Token identifying which result to start with, which is returned by a

src/generated/api/types/src/model.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3656,6 +3656,7 @@ pub mod distribution {
36563656
pub struct Linear {
36573657
/// Must be greater than 0.
36583658
#[serde(skip_serializing_if = "wkt::internal::is_default")]
3659+
#[serde_as(as = "wkt::internal::I32")]
36593660
pub num_finite_buckets: i32,
36603661

36613662
/// Must be greater than 0.
@@ -3719,6 +3720,7 @@ pub mod distribution {
37193720
pub struct Exponential {
37203721
/// Must be greater than 0.
37213722
#[serde(skip_serializing_if = "wkt::internal::is_default")]
3723+
#[serde_as(as = "wkt::internal::I32")]
37223724
pub num_finite_buckets: i32,
37233725

37243726
/// Must be greater than 1.
@@ -8926,6 +8928,7 @@ pub struct Service {
89268928
/// This field has no semantic meaning. The service config compiler always
89278929
/// sets this field to `3`.
89288930
#[serde(skip_serializing_if = "std::option::Option::is_none")]
8931+
#[serde_as(as = "std::option::Option<_>")]
89298932
pub config_version: std::option::Option<wkt::UInt32Value>,
89308933

89318934
#[serde(flatten, skip_serializing_if = "serde_json::Map::is_empty")]

0 commit comments

Comments
 (0)