google-events 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/events/cloud/alloydb/v1/data_pb.rb +85 -0
- data/lib/google/events/cloud/alloydb/v1/events_pb.rb +56 -0
- data/lib/google/events/cloud/apigateway/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/apigateway/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/apigeeregistry/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/apigeeregistry/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/audit/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/audit/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/appconnections/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/appconnections/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/appconnectors/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/appconnectors/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/appgateways/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/appgateways/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/clientgateways/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/beyondcorp/clientgateways/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/certificatemanager/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/certificatemanager/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/cloudbuild/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/cloudbuild/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/clouddms/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/clouddms/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/dataflow/v1beta3/data_pb.rb +1 -1
- data/lib/google/events/cloud/dataflow/v1beta3/events_pb.rb +2 -2
- data/lib/google/events/cloud/datafusion/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/datafusion/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/dataplex/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/dataplex/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/datastore/v1/data_pb.rb +59 -0
- data/lib/google/events/cloud/datastore/v1/events_pb.rb +51 -0
- data/lib/google/events/cloud/datastream/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/datastream/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/eventarc/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/eventarc/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/firestore/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/firestore/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/functions/v2/data_pb.rb +1 -1
- data/lib/google/events/cloud/functions/v2/events_pb.rb +1 -1
- data/lib/google/events/cloud/gkebackup/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/gkebackup/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/gkehub/v1/data_pb.rb +79 -0
- data/lib/google/events/cloud/gkehub/v1/events_pb.rb +58 -0
- data/lib/google/events/cloud/iot/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/iot/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/memcache/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/memcache/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/metastore/v1/data_pb.rb +88 -0
- data/lib/google/events/cloud/metastore/v1/events_pb.rb +57 -0
- data/lib/google/events/cloud/networkconnectivity/v1/data_pb.rb +76 -0
- data/lib/google/events/cloud/networkconnectivity/v1/events_pb.rb +63 -0
- data/lib/google/events/cloud/networkmanagement/v1/data_pb.rb +93 -0
- data/lib/google/events/cloud/networkmanagement/v1/events_pb.rb +50 -0
- data/lib/google/events/cloud/notebooks/v1/data_pb.rb +100 -0
- data/lib/google/events/cloud/notebooks/v1/events_pb.rb +58 -0
- data/lib/google/events/cloud/pubsub/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/pubsub/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/redis/v1/data_pb.rb +67 -0
- data/lib/google/events/cloud/redis/v1/events_pb.rb +50 -0
- data/lib/google/events/cloud/scheduler/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/scheduler/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/storage/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/storage/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/video/transcoder/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/video/transcoder/v1/events_pb.rb +1 -1
- data/lib/google/events/cloud/visionai/v1/data_pb.rb +123 -0
- data/lib/google/events/cloud/visionai/v1/events_pb.rb +74 -0
- data/lib/google/events/cloud/vmmigration/v1/data_pb.rb +121 -0
- data/lib/google/events/cloud/vmmigration/v1/events_pb.rb +65 -0
- data/lib/google/events/cloud/workflows/v1/data_pb.rb +1 -1
- data/lib/google/events/cloud/workflows/v1/events_pb.rb +1 -1
- data/lib/google/events/cloudevent_pb.rb +1 -1
- data/lib/google/events/firebase/analytics/v1/data_pb.rb +1 -1
- data/lib/google/events/firebase/analytics/v1/events_pb.rb +1 -1
- data/lib/google/events/firebase/auth/v1/data_pb.rb +1 -1
- data/lib/google/events/firebase/auth/v1/events_pb.rb +1 -1
- data/lib/google/events/firebase/database/v1/data_pb.rb +1 -1
- data/lib/google/events/firebase/database/v1/events_pb.rb +1 -1
- data/lib/google/events/firebase/firebasealerts/v1/cloud_event_payload_pb.rb +1 -1
- data/lib/google/events/firebase/firebasealerts/v1/data_pb.rb +1 -1
- data/lib/google/events/firebase/firebasealerts/v1/events_pb.rb +1 -1
- data/lib/google/events/firebase/remoteconfig/v1/data_pb.rb +1 -1
- data/lib/google/events/firebase/remoteconfig/v1/events_pb.rb +1 -1
- data/lib/google/events/firebase/testlab/v1/data_pb.rb +1 -1
- data/lib/google/events/firebase/testlab/v1/events_pb.rb +1 -1
- data/lib/google/events/version.rb +1 -1
- metadata +23 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c98d5328077d3b882f69ca8054eef86c3cc4037c0deaf6fb3ad2cf32530c7711
|
4
|
+
data.tar.gz: 123afda5bb5844eb88e2154b14dc7f922dbfac50da3584018c40e30481a7b3c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a166f526ad236323594ccc19d0559116ec7557c35df72cab7533bfd8b9d334333f08468518e5238fa0ffa13707438865456b0cdbc313269bfce0a757644abd2
|
7
|
+
data.tar.gz: 1578adb5748cb8e6270a968ce4cac5464013b177e56455c20291de14b31335ce6c04db129f5cbc946829bb9d178a2bccd086ea3e08ec60abc2abbe05fb4c4d2a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 0.5.0 (2023-12-04)
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Automated update of event classes ([#50](https://github.com/googleapis/google-cloudevents-ruby/issues/50))
|
8
|
+
|
9
|
+
### 0.4.0 (2023-07-11)
|
10
|
+
|
11
|
+
#### Features
|
12
|
+
|
13
|
+
* Added events for alloydb/v1 ([#42](https://github.com/googleapis/google-cloudevents-ruby/issues/42))
|
14
|
+
* Added events for datastore/v1
|
15
|
+
* Added events for gkehub/v1
|
16
|
+
* Added events for metastore/v1
|
17
|
+
* Added events for networkconnectivity/v1
|
18
|
+
* Added events for networkmanagement/v1
|
19
|
+
* Added events for notebooks/v1
|
20
|
+
* Added events for redis/v1
|
21
|
+
* Added events for visionai/v1
|
22
|
+
* Added events for vmmigration/v1
|
23
|
+
|
3
24
|
### 0.3.0 (2023-06-13)
|
4
25
|
|
5
26
|
#### Features
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/alloydb/v1/data.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/type/dayofweek_pb'
|
10
|
+
require 'google/type/timeofday_pb'
|
11
|
+
|
12
|
+
|
13
|
+
descriptor_data = "\n)google/events/cloud/alloydb/v1/data.proto\x12\x1egoogle.events.cloud.alloydb.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\".\n\x0cUserPassword\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"\xdb\x01\n\x0fMigrationSource\x12\x11\n\thost_port\x18\x01 \x01(\t\x12\x14\n\x0creference_id\x18\x02 \x01(\t\x12X\n\x0bsource_type\x18\x03 \x01(\x0e\x32\x43.google.events.cloud.alloydb.v1.MigrationSource.MigrationSourceType\"E\n\x13MigrationSourceType\x12%\n!MIGRATION_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x44MS\x10\x01\"(\n\x10\x45ncryptionConfig\x12\x14\n\x0ckms_key_name\x18\x01 \x01(\t\"\xd6\x01\n\x0e\x45ncryptionInfo\x12L\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32\x33.google.events.cloud.alloydb.v1.EncryptionInfo.Type\x12\x18\n\x10kms_key_versions\x18\x02 \x03(\t\"\\\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xbc\x02\n\tSslConfig\x12\x43\n\x08ssl_mode\x18\x01 \x01(\x0e\x32\x31.google.events.cloud.alloydb.v1.SslConfig.SslMode\x12\x45\n\tca_source\x18\x02 \x01(\x0e\x32\x32.google.events.cloud.alloydb.v1.SslConfig.CaSource\"e\n\x07SslMode\x12\x18\n\x14SSL_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSSL_MODE_ALLOW\x10\x01\x12\x14\n\x10SSL_MODE_REQUIRE\x10\x02\x12\x16\n\x12SSL_MODE_VERIFY_CA\x10\x03\"<\n\x08\x43\x61Source\x12\x19\n\x15\x43\x41_SOURCE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43\x41_SOURCE_MANAGED\x10\x01\"\x83\x07\n\x15\x41utomatedBackupPolicy\x12_\n\x0fweekly_schedule\x18\x02 \x01(\x0b\x32\x44.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklyScheduleH\x00\x12h\n\x14time_based_retention\x18\x04 \x01(\x0b\x32H.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetentionH\x01\x12p\n\x18quantity_based_retention\x18\x05 \x01(\x0b\x32L.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetentionH\x01\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08H\x02\x88\x01\x01\x12\x30\n\rbackup_window\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12K\n\x11\x65ncryption_config\x18\x08 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.EncryptionConfig\x12\x10\n\x08location\x18\x06 \x01(\t\x12Q\n\x06labels\x18\x07 \x03(\x0b\x32\x41.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.LabelsEntry\x1ak\n\x0eWeeklySchedule\x12+\n\x0bstart_times\x18\x01 \x03(\x0b\x32\x16.google.type.TimeOfDay\x12,\n\x0c\x64\x61ys_of_week\x18\x02 \x03(\x0e\x32\x16.google.type.DayOfWeek\x1aI\n\x12TimeBasedRetention\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\'\n\x16QuantityBasedRetention\x12\r\n\x05\x63ount\x18\x01 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08scheduleB\x0b\n\tretentionB\n\n\x08_enabled\"7\n\x0c\x42\x61\x63kupSource\x12\x12\n\nbackup_uid\x18\x02 \x01(\t\x12\x13\n\x0b\x62\x61\x63kup_name\x18\x01 \x01(\t\"\x84\r\n\x07\x43luster\x12\x45\n\rbackup_source\x18\x0f \x01(\x0b\x32,.google.events.cloud.alloydb.v1.BackupSourceH\x00\x12K\n\x10migration_source\x18\x10 \x01(\x0b\x32/.google.events.cloud.alloydb.v1.MigrationSourceH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x06labels\x18\x07 \x03(\x0b\x32\x33.google.events.cloud.alloydb.v1.Cluster.LabelsEntry\x12<\n\x05state\x18\x08 \x01(\x0e\x32-.google.events.cloud.alloydb.v1.Cluster.State\x12I\n\x0c\x63luster_type\x18\x18 \x01(\x0e\x32\x33.google.events.cloud.alloydb.v1.Cluster.ClusterType\x12I\n\x10\x64\x61tabase_version\x18\t \x01(\x0e\x32/.google.events.cloud.alloydb.v1.DatabaseVersion\x12\x0f\n\x07network\x18\n \x01(\t\x12\x0c\n\x04\x65tag\x18\x0b \x01(\t\x12M\n\x0b\x61nnotations\x18\x0c \x03(\x0b\x32\x38.google.events.cloud.alloydb.v1.Cluster.AnnotationsEntry\x12\x13\n\x0breconciling\x18\r \x01(\x08\x12V\n\x17\x61utomated_backup_policy\x18\x11 \x01(\x0b\x32\x35.google.events.cloud.alloydb.v1.AutomatedBackupPolicy\x12=\n\nssl_config\x18\x12 \x01(\x0b\x32).google.events.cloud.alloydb.v1.SslConfig\x12K\n\x11\x65ncryption_config\x18\x13 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.EncryptionConfig\x12G\n\x0f\x65ncryption_info\x18\x14 \x01(\x0b\x32..google.events.cloud.alloydb.v1.EncryptionInfo\x12Q\n\x10secondary_config\x18\x16 \x01(\x0b\x32\x37.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig\x12M\n\x0eprimary_config\x18\x17 \x01(\x0b\x32\x35.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig\x1a/\n\x0fSecondaryConfig\x12\x1c\n\x14primary_cluster_name\x18\x01 \x01(\t\x1a\x30\n\rPrimaryConfig\x12\x1f\n\x17secondary_cluster_names\x18\x01 \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9c\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x12\t\n\x05\x45MPTY\x10\x03\x12\x0c\n\x08\x43REATING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x11\n\rBOOTSTRAPPING\x10\x07\x12\x0f\n\x0bMAINTENANCE\x10\x08\x12\r\n\tPROMOTING\x10\t\"G\n\x0b\x43lusterType\x12\x1c\n\x18\x43LUSTER_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\r\n\tSECONDARY\x10\x02\x42\x08\n\x06source\"\xcf\x0f\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x06labels\x18\x07 \x03(\x0b\x32\x34.google.events.cloud.alloydb.v1.Instance.LabelsEntry\x12=\n\x05state\x18\x08 \x01(\x0e\x32..google.events.cloud.alloydb.v1.Instance.State\x12L\n\rinstance_type\x18\t \x01(\x0e\x32\x35.google.events.cloud.alloydb.v1.Instance.InstanceType\x12N\n\x0emachine_config\x18\n \x01(\x0b\x32\x36.google.events.cloud.alloydb.v1.Instance.MachineConfig\x12T\n\x11\x61vailability_type\x18\x0b \x01(\x0e\x32\x39.google.events.cloud.alloydb.v1.Instance.AvailabilityType\x12\x10\n\x08gce_zone\x18\x0c \x01(\t\x12S\n\x0e\x64\x61tabase_flags\x18\r \x03(\x0b\x32;.google.events.cloud.alloydb.v1.Instance.DatabaseFlagsEntry\x12\x44\n\rwritable_node\x18\x13 \x01(\x0b\x32-.google.events.cloud.alloydb.v1.Instance.Node\x12<\n\x05nodes\x18\x14 \x03(\x0b\x32-.google.events.cloud.alloydb.v1.Instance.Node\x12\x63\n\x15query_insights_config\x18\x15 \x01(\x0b\x32\x44.google.events.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig\x12Q\n\x10read_pool_config\x18\x0e \x01(\x0b\x32\x37.google.events.cloud.alloydb.v1.Instance.ReadPoolConfig\x12\x12\n\nip_address\x18\x0f \x01(\t\x12\x13\n\x0breconciling\x18\x10 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x11 \x01(\t\x12N\n\x0b\x61nnotations\x18\x12 \x03(\x0b\x32\x39.google.events.cloud.alloydb.v1.Instance.AnnotationsEntry\x1a\"\n\rMachineConfig\x12\x11\n\tcpu_count\x18\x01 \x01(\x05\x1a>\n\x04Node\x12\x0f\n\x07zone_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\n\n\x02ip\x18\x03 \x01(\t\x12\r\n\x05state\x18\x04 \x01(\t\x1a\xfa\x01\n\x1bQueryInsightsInstanceConfig\x12$\n\x17record_application_tags\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\"\n\x15record_client_address\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x13query_string_length\x18\x04 \x01(\r\x12#\n\x16query_plans_per_minute\x18\x05 \x01(\rH\x02\x88\x01\x01\x42\x1a\n\x18_record_application_tagsB\x18\n\x16_record_client_addressB\x19\n\x17_query_plans_per_minute\x1a$\n\x0eReadPoolConfig\x12\x12\n\nnode_count\x18\x01 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12\x44\x61tabaseFlagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x91\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x12\x0c\n\x08\x43REATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0f\n\x0bMAINTENANCE\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x11\n\rBOOTSTRAPPING\x10\x08\x12\r\n\tPROMOTING\x10\t\"X\n\x0cInstanceType\x12\x1d\n\x19INSTANCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\r\n\tREAD_POOL\x10\x02\x12\r\n\tSECONDARY\x10\x03\"N\n\x10\x41vailabilityType\x12!\n\x1d\x41VAILABILITY_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05ZONAL\x10\x01\x12\x0c\n\x08REGIONAL\x10\x02\"\x96\x08\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06labels\x18\x06 \x03(\x0b\x32\x32.google.events.cloud.alloydb.v1.Backup.LabelsEntry\x12;\n\x05state\x18\x07 \x01(\x0e\x32,.google.events.cloud.alloydb.v1.Backup.State\x12\x39\n\x04type\x18\x08 \x01(\x0e\x32+.google.events.cloud.alloydb.v1.Backup.Type\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12\x13\n\x0b\x63luster_uid\x18\x12 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\n \x01(\t\x12\x13\n\x0breconciling\x18\x0b \x01(\x08\x12K\n\x11\x65ncryption_config\x18\x0c \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.EncryptionConfig\x12G\n\x0f\x65ncryption_info\x18\r \x01(\x0b\x32..google.events.cloud.alloydb.v1.EncryptionInfo\x12\x0c\n\x04\x65tag\x18\x0e \x01(\t\x12L\n\x0b\x61nnotations\x18\x10 \x03(\x0b\x32\x37.google.events.cloud.alloydb.v1.Backup.AnnotationsEntry\x12\x12\n\nsize_bytes\x18\x11 \x01(\x03\x12/\n\x0b\x65xpiry_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tON_DEMAND\x10\x01\x12\r\n\tAUTOMATED\x10\x02\x12\x0e\n\nCONTINUOUS\x10\x03\"_\n\x11InstanceEventData\x12>\n\x07payload\x18\x01 \x01(\x0b\x32(.google.events.cloud.alloydb.v1.InstanceH\x00\x88\x01\x01\x42\n\n\x08_payload\"[\n\x0f\x42\x61\x63kupEventData\x12<\n\x07payload\x18\x01 \x01(\x0b\x32&.google.events.cloud.alloydb.v1.BackupH\x00\x88\x01\x01\x42\n\n\x08_payload\"]\n\x10\x43lusterEventData\x12=\n\x07payload\x18\x01 \x01(\x0b\x32\'.google.events.cloud.alloydb.v1.ClusterH\x00\x88\x01\x01\x42\n\n\x08_payload*U\n\x0f\x44\x61tabaseVersion\x12 \n\x1c\x44\x41TABASE_VERSION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPOSTGRES_13\x10\x01\x12\x0f\n\x0bPOSTGRES_14\x10\x02\x42p\xaa\x02\'Google.Events.Protobuf.Cloud.AlloyDb.V1\xca\x02\x1eGoogle\\Events\\Cloud\\AlloyDb\\V1\xea\x02\"Google::Events::Cloud::AlloyDB::V1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
29
|
+
["google.type.TimeOfDay", "google/type/timeofday.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
40
|
+
end
|
41
|
+
|
42
|
+
module Google
|
43
|
+
module Events
|
44
|
+
module Cloud
|
45
|
+
module AlloyDB
|
46
|
+
module V1
|
47
|
+
UserPassword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.UserPassword").msgclass
|
48
|
+
MigrationSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.MigrationSource").msgclass
|
49
|
+
MigrationSource::MigrationSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.MigrationSource.MigrationSourceType").enummodule
|
50
|
+
EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.EncryptionConfig").msgclass
|
51
|
+
EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.EncryptionInfo").msgclass
|
52
|
+
EncryptionInfo::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.EncryptionInfo.Type").enummodule
|
53
|
+
SslConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.SslConfig").msgclass
|
54
|
+
SslConfig::SslMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.SslConfig.SslMode").enummodule
|
55
|
+
SslConfig::CaSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.SslConfig.CaSource").enummodule
|
56
|
+
AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.AutomatedBackupPolicy").msgclass
|
57
|
+
AutomatedBackupPolicy::WeeklySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule").msgclass
|
58
|
+
AutomatedBackupPolicy::TimeBasedRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention").msgclass
|
59
|
+
AutomatedBackupPolicy::QuantityBasedRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention").msgclass
|
60
|
+
BackupSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.BackupSource").msgclass
|
61
|
+
Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Cluster").msgclass
|
62
|
+
Cluster::SecondaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Cluster.SecondaryConfig").msgclass
|
63
|
+
Cluster::PrimaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Cluster.PrimaryConfig").msgclass
|
64
|
+
Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Cluster.State").enummodule
|
65
|
+
Cluster::ClusterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Cluster.ClusterType").enummodule
|
66
|
+
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Instance").msgclass
|
67
|
+
Instance::MachineConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Instance.MachineConfig").msgclass
|
68
|
+
Instance::Node = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Instance.Node").msgclass
|
69
|
+
Instance::QueryInsightsInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig").msgclass
|
70
|
+
Instance::ReadPoolConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Instance.ReadPoolConfig").msgclass
|
71
|
+
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Instance.State").enummodule
|
72
|
+
Instance::InstanceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Instance.InstanceType").enummodule
|
73
|
+
Instance::AvailabilityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Instance.AvailabilityType").enummodule
|
74
|
+
Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Backup").msgclass
|
75
|
+
Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Backup.State").enummodule
|
76
|
+
Backup::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.Backup.Type").enummodule
|
77
|
+
InstanceEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.InstanceEventData").msgclass
|
78
|
+
BackupEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.BackupEventData").msgclass
|
79
|
+
ClusterEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.ClusterEventData").msgclass
|
80
|
+
DatabaseVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.DatabaseVersion").enummodule
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/alloydb/v1/events.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/events/cloud/alloydb/v1/data_pb'
|
8
|
+
require 'google/events/cloudevent_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n+google/events/cloud/alloydb/v1/events.proto\x12\x1egoogle.events.cloud.alloydb.v1\x1a)google/events/cloud/alloydb/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x8f\x01\n\x13\x43lusterCreatedEvent\x12>\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.ClusterEventData:8\xb2\xf8\xd8,\'google.cloud.alloydb.cluster.v1.created\xca\xf8\xd8,\x07\x63luster\"\x8f\x01\n\x13\x43lusterUpdatedEvent\x12>\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.ClusterEventData:8\xb2\xf8\xd8,\'google.cloud.alloydb.cluster.v1.updated\xca\xf8\xd8,\x07\x63luster\"\x8f\x01\n\x13\x43lusterDeletedEvent\x12>\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.ClusterEventData:8\xb2\xf8\xd8,\'google.cloud.alloydb.cluster.v1.deleted\xca\xf8\xd8,\x07\x63luster\"\x9f\x01\n\x14InstanceCreatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.alloydb.v1.InstanceEventData:F\xb2\xf8\xd8,(google.cloud.alloydb.instance.v1.created\xca\xf8\xd8,\x07\x63luster\xca\xf8\xd8,\x08instance\"\x9f\x01\n\x14InstanceUpdatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.alloydb.v1.InstanceEventData:F\xb2\xf8\xd8,(google.cloud.alloydb.instance.v1.updated\xca\xf8\xd8,\x07\x63luster\xca\xf8\xd8,\x08instance\"\x9f\x01\n\x14InstanceDeletedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.alloydb.v1.InstanceEventData:F\xb2\xf8\xd8,(google.cloud.alloydb.instance.v1.deleted\xca\xf8\xd8,\x07\x63luster\xca\xf8\xd8,\x08instance\"\x8b\x01\n\x12\x42\x61\x63kupCreatedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.alloydb.v1.BackupEventData:6\xb2\xf8\xd8,&google.cloud.alloydb.backup.v1.created\xca\xf8\xd8,\x06\x62\x61\x63kup\"\x8b\x01\n\x12\x42\x61\x63kupUpdatedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.alloydb.v1.BackupEventData:6\xb2\xf8\xd8,&google.cloud.alloydb.backup.v1.updated\xca\xf8\xd8,\x06\x62\x61\x63kup\"\x8b\x01\n\x12\x42\x61\x63kupDeletedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.alloydb.v1.BackupEventData:6\xb2\xf8\xd8,&google.cloud.alloydb.backup.v1.deleted\xca\xf8\xd8,\x06\x62\x61\x63kupB\xd7\x02\xaa\x02\'Google.Events.Protobuf.Cloud.AlloyDb.V1\xca\x02\x1eGoogle\\Events\\Cloud\\AlloyDb\\V1\xea\x02\"Google::Events::Cloud::AlloyDB::V1\xba\xf8\xd8,\x16\x41lloyDB for PostgreSQL\xc2\xf8\xd8,?\n\x07\x63luster\x12\x34The resource ID of the Cluster triggering the event.\xc2\xf8\xd8,A\n\x08instance\x12\x35The resource ID of the Instance triggering the event.\xc2\xf8\xd8,=\n\x06\x62\x61\x63kup\x12\x33The resource ID of the Backup triggering the event.b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
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.cloud.alloydb.v1.ClusterEventData", "google/events/cloud/alloydb/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}"
|
32
|
+
end
|
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."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Google
|
39
|
+
module Events
|
40
|
+
module Cloud
|
41
|
+
module AlloyDB
|
42
|
+
module V1
|
43
|
+
ClusterCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.ClusterCreatedEvent").msgclass
|
44
|
+
ClusterUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.ClusterUpdatedEvent").msgclass
|
45
|
+
ClusterDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.ClusterDeletedEvent").msgclass
|
46
|
+
InstanceCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.InstanceCreatedEvent").msgclass
|
47
|
+
InstanceUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.InstanceUpdatedEvent").msgclass
|
48
|
+
InstanceDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.InstanceDeletedEvent").msgclass
|
49
|
+
BackupCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.BackupCreatedEvent").msgclass
|
50
|
+
BackupUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.BackupUpdatedEvent").msgclass
|
51
|
+
BackupDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.alloydb.v1.BackupDeletedEvent").msgclass
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -17,7 +17,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
17
|
|
18
18
|
begin
|
19
19
|
pool.add_serialized_file(descriptor_data)
|
20
|
-
rescue TypeError
|
20
|
+
rescue TypeError
|
21
21
|
# Compatibility code: will be removed in the next major version.
|
22
22
|
require 'google/protobuf/descriptor_pb'
|
23
23
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -16,7 +16,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
16
|
|
17
17
|
begin
|
18
18
|
pool.add_serialized_file(descriptor_data)
|
19
|
-
rescue TypeError
|
19
|
+
rescue TypeError
|
20
20
|
# Compatibility code: will be removed in the next major version.
|
21
21
|
require 'google/protobuf/descriptor_pb'
|
22
22
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -8,13 +8,13 @@ require 'google/events/cloud/dataflow/v1beta3/data_pb'
|
|
8
8
|
require 'google/events/cloudevent_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n1google/events/cloud/dataflow/v1beta3/events.proto\x12$google.events.cloud.dataflow.v1beta3\x1a/google/events/cloud/dataflow/v1beta3/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x97\x01\n\x15JobStatusChangedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.dataflow.v1beta3.JobEventData:<\xb2\xf8\xd8,/google.cloud.dataflow.job.v1beta3.statusChanged\xca\xf8\xd8,\x03jobB\
|
11
|
+
descriptor_data = "\n1google/events/cloud/dataflow/v1beta3/events.proto\x12$google.events.cloud.dataflow.v1beta3\x1a/google/events/cloud/dataflow/v1beta3/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x97\x01\n\x15JobStatusChangedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.dataflow.v1beta3.JobEventData:<\xb2\xf8\xd8,/google.cloud.dataflow.job.v1beta3.statusChanged\xca\xf8\xd8,\x03jobB\xc4\x01\xaa\x02-Google.Events.Protobuf.Cloud.Dataflow.V1Beta3\xca\x02$Google\\Events\\Cloud\\Dataflow\\V1beta3\xea\x02(Google::Events::Cloud::Dataflow::V1beta3\xba\xf8\xd8,\x08\x44\x61taflow\xc2\xf8\xd8,0\n\x03job\x12)The name of the Job triggering the event.b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/datastore/v1/data.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/struct_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/type/latlng_pb'
|
10
|
+
|
11
|
+
|
12
|
+
descriptor_data = "\n+google/events/cloud/datastore/v1/data.proto\x12 google.events.cloud.datastore.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18google/type/latlng.proto\"\xd8\x01\n\x0f\x45ntityEventData\x12=\n\x05value\x18\x01 \x01(\x0b\x32..google.events.cloud.datastore.v1.EntityResult\x12\x41\n\told_value\x18\x02 \x01(\x0b\x32..google.events.cloud.datastore.v1.EntityResult\x12\x43\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32..google.events.cloud.datastore.v1.PropertyMask\"&\n\x0cPropertyMask\x12\x16\n\x0eproperty_paths\x18\x01 \x03(\t\"\x9e\x02\n\x0c\x45ntityResult\x12\x38\n\x06\x65ntity\x18\x01 \x01(\x0b\x32(.google.events.cloud.datastore.v1.Entity\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x63ursor\x18\x03 \x01(\x0c\"Q\n\nResultType\x12\x1b\n\x17RESULT_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\x0e\n\nPROJECTION\x10\x02\x12\x0c\n\x08KEY_ONLY\x10\x03\"L\n\x0bPartitionId\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\"\xd1\x01\n\x03Key\x12\x43\n\x0cpartition_id\x18\x01 \x01(\x0b\x32-.google.events.cloud.datastore.v1.PartitionId\x12?\n\x04path\x18\x02 \x03(\x0b\x32\x31.google.events.cloud.datastore.v1.Key.PathElement\x1a\x44\n\x0bPathElement\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x02id\x18\x02 \x01(\x03H\x00\x12\x0e\n\x04name\x18\x03 \x01(\tH\x00\x42\t\n\x07id_type\"E\n\nArrayValue\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.google.events.cloud.datastore.v1.Value\"\x98\x04\n\x05Value\x12\x30\n\nnull_value\x18\x0b \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x17\n\rboolean_value\x18\x01 \x01(\x08H\x00\x12\x17\n\rinteger_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x35\n\x0ftimestamp_value\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12:\n\tkey_value\x18\x05 \x01(\x0b\x32%.google.events.cloud.datastore.v1.KeyH\x00\x12\x16\n\x0cstring_value\x18\x11 \x01(\tH\x00\x12\x14\n\nblob_value\x18\x12 \x01(\x0cH\x00\x12.\n\x0fgeo_point_value\x18\x08 \x01(\x0b\x32\x13.google.type.LatLngH\x00\x12@\n\x0c\x65ntity_value\x18\x06 \x01(\x0b\x32(.google.events.cloud.datastore.v1.EntityH\x00\x12\x43\n\x0b\x61rray_value\x18\t \x01(\x0b\x32,.google.events.cloud.datastore.v1.ArrayValueH\x00\x12\x0f\n\x07meaning\x18\x0e \x01(\x05\x12\x1c\n\x14\x65xclude_from_indexes\x18\x13 \x01(\x08\x42\x0c\n\nvalue_type\"\xe6\x01\n\x06\x45ntity\x12\x32\n\x03key\x18\x01 \x01(\x0b\x32%.google.events.cloud.datastore.v1.Key\x12L\n\nproperties\x18\x03 \x03(\x0b\x32\x38.google.events.cloud.datastore.v1.Entity.PropertiesEntry\x1aZ\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.events.cloud.datastore.v1.Value:\x02\x38\x01\x42xP\x01\xaa\x02)Google.Events.Protobuf.Cloud.Datastore.V1\xca\x02 Google\\Events\\Cloud\\Datastore\\V1\xea\x02$Google::Events::Cloud::Datastore::V1b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
|
+
["google.type.LatLng", "google/type/latlng.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
38
|
+
end
|
39
|
+
|
40
|
+
module Google
|
41
|
+
module Events
|
42
|
+
module Cloud
|
43
|
+
module Datastore
|
44
|
+
module V1
|
45
|
+
EntityEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.EntityEventData").msgclass
|
46
|
+
PropertyMask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.PropertyMask").msgclass
|
47
|
+
EntityResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.EntityResult").msgclass
|
48
|
+
EntityResult::ResultType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.EntityResult.ResultType").enummodule
|
49
|
+
PartitionId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.PartitionId").msgclass
|
50
|
+
Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.Key").msgclass
|
51
|
+
Key::PathElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.Key.PathElement").msgclass
|
52
|
+
ArrayValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.ArrayValue").msgclass
|
53
|
+
Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.Value").msgclass
|
54
|
+
Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.Entity").msgclass
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/datastore/v1/events.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/events/cloud/datastore/v1/data_pb'
|
8
|
+
require 'google/events/cloudevent_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n-google/events/cloud/datastore/v1/events.proto\x12 google.events.cloud.datastore.v1\x1a+google/events/cloud/datastore/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\xaa\x01\n\x12\x45ntityCreatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.datastore.v1.EntityEventData:S\xb2\xf8\xd8,(google.cloud.datastore.entity.v1.created\xca\xf8\xd8,\x08\x64\x61tabase\xca\xf8\xd8,\tnamespace\xca\xf8\xd8,\x06\x65ntity\"\xaa\x01\n\x12\x45ntityUpdatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.datastore.v1.EntityEventData:S\xb2\xf8\xd8,(google.cloud.datastore.entity.v1.updated\xca\xf8\xd8,\x08\x64\x61tabase\xca\xf8\xd8,\tnamespace\xca\xf8\xd8,\x06\x65ntity\"\xaa\x01\n\x12\x45ntityDeletedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.datastore.v1.EntityEventData:S\xb2\xf8\xd8,(google.cloud.datastore.entity.v1.deleted\xca\xf8\xd8,\x08\x64\x61tabase\xca\xf8\xd8,\tnamespace\xca\xf8\xd8,\x06\x65ntity\"\xaa\x01\n\x12\x45ntityWrittenEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.datastore.v1.EntityEventData:S\xb2\xf8\xd8,(google.cloud.datastore.entity.v1.written\xca\xf8\xd8,\x08\x64\x61tabase\xca\xf8\xd8,\tnamespace\xca\xf8\xd8,\x06\x65ntityB\xeb\x02\xaa\x02)Google.Events.Protobuf.Cloud.Datastore.V1\xca\x02 Google\\Events\\Cloud\\Datastore\\V1\xea\x02$Google::Events::Cloud::Datastore::V1\xba\xf8\xd8,\x0f\x43loud Firestore\xc2\xf8\xd8,R\n\x08\x64\x61tabase\x12\x46The Firestore database name. The default database name is \"(default)\".\xc2\xf8\xd8,T\n\tnamespace\x12GThe Firestore database namespace. The default namespace is \"(default)\".\xc2\xf8\xd8,,\n\x06\x65ntity\x12\"Pattern to match for the resource.b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
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.cloud.datastore.v1.EntityEventData", "google/events/cloud/datastore/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}"
|
32
|
+
end
|
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."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Google
|
39
|
+
module Events
|
40
|
+
module Cloud
|
41
|
+
module Datastore
|
42
|
+
module V1
|
43
|
+
EntityCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.EntityCreatedEvent").msgclass
|
44
|
+
EntityUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.EntityUpdatedEvent").msgclass
|
45
|
+
EntityDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.EntityDeletedEvent").msgclass
|
46
|
+
EntityWrittenEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.datastore.v1.EntityWrittenEvent").msgclass
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|