google-events 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/lib/google/events/cloud/apigateway/v1/data_pb.rb +25 -77
  4. data/lib/google/events/cloud/apigateway/v1/events_pb.rb +25 -28
  5. data/lib/google/events/cloud/apigeeregistry/v1/data_pb.rb +25 -90
  6. data/lib/google/events/cloud/apigeeregistry/v1/events_pb.rb +25 -43
  7. data/lib/google/events/cloud/audit/v1/data_pb.rb +29 -91
  8. data/lib/google/events/cloud/audit/v1/events_pb.rb +25 -4
  9. data/lib/google/events/cloud/beyondcorp/appconnections/v1/data_pb.rb +25 -44
  10. data/lib/google/events/cloud/beyondcorp/appconnections/v1/events_pb.rb +25 -10
  11. data/lib/google/events/cloud/beyondcorp/appconnectors/v1/data_pb.rb +25 -44
  12. data/lib/google/events/cloud/beyondcorp/appconnectors/v1/events_pb.rb +25 -10
  13. data/lib/google/events/cloud/beyondcorp/appgateways/v1/data_pb.rb +25 -37
  14. data/lib/google/events/cloud/beyondcorp/appgateways/v1/events_pb.rb +25 -7
  15. data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/data_pb.rb +25 -47
  16. data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/events_pb.rb +25 -10
  17. data/lib/google/events/cloud/beyondcorp/clientgateways/v1/data_pb.rb +25 -21
  18. data/lib/google/events/cloud/beyondcorp/clientgateways/v1/events_pb.rb +25 -7
  19. data/lib/google/events/cloud/certificatemanager/v1/data_pb.rb +26 -157
  20. data/lib/google/events/cloud/certificatemanager/v1/events_pb.rb +25 -43
  21. data/lib/google/events/cloud/cloudbuild/v1/data_pb.rb +26 -162
  22. data/lib/google/events/cloud/cloudbuild/v1/events_pb.rb +25 -4
  23. data/lib/google/events/cloud/clouddms/v1/data_pb.rb +28 -241
  24. data/lib/google/events/cloud/clouddms/v1/events_pb.rb +25 -19
  25. data/lib/google/events/cloud/dataflow/v1beta3/data_pb.rb +26 -195
  26. data/lib/google/events/cloud/dataflow/v1beta3/events_pb.rb +25 -4
  27. data/lib/google/events/cloud/datafusion/v1/data_pb.rb +25 -107
  28. data/lib/google/events/cloud/datafusion/v1/events_pb.rb +25 -16
  29. data/lib/google/events/cloud/dataplex/v1/data_pb.rb +144 -0
  30. data/lib/google/events/cloud/dataplex/v1/events_pb.rb +74 -0
  31. data/lib/google/events/cloud/datastream/v1/data_pb.rb +26 -291
  32. data/lib/google/events/cloud/datastream/v1/events_pb.rb +25 -31
  33. data/lib/google/events/cloud/eventarc/v1/data_pb.rb +25 -89
  34. data/lib/google/events/cloud/eventarc/v1/events_pb.rb +25 -25
  35. data/lib/google/events/cloud/firestore/v1/data_pb.rb +26 -36
  36. data/lib/google/events/cloud/firestore/v1/events_pb.rb +25 -13
  37. data/lib/google/events/cloud/functions/v2/data_pb.rb +25 -155
  38. data/lib/google/events/cloud/functions/v2/events_pb.rb +25 -10
  39. data/lib/google/events/cloud/gkebackup/v1/data_pb.rb +71 -0
  40. data/lib/google/events/cloud/gkebackup/v1/events_pb.rb +59 -0
  41. data/lib/google/events/cloud/iot/v1/data_pb.rb +26 -132
  42. data/lib/google/events/cloud/iot/v1/events_pb.rb +25 -19
  43. data/lib/google/events/cloud/memcache/v1/data_pb.rb +27 -83
  44. data/lib/google/events/cloud/memcache/v1/events_pb.rb +25 -10
  45. data/lib/google/events/cloud/pubsub/v1/data_pb.rb +25 -12
  46. data/lib/google/events/cloud/pubsub/v1/events_pb.rb +25 -4
  47. data/lib/google/events/cloud/scheduler/v1/data_pb.rb +24 -4
  48. data/lib/google/events/cloud/scheduler/v1/events_pb.rb +25 -4
  49. data/lib/google/events/cloud/storage/v1/data_pb.rb +25 -36
  50. data/lib/google/events/cloud/storage/v1/events_pb.rb +25 -13
  51. data/lib/google/events/cloud/video/transcoder/v1/data_pb.rb +96 -0
  52. data/lib/google/events/cloud/video/transcoder/v1/events_pb.rb +53 -0
  53. data/lib/google/events/cloud/workflows/v1/data_pb.rb +25 -22
  54. data/lib/google/events/cloud/workflows/v1/events_pb.rb +25 -10
  55. data/lib/google/events/cloudevent_pb.rb +24 -6
  56. data/lib/google/events/firebase/analytics/v1/data_pb.rb +24 -76
  57. data/lib/google/events/firebase/analytics/v1/events_pb.rb +25 -4
  58. data/lib/google/events/firebase/auth/v1/data_pb.rb +26 -24
  59. data/lib/google/events/firebase/auth/v1/events_pb.rb +25 -7
  60. data/lib/google/events/firebase/database/v1/data_pb.rb +25 -5
  61. data/lib/google/events/firebase/database/v1/events_pb.rb +25 -13
  62. data/lib/google/events/firebase/firebasealerts/v1/cloud_event_payload_pb.rb +26 -79
  63. data/lib/google/events/firebase/firebasealerts/v1/data_pb.rb +26 -6
  64. data/lib/google/events/firebase/firebasealerts/v1/events_pb.rb +25 -4
  65. data/lib/google/events/firebase/remoteconfig/v1/data_pb.rb +25 -27
  66. data/lib/google/events/firebase/remoteconfig/v1/events_pb.rb +25 -4
  67. data/lib/google/events/firebase/testlab/v1/data_pb.rb +25 -35
  68. data/lib/google/events/firebase/testlab/v1/events_pb.rb +25 -4
  69. data/lib/google/events/version.rb +1 -1
  70. metadata +8 -2
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/events/firebase/analytics/v1/events.proto
3
4
 
@@ -6,12 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/events/cloudevent_pb'
7
8
  require 'google/events/firebase/analytics/v1/data_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/events/firebase/analytics/v1/events.proto", :syntax => :proto3) do
11
- add_message "google.events.firebase.analytics.v1.AnalyticsLogWrittenEvent" do
12
- optional :data, :message, 1, "google.events.firebase.analytics.v1.AnalyticsLogData"
10
+
11
+ descriptor_data = "\n0google/events/firebase/analytics/v1/events.proto\x12#google.events.firebase.analytics.v1\x1a\x1egoogle/events/cloudevent.proto\x1a.google/events/firebase/analytics/v1/data.proto\"\x8e\x01\n\x18\x41nalyticsLogWrittenEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.firebase.analytics.v1.AnalyticsLogData:-\xb2\xf8\xd8,(google.firebase.analytics.log.v1.writtenB\xa1\x01\xaa\x02,Google.Events.Protobuf.Firebase.Analytics.V1\xca\x02#Google\\Events\\Firebase\\Analytics\\V1\xea\x02\'Google::Events::Firebase::Analytics::V1\xba\xf8\xd8,\x1dGoogle Analytics for Firebaseb\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.events.firebase.analytics.v1.AnalyticsLogData", "google/events/firebase/analytics/v1/data.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}"
13
32
  end
14
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."
15
36
  end
16
37
 
17
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/events/firebase/auth/v1/data.proto
3
4
 
@@ -6,32 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/struct_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/events/firebase/auth/v1/data.proto", :syntax => :proto3) do
11
- add_message "google.events.firebase.auth.v1.AuthEventData" do
12
- optional :uid, :string, 1
13
- optional :email, :string, 2
14
- optional :email_verified, :bool, 3
15
- optional :display_name, :string, 4
16
- optional :photo_URL, :string, 5
17
- optional :disabled, :bool, 6
18
- optional :metadata, :message, 7, "google.events.firebase.auth.v1.UserMetadata"
19
- repeated :provider_data, :message, 8, "google.events.firebase.auth.v1.UserInfo"
20
- optional :phone_number, :string, 9
21
- optional :custom_claims, :message, 10, "google.protobuf.Struct"
22
- end
23
- add_message "google.events.firebase.auth.v1.UserMetadata" do
24
- optional :create_time, :message, 1, "google.protobuf.Timestamp"
25
- optional :last_sign_in_time, :message, 2, "google.protobuf.Timestamp"
26
- end
27
- add_message "google.events.firebase.auth.v1.UserInfo" do
28
- optional :uid, :string, 1
29
- optional :email, :string, 2
30
- optional :display_name, :string, 3
31
- optional :photo_URL, :string, 4
32
- optional :provider_id, :string, 5
10
+
11
+ descriptor_data = "\n)google/events/firebase/auth/v1/data.proto\x12\x1egoogle.events.firebase.auth.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc5\x02\n\rAuthEventData\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x03 \x01(\x08\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\x11\n\tphoto_URL\x18\x05 \x01(\t\x12\x10\n\x08\x64isabled\x18\x06 \x01(\x08\x12>\n\x08metadata\x18\x07 \x01(\x0b\x32,.google.events.firebase.auth.v1.UserMetadata\x12?\n\rprovider_data\x18\x08 \x03(\x0b\x32(.google.events.firebase.auth.v1.UserInfo\x12\x14\n\x0cphone_number\x18\t \x01(\t\x12.\n\rcustom_claims\x18\n \x01(\x0b\x32\x17.google.protobuf.Struct\"v\n\x0cUserMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_sign_in_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"d\n\x08UserInfo\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x11\n\tphoto_URL\x18\x04 \x01(\t\x12\x13\n\x0bprovider_id\x18\x05 \x01(\tBp\xaa\x02\'Google.Events.Protobuf.Firebase.Auth.V1\xca\x02\x1eGoogle\\Events\\Firebase\\Auth\\V1\xea\x02\"Google::Events::Firebase::Auth::V1b\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.Struct", "google/protobuf/struct.proto"],
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
33
  end
34
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
35
37
  end
36
38
 
37
39
  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/events/firebase/auth/v1/events.proto
3
4
 
@@ -6,15 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/events/cloudevent_pb'
7
8
  require 'google/events/firebase/auth/v1/data_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/events/firebase/auth/v1/events.proto", :syntax => :proto3) do
11
- add_message "google.events.firebase.auth.v1.UserCreatedEvent" do
12
- optional :data, :message, 1, "google.events.firebase.auth.v1.AuthEventData"
13
- end
14
- add_message "google.events.firebase.auth.v1.UserDeletedEvent" do
15
- optional :data, :message, 1, "google.events.firebase.auth.v1.AuthEventData"
10
+
11
+ descriptor_data = "\n+google/events/firebase/auth/v1/events.proto\x12\x1egoogle.events.firebase.auth.v1\x1a\x1egoogle/events/cloudevent.proto\x1a)google/events/firebase/auth/v1/data.proto\"z\n\x10UserCreatedEvent\x12;\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32-.google.events.firebase.auth.v1.AuthEventData:)\xb2\xf8\xd8,$google.firebase.auth.user.v1.created\"z\n\x10UserDeletedEvent\x12;\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32-.google.events.firebase.auth.v1.AuthEventData:)\xb2\xf8\xd8,$google.firebase.auth.user.v1.deletedB\x8c\x01\xaa\x02\'Google.Events.Protobuf.Firebase.Auth.V1\xca\x02\x1eGoogle\\Events\\Firebase\\Auth\\V1\xea\x02\"Google::Events::Firebase::Auth::V1\xba\xf8\xd8,\x17\x46irebase Authenticationb\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.events.firebase.auth.v1.AuthEventData", "google/events/firebase/auth/v1/data.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}"
16
32
  end
17
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."
18
36
  end
19
37
 
20
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/events/firebase/database/v1/data.proto
3
4
 
@@ -5,13 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/struct_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/events/firebase/database/v1/data.proto", :syntax => :proto3) do
10
- add_message "google.events.firebase.database.v1.ReferenceEventData" do
11
- optional :data, :message, 1, "google.protobuf.Value"
12
- optional :delta, :message, 2, "google.protobuf.Value"
9
+
10
+ descriptor_data = "\n-google/events/firebase/database/v1/data.proto\x12\"google.events.firebase.database.v1\x1a\x1cgoogle/protobuf/struct.proto\"a\n\x12ReferenceEventData\x12$\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x16.google.protobuf.Value\x12%\n\x05\x64\x65lta\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueB|\xaa\x02+Google.Events.Protobuf.Firebase.Database.V1\xca\x02\"Google\\Events\\Firebase\\Database\\V1\xea\x02&Google::Events::Firebase::Database::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
13
31
  end
14
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
15
35
  end
16
36
 
17
37
  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/events/firebase/database/v1/events.proto
3
4
 
@@ -6,21 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/events/cloudevent_pb'
7
8
  require 'google/events/firebase/database/v1/data_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/events/firebase/database/v1/events.proto", :syntax => :proto3) do
11
- add_message "google.events.firebase.database.v1.ReferenceCreatedEvent" do
12
- optional :data, :message, 1, "google.events.firebase.database.v1.ReferenceEventData"
13
- end
14
- add_message "google.events.firebase.database.v1.ReferenceUpdatedEvent" do
15
- optional :data, :message, 1, "google.events.firebase.database.v1.ReferenceEventData"
16
- end
17
- add_message "google.events.firebase.database.v1.ReferenceDeletedEvent" do
18
- optional :data, :message, 1, "google.events.firebase.database.v1.ReferenceEventData"
19
- end
20
- add_message "google.events.firebase.database.v1.ReferenceWrittenEvent" do
21
- optional :data, :message, 1, "google.events.firebase.database.v1.ReferenceEventData"
10
+
11
+ descriptor_data = "\n/google/events/firebase/database/v1/events.proto\x12\"google.events.firebase.database.v1\x1a\x1egoogle/events/cloudevent.proto\x1a-google/events/firebase/database/v1/data.proto\"\x8b\x01\n\x15ReferenceCreatedEvent\x12\x44\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x36.google.events.firebase.database.v1.ReferenceEventData:,\xb2\xf8\xd8,\'google.firebase.database.ref.v1.created\"\x8b\x01\n\x15ReferenceUpdatedEvent\x12\x44\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x36.google.events.firebase.database.v1.ReferenceEventData:,\xb2\xf8\xd8,\'google.firebase.database.ref.v1.updated\"\x8b\x01\n\x15ReferenceDeletedEvent\x12\x44\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x36.google.events.firebase.database.v1.ReferenceEventData:,\xb2\xf8\xd8,\'google.firebase.database.ref.v1.deleted\"\x8b\x01\n\x15ReferenceWrittenEvent\x12\x44\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x36.google.events.firebase.database.v1.ReferenceEventData:,\xb2\xf8\xd8,\'google.firebase.database.ref.v1.writtenB\xc8\x03\xaa\x02+Google.Events.Protobuf.Firebase.Database.V1\xca\x02\"Google\\Events\\Firebase\\Database\\V1\xea\x02&Google::Events::Firebase::Database::V1\xba\xf8\xd8,\x1a\x46irebase Realtime Database\xc2\xf8\xd8,a\n\x08instance\x12KThe Firebase Realtime Database instance from which the event was triggered.\x1a\x08instance\xc2\xf8\xd8,R\n\x03ref\x12\x46The Firebase Realtime Database path for which the event was triggered.\x1a\x03ref\xc2\xf8\xd8,k\n\x14\x66irebasedatabasehost\x12=The Firebase Realtime Database domain of the source database.\x1a\x14\x66irebaseDatabaseHostb\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.events.firebase.database.v1.ReferenceEventData", "google/events/firebase/database/v1/data.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}"
22
32
  end
23
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."
24
36
  end
25
37
 
26
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/events/firebase/firebasealerts/v1/cloud_event_payload.proto
3
4
 
@@ -6,87 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/timestamp_pb'
7
8
  require 'google/type/date_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/events/firebase/firebasealerts/v1/cloud_event_payload.proto", :syntax => :proto3) do
11
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsIssue" do
12
- optional :id, :string, 1
13
- optional :title, :string, 2
14
- optional :subtitle, :string, 3
15
- optional :app_version, :string, 4
16
- end
17
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsNewFatalIssuePayload" do
18
- optional :issue, :message, 1, "google.events.firebase.firebasealerts.v1.CrashlyticsIssue"
19
- end
20
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsNewNonfatalIssuePayload" do
21
- optional :issue, :message, 1, "google.events.firebase.firebasealerts.v1.CrashlyticsIssue"
22
- end
23
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsRegressionAlertPayload" do
24
- optional :type, :string, 1
25
- optional :issue, :message, 2, "google.events.firebase.firebasealerts.v1.CrashlyticsIssue"
26
- optional :resolve_time, :message, 3, "google.protobuf.Timestamp"
27
- end
28
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsVelocityAlertPayload" do
29
- optional :issue, :message, 1, "google.events.firebase.firebasealerts.v1.CrashlyticsIssue"
30
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
31
- optional :crash_count, :int64, 3
32
- optional :crash_percentage, :double, 4
33
- optional :first_version, :string, 5
34
- end
35
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsStabilityDigestPayload" do
36
- optional :digest_date, :message, 5, "google.type.Date"
37
- repeated :trending_issues, :message, 6, "google.events.firebase.firebasealerts.v1.CrashlyticsStabilityDigestPayload.TrendingIssueDetails"
38
- end
39
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsStabilityDigestPayload.TrendingIssueDetails" do
40
- optional :type, :string, 1
41
- optional :issue, :message, 2, "google.events.firebase.firebasealerts.v1.CrashlyticsIssue"
42
- optional :event_count, :int64, 3
43
- optional :user_count, :int64, 4
44
- end
45
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsNewAnrIssuePayload" do
46
- optional :issue, :message, 1, "google.events.firebase.firebasealerts.v1.CrashlyticsIssue"
47
- end
48
- add_message "google.events.firebase.firebasealerts.v1.CrashlyticsMissingSymbolsPayload" do
49
- optional :app_version, :string, 1
50
- optional :uuid, :string, 2
51
- end
52
- add_message "google.events.firebase.firebasealerts.v1.FireperfThresholdAlertPayload" do
53
- optional :event_name, :string, 1
54
- optional :event_type, :string, 2
55
- optional :metric_type, :string, 3
56
- optional :num_samples, :int64, 4
57
- optional :threshold_value, :float, 5
58
- optional :threshold_unit, :string, 6
59
- optional :condition_percentile, :int32, 7
60
- optional :app_version, :string, 8
61
- optional :violation_value, :float, 9
62
- optional :violation_unit, :string, 10
63
- optional :investigate_uri, :string, 11
64
- end
65
- add_message "google.events.firebase.firebasealerts.v1.AppDistroNewTesterIosDevicePayload" do
66
- optional :tester_name, :string, 1
67
- optional :tester_email, :string, 2
68
- optional :tester_device_model_name, :string, 3
69
- optional :tester_device_identifier, :string, 4
70
- end
71
- add_message "google.events.firebase.firebasealerts.v1.AppDistroInAppFeedbackPayload" do
72
- optional :feedback_report, :string, 1
73
- optional :feedback_console_uri, :string, 8
74
- optional :tester_name, :string, 2
75
- optional :tester_email, :string, 3
76
- optional :app_version, :string, 9
77
- optional :text, :string, 6
78
- optional :screenshot_uri, :string, 7
79
- end
80
- add_message "google.events.firebase.firebasealerts.v1.BillingPlanUpdatePayload" do
81
- optional :billing_plan, :string, 1
82
- optional :principal_email, :string, 2
83
- optional :notification_type, :string, 3
84
- end
85
- add_message "google.events.firebase.firebasealerts.v1.BillingPlanAutomatedUpdatePayload" do
86
- optional :billing_plan, :string, 1
87
- optional :notification_type, :string, 2
10
+
11
+ descriptor_data = "\nBgoogle/events/firebase/firebasealerts/v1/cloud_event_payload.proto\x12(google.events.firebase.firebasealerts.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"T\n\x10\x43rashlyticsIssue\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x10\n\x08subtitle\x18\x03 \x01(\t\x12\x13\n\x0b\x61pp_version\x18\x04 \x01(\t\"l\n\x1f\x43rashlyticsNewFatalIssuePayload\x12I\n\x05issue\x18\x01 \x01(\x0b\x32:.google.events.firebase.firebasealerts.v1.CrashlyticsIssue\"o\n\"CrashlyticsNewNonfatalIssuePayload\x12I\n\x05issue\x18\x01 \x01(\x0b\x32:.google.events.firebase.firebasealerts.v1.CrashlyticsIssue\"\xae\x01\n!CrashlyticsRegressionAlertPayload\x12\x0c\n\x04type\x18\x01 \x01(\t\x12I\n\x05issue\x18\x02 \x01(\x0b\x32:.google.events.firebase.firebasealerts.v1.CrashlyticsIssue\x12\x30\n\x0cresolve_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe3\x01\n\x1f\x43rashlyticsVelocityAlertPayload\x12I\n\x05issue\x18\x01 \x01(\x0b\x32:.google.events.firebase.firebasealerts.v1.CrashlyticsIssue\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x63rash_count\x18\x03 \x01(\x03\x12\x18\n\x10\x63rash_percentage\x18\x04 \x01(\x01\x12\x15\n\rfirst_version\x18\x05 \x01(\t\"\xe1\x02\n!CrashlyticsStabilityDigestPayload\x12&\n\x0b\x64igest_date\x18\x05 \x01(\x0b\x32\x11.google.type.Date\x12y\n\x0ftrending_issues\x18\x06 \x03(\x0b\x32`.google.events.firebase.firebasealerts.v1.CrashlyticsStabilityDigestPayload.TrendingIssueDetails\x1a\x98\x01\n\x14TrendingIssueDetails\x12\x0c\n\x04type\x18\x01 \x01(\t\x12I\n\x05issue\x18\x02 \x01(\x0b\x32:.google.events.firebase.firebasealerts.v1.CrashlyticsIssue\x12\x13\n\x0b\x65vent_count\x18\x03 \x01(\x03\x12\x12\n\nuser_count\x18\x04 \x01(\x03\"j\n\x1d\x43rashlyticsNewAnrIssuePayload\x12I\n\x05issue\x18\x01 \x01(\x0b\x32:.google.events.firebase.firebasealerts.v1.CrashlyticsIssue\"E\n CrashlyticsMissingSymbolsPayload\x12\x13\n\x0b\x61pp_version\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"\x9f\x02\n\x1d\x46ireperfThresholdAlertPayload\x12\x12\n\nevent_name\x18\x01 \x01(\t\x12\x12\n\nevent_type\x18\x02 \x01(\t\x12\x13\n\x0bmetric_type\x18\x03 \x01(\t\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x03\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x02\x12\x16\n\x0ethreshold_unit\x18\x06 \x01(\t\x12\x1c\n\x14\x63ondition_percentile\x18\x07 \x01(\x05\x12\x13\n\x0b\x61pp_version\x18\x08 \x01(\t\x12\x17\n\x0fviolation_value\x18\t \x01(\x02\x12\x16\n\x0eviolation_unit\x18\n \x01(\t\x12\x17\n\x0finvestigate_uri\x18\x0b \x01(\t\"\x93\x01\n\"AppDistroNewTesterIosDevicePayload\x12\x13\n\x0btester_name\x18\x01 \x01(\t\x12\x14\n\x0ctester_email\x18\x02 \x01(\t\x12 \n\x18tester_device_model_name\x18\x03 \x01(\t\x12 \n\x18tester_device_identifier\x18\x04 \x01(\t\"\xf9\x01\n\x1d\x41ppDistroInAppFeedbackPayload\x12\x17\n\x0f\x66\x65\x65\x64\x62\x61\x63k_report\x18\x01 \x01(\t\x12\x1c\n\x14\x66\x65\x65\x64\x62\x61\x63k_console_uri\x18\x08 \x01(\t\x12\x13\n\x0btester_name\x18\x02 \x01(\t\x12\x14\n\x0ctester_email\x18\x03 \x01(\t\x12\x13\n\x0b\x61pp_version\x18\t \x01(\t\x12\x0c\n\x04text\x18\x06 \x01(\t\x12\x16\n\x0escreenshot_uri\x18\x07 \x01(\tJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06R\x0f\x64isplay_versionR\rbuild_versionR\x0fscreenshot_uris\"d\n\x18\x42illingPlanUpdatePayload\x12\x14\n\x0c\x62illing_plan\x18\x01 \x01(\t\x12\x17\n\x0fprincipal_email\x18\x02 \x01(\t\x12\x19\n\x11notification_type\x18\x03 \x01(\t\"T\n!BillingPlanAutomatedUpdatePayload\x12\x14\n\x0c\x62illing_plan\x18\x01 \x01(\t\x12\x19\n\x11notification_type\x18\x02 \x01(\tB\xd4\x01\n,com.google.events.firebase.firebasealerts.v1B\x16\x43loudEventPayloadProto\xaa\x02\x31Google.Events.Protobuf.Firebase.FirebaseAlerts.V1\xca\x02(Google\\Events\\Firebase\\FirebaseAlerts\\V1\xea\x02,Google::Events::Firebase::FirebaseAlerts::V1b\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.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ["google.type.Date", "google/type/date.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
88
33
  end
89
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
90
37
  end
91
38
 
92
39
  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/events/firebase/firebasealerts/v1/data.proto
3
4
 
@@ -6,14 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/struct_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/events/firebase/firebasealerts/v1/data.proto", :syntax => :proto3) do
11
- add_message "google.events.firebase.firebasealerts.v1.AlertData" do
12
- optional :create_time, :message, 1, "google.protobuf.Timestamp"
13
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
14
- optional :payload, :message, 3, "google.protobuf.Struct"
10
+
11
+ descriptor_data = "\n3google/events/firebase/firebasealerts/v1/data.proto\x12(google.events.firebase.firebasealerts.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x94\x01\n\tAlertData\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x07payload\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x8e\x01\xaa\x02\x31Google.Events.Protobuf.Firebase.FirebaseAlerts.V1\xca\x02(Google\\Events\\Firebase\\FirebaseAlerts\\V1\xea\x02,Google::Events::Firebase::FirebaseAlerts::V1b\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.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ["google.protobuf.Struct", "google/protobuf/struct.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
15
33
  end
16
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
17
37
  end
18
38
 
19
39
  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/events/firebase/firebasealerts/v1/events.proto
3
4
 
@@ -6,12 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/events/cloudevent_pb'
7
8
  require 'google/events/firebase/firebasealerts/v1/data_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/events/firebase/firebasealerts/v1/events.proto", :syntax => :proto3) do
11
- add_message "google.events.firebase.firebasealerts.v1.AlertPublishedEvent" do
12
- optional :data, :message, 1, "google.events.firebase.firebasealerts.v1.AlertData"
10
+
11
+ descriptor_data = "\n5google/events/firebase/firebasealerts/v1/events.proto\x12(google.events.firebase.firebasealerts.v1\x1a\x1egoogle/events/cloudevent.proto\x1a\x33google/events/firebase/firebasealerts/v1/data.proto\"\xa9\x01\n\x13\x41lertPublishedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.firebase.firebasealerts.v1.AlertData:O\xb2\xf8\xd8,2google.firebase.firebasealerts.alerts.v1.published\xca\xf8\xd8,\talerttype\xca\xf8\xd8,\x05\x61ppidB\x92\x03\xaa\x02\x31Google.Events.Protobuf.Firebase.FirebaseAlerts.V1\xca\x02(Google\\Events\\Firebase\\FirebaseAlerts\\V1\xea\x02,Google::Events::Firebase::FirebaseAlerts::V1\xba\xf8\xd8,\x0f\x46irebase Alerts\xc2\xf8\xd8,B\n\talerttype\x12*The type of the alerts that got triggered.\x1a\talertType\xc2\xf8\xd8,\xa3\x01\n\x05\x61ppid\x12\x92\x01The Firebase App ID that\xe2\x80\x99s associated with the alert. This is optional, and only present when the alert is targeting at a specific Firebase App.\x1a\x05\x61ppIdb\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.events.firebase.firebasealerts.v1.AlertData", "google/events/firebase/firebasealerts/v1/data.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}"
13
32
  end
14
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."
15
36
  end
16
37
 
17
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/events/firebase/remoteconfig/v1/data.proto
3
4
 
@@ -5,35 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/timestamp_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/events/firebase/remoteconfig/v1/data.proto", :syntax => :proto3) do
10
- add_message "google.events.firebase.remoteconfig.v1.RemoteConfigEventData" do
11
- optional :version_number, :int64, 1
12
- optional :update_time, :message, 2, "google.protobuf.Timestamp"
13
- optional :update_user, :message, 3, "google.events.firebase.remoteconfig.v1.RemoteConfigUser"
14
- optional :description, :string, 4
15
- optional :update_origin, :enum, 5, "google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin"
16
- optional :update_type, :enum, 6, "google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType"
17
- optional :rollback_source, :int64, 7
18
- end
19
- add_message "google.events.firebase.remoteconfig.v1.RemoteConfigUser" do
20
- optional :name, :string, 1
21
- optional :email, :string, 2
22
- optional :image_url, :string, 3
23
- end
24
- add_enum "google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin" do
25
- value :REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED, 0
26
- value :CONSOLE, 1
27
- value :REST_API, 2
28
- value :ADMIN_SDK_NODE, 3
29
- end
30
- add_enum "google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType" do
31
- value :REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED, 0
32
- value :INCREMENTAL_UPDATE, 1
33
- value :FORCED_UPDATE, 2
34
- value :ROLLBACK, 3
9
+
10
+ descriptor_data = "\n1google/events/firebase/remoteconfig/v1/data.proto\x12&google.events.firebase.remoteconfig.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x03\n\x15RemoteConfigEventData\x12\x16\n\x0eversion_number\x18\x01 \x01(\x03\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12M\n\x0bupdate_user\x18\x03 \x01(\x0b\x32\x38.google.events.firebase.remoteconfig.v1.RemoteConfigUser\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12W\n\rupdate_origin\x18\x05 \x01(\x0e\x32@.google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin\x12S\n\x0bupdate_type\x18\x06 \x01(\x0e\x32>.google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType\x12\x17\n\x0frollback_source\x18\x07 \x01(\x03\"B\n\x10RemoteConfigUser\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x11\n\timage_url\x18\x03 \x01(\t*v\n\x18RemoteConfigUpdateOrigin\x12+\n\'REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43ONSOLE\x10\x01\x12\x0c\n\x08REST_API\x10\x02\x12\x12\n\x0e\x41\x44MIN_SDK_NODE\x10\x03*|\n\x16RemoteConfigUpdateType\x12)\n%REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12INCREMENTAL_UPDATE\x10\x01\x12\x11\n\rFORCED_UPDATE\x10\x02\x12\x0c\n\x08ROLLBACK\x10\x03\x42\xbf\x01\n*com.google.events.firebase.remoteconfig.v1B\tDataProto\xaa\x02/Google.Events.Protobuf.Firebase.RemoteConfig.V1\xca\x02&Google\\Events\\Firebase\\RemoteConfig\\V1\xea\x02*Google::Events::Firebase::RemoteConfig::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
31
  end
36
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
37
35
  end
38
36
 
39
37
  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/events/firebase/remoteconfig/v1/events.proto
3
4
 
@@ -6,12 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/events/cloudevent_pb'
7
8
  require 'google/events/firebase/remoteconfig/v1/data_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/events/firebase/remoteconfig/v1/events.proto", :syntax => :proto3) do
11
- add_message "google.events.firebase.remoteconfig.v1.RemoteConfigUpdatedEvent" do
12
- optional :data, :message, 1, "google.events.firebase.remoteconfig.v1.RemoteConfigEventData"
10
+
11
+ descriptor_data = "\n3google/events/firebase/remoteconfig/v1/events.proto\x12&google.events.firebase.remoteconfig.v1\x1a\x1egoogle/events/cloudevent.proto\x1a\x31google/events/firebase/remoteconfig/v1/data.proto\"\xa2\x01\n\x18RemoteConfigUpdatedEvent\x12K\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32=.google.events.firebase.remoteconfig.v1.RemoteConfigEventData:9\xb2\xf8\xd8,4google.firebase.remoteconfig.remoteConfig.v1.updatedB\xa3\x01\xaa\x02/Google.Events.Protobuf.Firebase.RemoteConfig.V1\xca\x02&Google\\Events\\Firebase\\RemoteConfig\\V1\xea\x02*Google::Events::Firebase::RemoteConfig::V1\xba\xf8\xd8,\x16\x46irebase Remote Configb\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.events.firebase.remoteconfig.v1.RemoteConfigEventData", "google/events/firebase/remoteconfig/v1/data.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}"
13
32
  end
14
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."
15
36
  end
16
37
 
17
38
  module Google