google-cloud-channel-v1 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/channel/v1/channel_partner_links_pb.rb +26 -23
  3. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +4 -2
  4. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +3 -1
  5. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +4 -2
  6. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +7 -5
  7. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/service_stub.rb +3 -3
  8. data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +4 -2
  9. data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +3 -1
  10. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +4 -2
  11. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +7 -5
  12. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +46 -46
  13. data/lib/google/cloud/channel/v1/common_pb.rb +25 -50
  14. data/lib/google/cloud/channel/v1/customers_pb.rb +27 -24
  15. data/lib/google/cloud/channel/v1/entitlement_changes_pb.rb +26 -54
  16. data/lib/google/cloud/channel/v1/entitlements_pb.rb +28 -73
  17. data/lib/google/cloud/channel/v1/offers_pb.rb +28 -104
  18. data/lib/google/cloud/channel/v1/operations_pb.rb +24 -18
  19. data/lib/google/cloud/channel/v1/products_pb.rb +24 -24
  20. data/lib/google/cloud/channel/v1/reports_service_pb.rb +29 -94
  21. data/lib/google/cloud/channel/v1/repricing_pb.rb +27 -52
  22. data/lib/google/cloud/channel/v1/service_pb.rb +33 -345
  23. data/lib/google/cloud/channel/v1/subscriber_event_pb.rb +24 -35
  24. data/lib/google/cloud/channel/v1/version.rb +1 -1
  25. data/proto_docs/google/protobuf/any.rb +7 -4
  26. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  27. metadata +4 -4
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_customers_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_customer_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_check_cloud_identity_accounts_exist_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_create_customer_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_update_customer_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_customer_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_import_customer_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_provision_cloud_identity_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_list_entitlements_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_list_transferable_skus_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_list_transferable_offers_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_get_entitlement_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -515,7 +515,7 @@ module Google
515
515
 
516
516
  verb, uri, query_string_params, body = ServiceStub.transcode_create_entitlement_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
519
  else
520
520
  {}
521
521
  end
@@ -553,7 +553,7 @@ module Google
553
553
 
554
554
  verb, uri, query_string_params, body = ServiceStub.transcode_change_parameters_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_change_renewal_settings_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,7 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_change_offer_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
633
  else
634
634
  {}
635
635
  end
@@ -667,7 +667,7 @@ module Google
667
667
 
668
668
  verb, uri, query_string_params, body = ServiceStub.transcode_start_paid_service_request request_pb
669
669
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
671
671
  else
672
672
  {}
673
673
  end
@@ -705,7 +705,7 @@ module Google
705
705
 
706
706
  verb, uri, query_string_params, body = ServiceStub.transcode_suspend_entitlement_request request_pb
707
707
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
709
709
  else
710
710
  {}
711
711
  end
@@ -743,7 +743,7 @@ module Google
743
743
 
744
744
  verb, uri, query_string_params, body = ServiceStub.transcode_cancel_entitlement_request request_pb
745
745
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
747
747
  else
748
748
  {}
749
749
  end
@@ -781,7 +781,7 @@ module Google
781
781
 
782
782
  verb, uri, query_string_params, body = ServiceStub.transcode_activate_entitlement_request request_pb
783
783
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
785
785
  else
786
786
  {}
787
787
  end
@@ -819,7 +819,7 @@ module Google
819
819
 
820
820
  verb, uri, query_string_params, body = ServiceStub.transcode_transfer_entitlements_request request_pb
821
821
  query_string_params = if query_string_params.any?
822
- query_string_params.to_h { |p| p.split("=", 2) }
822
+ query_string_params.to_h { |p| p.split "=", 2 }
823
823
  else
824
824
  {}
825
825
  end
@@ -857,7 +857,7 @@ module Google
857
857
 
858
858
  verb, uri, query_string_params, body = ServiceStub.transcode_transfer_entitlements_to_google_request request_pb
859
859
  query_string_params = if query_string_params.any?
860
- query_string_params.to_h { |p| p.split("=", 2) }
860
+ query_string_params.to_h { |p| p.split "=", 2 }
861
861
  else
862
862
  {}
863
863
  end
@@ -895,7 +895,7 @@ module Google
895
895
 
896
896
  verb, uri, query_string_params, body = ServiceStub.transcode_list_channel_partner_links_request request_pb
897
897
  query_string_params = if query_string_params.any?
898
- query_string_params.to_h { |p| p.split("=", 2) }
898
+ query_string_params.to_h { |p| p.split "=", 2 }
899
899
  else
900
900
  {}
901
901
  end
@@ -933,7 +933,7 @@ module Google
933
933
 
934
934
  verb, uri, query_string_params, body = ServiceStub.transcode_get_channel_partner_link_request request_pb
935
935
  query_string_params = if query_string_params.any?
936
- query_string_params.to_h { |p| p.split("=", 2) }
936
+ query_string_params.to_h { |p| p.split "=", 2 }
937
937
  else
938
938
  {}
939
939
  end
@@ -971,7 +971,7 @@ module Google
971
971
 
972
972
  verb, uri, query_string_params, body = ServiceStub.transcode_create_channel_partner_link_request request_pb
973
973
  query_string_params = if query_string_params.any?
974
- query_string_params.to_h { |p| p.split("=", 2) }
974
+ query_string_params.to_h { |p| p.split "=", 2 }
975
975
  else
976
976
  {}
977
977
  end
@@ -1009,7 +1009,7 @@ module Google
1009
1009
 
1010
1010
  verb, uri, query_string_params, body = ServiceStub.transcode_update_channel_partner_link_request request_pb
1011
1011
  query_string_params = if query_string_params.any?
1012
- query_string_params.to_h { |p| p.split("=", 2) }
1012
+ query_string_params.to_h { |p| p.split "=", 2 }
1013
1013
  else
1014
1014
  {}
1015
1015
  end
@@ -1047,7 +1047,7 @@ module Google
1047
1047
 
1048
1048
  verb, uri, query_string_params, body = ServiceStub.transcode_get_customer_repricing_config_request request_pb
1049
1049
  query_string_params = if query_string_params.any?
1050
- query_string_params.to_h { |p| p.split("=", 2) }
1050
+ query_string_params.to_h { |p| p.split "=", 2 }
1051
1051
  else
1052
1052
  {}
1053
1053
  end
@@ -1085,7 +1085,7 @@ module Google
1085
1085
 
1086
1086
  verb, uri, query_string_params, body = ServiceStub.transcode_list_customer_repricing_configs_request request_pb
1087
1087
  query_string_params = if query_string_params.any?
1088
- query_string_params.to_h { |p| p.split("=", 2) }
1088
+ query_string_params.to_h { |p| p.split "=", 2 }
1089
1089
  else
1090
1090
  {}
1091
1091
  end
@@ -1123,7 +1123,7 @@ module Google
1123
1123
 
1124
1124
  verb, uri, query_string_params, body = ServiceStub.transcode_create_customer_repricing_config_request request_pb
1125
1125
  query_string_params = if query_string_params.any?
1126
- query_string_params.to_h { |p| p.split("=", 2) }
1126
+ query_string_params.to_h { |p| p.split "=", 2 }
1127
1127
  else
1128
1128
  {}
1129
1129
  end
@@ -1161,7 +1161,7 @@ module Google
1161
1161
 
1162
1162
  verb, uri, query_string_params, body = ServiceStub.transcode_update_customer_repricing_config_request request_pb
1163
1163
  query_string_params = if query_string_params.any?
1164
- query_string_params.to_h { |p| p.split("=", 2) }
1164
+ query_string_params.to_h { |p| p.split "=", 2 }
1165
1165
  else
1166
1166
  {}
1167
1167
  end
@@ -1199,7 +1199,7 @@ module Google
1199
1199
 
1200
1200
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_customer_repricing_config_request request_pb
1201
1201
  query_string_params = if query_string_params.any?
1202
- query_string_params.to_h { |p| p.split("=", 2) }
1202
+ query_string_params.to_h { |p| p.split "=", 2 }
1203
1203
  else
1204
1204
  {}
1205
1205
  end
@@ -1237,7 +1237,7 @@ module Google
1237
1237
 
1238
1238
  verb, uri, query_string_params, body = ServiceStub.transcode_get_channel_partner_repricing_config_request request_pb
1239
1239
  query_string_params = if query_string_params.any?
1240
- query_string_params.to_h { |p| p.split("=", 2) }
1240
+ query_string_params.to_h { |p| p.split "=", 2 }
1241
1241
  else
1242
1242
  {}
1243
1243
  end
@@ -1275,7 +1275,7 @@ module Google
1275
1275
 
1276
1276
  verb, uri, query_string_params, body = ServiceStub.transcode_list_channel_partner_repricing_configs_request request_pb
1277
1277
  query_string_params = if query_string_params.any?
1278
- query_string_params.to_h { |p| p.split("=", 2) }
1278
+ query_string_params.to_h { |p| p.split "=", 2 }
1279
1279
  else
1280
1280
  {}
1281
1281
  end
@@ -1313,7 +1313,7 @@ module Google
1313
1313
 
1314
1314
  verb, uri, query_string_params, body = ServiceStub.transcode_create_channel_partner_repricing_config_request request_pb
1315
1315
  query_string_params = if query_string_params.any?
1316
- query_string_params.to_h { |p| p.split("=", 2) }
1316
+ query_string_params.to_h { |p| p.split "=", 2 }
1317
1317
  else
1318
1318
  {}
1319
1319
  end
@@ -1351,7 +1351,7 @@ module Google
1351
1351
 
1352
1352
  verb, uri, query_string_params, body = ServiceStub.transcode_update_channel_partner_repricing_config_request request_pb
1353
1353
  query_string_params = if query_string_params.any?
1354
- query_string_params.to_h { |p| p.split("=", 2) }
1354
+ query_string_params.to_h { |p| p.split "=", 2 }
1355
1355
  else
1356
1356
  {}
1357
1357
  end
@@ -1389,7 +1389,7 @@ module Google
1389
1389
 
1390
1390
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_channel_partner_repricing_config_request request_pb
1391
1391
  query_string_params = if query_string_params.any?
1392
- query_string_params.to_h { |p| p.split("=", 2) }
1392
+ query_string_params.to_h { |p| p.split "=", 2 }
1393
1393
  else
1394
1394
  {}
1395
1395
  end
@@ -1427,7 +1427,7 @@ module Google
1427
1427
 
1428
1428
  verb, uri, query_string_params, body = ServiceStub.transcode_lookup_offer_request request_pb
1429
1429
  query_string_params = if query_string_params.any?
1430
- query_string_params.to_h { |p| p.split("=", 2) }
1430
+ query_string_params.to_h { |p| p.split "=", 2 }
1431
1431
  else
1432
1432
  {}
1433
1433
  end
@@ -1465,7 +1465,7 @@ module Google
1465
1465
 
1466
1466
  verb, uri, query_string_params, body = ServiceStub.transcode_list_products_request request_pb
1467
1467
  query_string_params = if query_string_params.any?
1468
- query_string_params.to_h { |p| p.split("=", 2) }
1468
+ query_string_params.to_h { |p| p.split "=", 2 }
1469
1469
  else
1470
1470
  {}
1471
1471
  end
@@ -1503,7 +1503,7 @@ module Google
1503
1503
 
1504
1504
  verb, uri, query_string_params, body = ServiceStub.transcode_list_skus_request request_pb
1505
1505
  query_string_params = if query_string_params.any?
1506
- query_string_params.to_h { |p| p.split("=", 2) }
1506
+ query_string_params.to_h { |p| p.split "=", 2 }
1507
1507
  else
1508
1508
  {}
1509
1509
  end
@@ -1541,7 +1541,7 @@ module Google
1541
1541
 
1542
1542
  verb, uri, query_string_params, body = ServiceStub.transcode_list_offers_request request_pb
1543
1543
  query_string_params = if query_string_params.any?
1544
- query_string_params.to_h { |p| p.split("=", 2) }
1544
+ query_string_params.to_h { |p| p.split "=", 2 }
1545
1545
  else
1546
1546
  {}
1547
1547
  end
@@ -1579,7 +1579,7 @@ module Google
1579
1579
 
1580
1580
  verb, uri, query_string_params, body = ServiceStub.transcode_list_purchasable_skus_request request_pb
1581
1581
  query_string_params = if query_string_params.any?
1582
- query_string_params.to_h { |p| p.split("=", 2) }
1582
+ query_string_params.to_h { |p| p.split "=", 2 }
1583
1583
  else
1584
1584
  {}
1585
1585
  end
@@ -1617,7 +1617,7 @@ module Google
1617
1617
 
1618
1618
  verb, uri, query_string_params, body = ServiceStub.transcode_list_purchasable_offers_request request_pb
1619
1619
  query_string_params = if query_string_params.any?
1620
- query_string_params.to_h { |p| p.split("=", 2) }
1620
+ query_string_params.to_h { |p| p.split "=", 2 }
1621
1621
  else
1622
1622
  {}
1623
1623
  end
@@ -1655,7 +1655,7 @@ module Google
1655
1655
 
1656
1656
  verb, uri, query_string_params, body = ServiceStub.transcode_register_subscriber_request request_pb
1657
1657
  query_string_params = if query_string_params.any?
1658
- query_string_params.to_h { |p| p.split("=", 2) }
1658
+ query_string_params.to_h { |p| p.split "=", 2 }
1659
1659
  else
1660
1660
  {}
1661
1661
  end
@@ -1693,7 +1693,7 @@ module Google
1693
1693
 
1694
1694
  verb, uri, query_string_params, body = ServiceStub.transcode_unregister_subscriber_request request_pb
1695
1695
  query_string_params = if query_string_params.any?
1696
- query_string_params.to_h { |p| p.split("=", 2) }
1696
+ query_string_params.to_h { |p| p.split "=", 2 }
1697
1697
  else
1698
1698
  {}
1699
1699
  end
@@ -1731,7 +1731,7 @@ module Google
1731
1731
 
1732
1732
  verb, uri, query_string_params, body = ServiceStub.transcode_list_subscribers_request request_pb
1733
1733
  query_string_params = if query_string_params.any?
1734
- query_string_params.to_h { |p| p.split("=", 2) }
1734
+ query_string_params.to_h { |p| p.split "=", 2 }
1735
1735
  else
1736
1736
  {}
1737
1737
  end
@@ -1769,7 +1769,7 @@ module Google
1769
1769
 
1770
1770
  verb, uri, query_string_params, body = ServiceStub.transcode_list_entitlement_changes_request request_pb
1771
1771
  query_string_params = if query_string_params.any?
1772
- query_string_params.to_h { |p| p.split("=", 2) }
1772
+ query_string_params.to_h { |p| p.split "=", 2 }
1773
1773
  else
1774
1774
  {}
1775
1775
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/channel/v1/common.proto
3
4
 
@@ -6,58 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/any_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/channel/v1/common.proto", :syntax => :proto3) do
11
- add_message "google.cloud.channel.v1.EduData" do
12
- optional :institute_type, :enum, 1, "google.cloud.channel.v1.EduData.InstituteType"
13
- optional :institute_size, :enum, 2, "google.cloud.channel.v1.EduData.InstituteSize"
14
- optional :website, :string, 3
15
- end
16
- add_enum "google.cloud.channel.v1.EduData.InstituteType" do
17
- value :INSTITUTE_TYPE_UNSPECIFIED, 0
18
- value :K12, 1
19
- value :UNIVERSITY, 2
20
- end
21
- add_enum "google.cloud.channel.v1.EduData.InstituteSize" do
22
- value :INSTITUTE_SIZE_UNSPECIFIED, 0
23
- value :SIZE_1_100, 1
24
- value :SIZE_101_500, 2
25
- value :SIZE_501_1000, 3
26
- value :SIZE_1001_2000, 4
27
- value :SIZE_2001_5000, 5
28
- value :SIZE_5001_10000, 6
29
- value :SIZE_10001_OR_MORE, 7
30
- end
31
- add_message "google.cloud.channel.v1.CloudIdentityInfo" do
32
- optional :customer_type, :enum, 1, "google.cloud.channel.v1.CloudIdentityInfo.CustomerType"
33
- optional :primary_domain, :string, 9
34
- optional :is_domain_verified, :bool, 4
35
- optional :alternate_email, :string, 6
36
- optional :phone_number, :string, 7
37
- optional :language_code, :string, 8
38
- optional :admin_console_uri, :string, 10
39
- optional :edu_data, :message, 22, "google.cloud.channel.v1.EduData"
40
- end
41
- add_enum "google.cloud.channel.v1.CloudIdentityInfo.CustomerType" do
42
- value :CUSTOMER_TYPE_UNSPECIFIED, 0
43
- value :DOMAIN, 1
44
- value :TEAM, 2
45
- end
46
- add_message "google.cloud.channel.v1.Value" do
47
- oneof :kind do
48
- optional :int64_value, :int64, 1
49
- optional :string_value, :string, 2
50
- optional :double_value, :double, 3
51
- optional :proto_value, :message, 4, "google.protobuf.Any"
52
- optional :bool_value, :bool, 5
53
- end
54
- end
55
- add_message "google.cloud.channel.v1.AdminUser" do
56
- optional :email, :string, 1
57
- optional :given_name, :string, 2
58
- optional :family_name, :string, 3
10
+
11
+ descriptor_data = "\n$google/cloud/channel/v1/common.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\"\xb0\x03\n\x07\x45\x64uData\x12\x46\n\x0einstitute_type\x18\x01 \x01(\x0e\x32..google.cloud.channel.v1.EduData.InstituteType\x12\x46\n\x0einstitute_size\x18\x02 \x01(\x0e\x32..google.cloud.channel.v1.EduData.InstituteSize\x12\x0f\n\x07website\x18\x03 \x01(\t\"H\n\rInstituteType\x12\x1e\n\x1aINSTITUTE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03K12\x10\x01\x12\x0e\n\nUNIVERSITY\x10\x02\"\xb9\x01\n\rInstituteSize\x12\x1e\n\x1aINSTITUTE_SIZE_UNSPECIFIED\x10\x00\x12\x0e\n\nSIZE_1_100\x10\x01\x12\x10\n\x0cSIZE_101_500\x10\x02\x12\x11\n\rSIZE_501_1000\x10\x03\x12\x12\n\x0eSIZE_1001_2000\x10\x04\x12\x12\n\x0eSIZE_2001_5000\x10\x05\x12\x13\n\x0fSIZE_5001_10000\x10\x06\x12\x16\n\x12SIZE_10001_OR_MORE\x10\x07\"\x80\x03\n\x11\x43loudIdentityInfo\x12N\n\rcustomer_type\x18\x01 \x01(\x0e\x32\x37.google.cloud.channel.v1.CloudIdentityInfo.CustomerType\x12\x1b\n\x0eprimary_domain\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12is_domain_verified\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x17\n\x0f\x61lternate_email\x18\x06 \x01(\t\x12\x14\n\x0cphone_number\x18\x07 \x01(\t\x12\x15\n\rlanguage_code\x18\x08 \x01(\t\x12\x1e\n\x11\x61\x64min_console_uri\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x32\n\x08\x65\x64u_data\x18\x16 \x01(\x0b\x32 .google.cloud.channel.v1.EduData\"C\n\x0c\x43ustomerType\x12\x1d\n\x19\x43USTOMER_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44OMAIN\x10\x01\x12\x08\n\x04TEAM\x10\x02\"\x99\x01\n\x05Value\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x02 \x01(\tH\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12+\n\x0bproto_value\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x14\n\nbool_value\x18\x05 \x01(\x08H\x00\x42\x06\n\x04kind\"C\n\tAdminUser\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x12\n\ngiven_name\x18\x02 \x01(\t\x12\x13\n\x0b\x66\x61mily_name\x18\x03 \x01(\tBc\n\x1b\x63om.google.cloud.channel.v1B\x0b\x43ommonProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
59
32
  end
60
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
61
36
  end
62
37
 
63
38
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/channel/v1/customers.proto
3
4
 
@@ -9,32 +10,34 @@ require 'google/cloud/channel/v1/common_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
  require 'google/type/postal_address_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/channel/v1/customers.proto", :syntax => :proto3) do
14
- add_message "google.cloud.channel.v1.Customer" do
15
- optional :name, :string, 1
16
- optional :org_display_name, :string, 2
17
- optional :org_postal_address, :message, 3, "google.type.PostalAddress"
18
- optional :primary_contact_info, :message, 4, "google.cloud.channel.v1.ContactInfo"
19
- optional :alternate_email, :string, 5
20
- optional :domain, :string, 6
21
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
22
- optional :update_time, :message, 8, "google.protobuf.Timestamp"
23
- optional :cloud_identity_id, :string, 9
24
- optional :language_code, :string, 10
25
- optional :cloud_identity_info, :message, 12, "google.cloud.channel.v1.CloudIdentityInfo"
26
- optional :channel_partner_id, :string, 13
27
- optional :correlation_id, :string, 14
28
- end
29
- add_message "google.cloud.channel.v1.ContactInfo" do
30
- optional :first_name, :string, 1
31
- optional :last_name, :string, 2
32
- optional :display_name, :string, 4
33
- optional :email, :string, 5
34
- optional :title, :string, 6
35
- optional :phone, :string, 7
13
+
14
+ descriptor_data = "\n\'google/cloud/channel/v1/customers.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/channel/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/type/postal_address.proto\"\xee\x04\n\x08\x43ustomer\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10org_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12;\n\x12org_postal_address\x18\x03 \x01(\x0b\x32\x1a.google.type.PostalAddressB\x03\xe0\x41\x02\x12\x42\n\x14primary_contact_info\x18\x04 \x01(\x0b\x32$.google.cloud.channel.v1.ContactInfo\x12\x17\n\x0f\x61lternate_email\x18\x05 \x01(\t\x12\x13\n\x06\x64omain\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11\x63loud_identity_id\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlanguage_code\x18\n \x01(\tB\x03\xe0\x41\x01\x12L\n\x13\x63loud_identity_info\x18\x0c \x01(\x0b\x32*.google.cloud.channel.v1.CloudIdentityInfoB\x03\xe0\x41\x03\x12\x1a\n\x12\x63hannel_partner_id\x18\r \x01(\t\x12\x1b\n\x0e\x63orrelation_id\x18\x0e \x01(\tB\x03\xe0\x41\x01:R\xea\x41O\n$cloudchannel.googleapis.com/Customer\x12\'accounts/{account}/customers/{customer}\"\x81\x01\n\x0b\x43ontactInfo\x12\x12\n\nfirst_name\x18\x01 \x01(\t\x12\x11\n\tlast_name\x18\x02 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\r\n\x05\x65mail\x18\x05 \x01(\t\x12\x12\n\x05title\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\r\n\x05phone\x18\x07 \x01(\tBf\n\x1b\x63om.google.cloud.channel.v1B\x0e\x43ustomersProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.type.PostalAddress", "google/type/postal_address.proto"],
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ["google.cloud.channel.v1.CloudIdentityInfo", "google/cloud/channel/v1/common.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
37
  end
37
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
38
41
  end
39
42
 
40
43
  module Google