google-events 0.2.0 → 0.4.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 +22 -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 +25 -77
- data/lib/google/events/cloud/apigateway/v1/events_pb.rb +25 -28
- data/lib/google/events/cloud/apigeeregistry/v1/data_pb.rb +25 -90
- data/lib/google/events/cloud/apigeeregistry/v1/events_pb.rb +25 -43
- data/lib/google/events/cloud/audit/v1/data_pb.rb +29 -91
- data/lib/google/events/cloud/audit/v1/events_pb.rb +25 -4
- data/lib/google/events/cloud/beyondcorp/appconnections/v1/data_pb.rb +25 -44
- data/lib/google/events/cloud/beyondcorp/appconnections/v1/events_pb.rb +25 -10
- data/lib/google/events/cloud/beyondcorp/appconnectors/v1/data_pb.rb +25 -44
- data/lib/google/events/cloud/beyondcorp/appconnectors/v1/events_pb.rb +25 -10
- data/lib/google/events/cloud/beyondcorp/appgateways/v1/data_pb.rb +25 -37
- data/lib/google/events/cloud/beyondcorp/appgateways/v1/events_pb.rb +25 -7
- data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/data_pb.rb +25 -47
- data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/events_pb.rb +25 -10
- data/lib/google/events/cloud/beyondcorp/clientgateways/v1/data_pb.rb +25 -21
- data/lib/google/events/cloud/beyondcorp/clientgateways/v1/events_pb.rb +25 -7
- data/lib/google/events/cloud/certificatemanager/v1/data_pb.rb +26 -157
- data/lib/google/events/cloud/certificatemanager/v1/events_pb.rb +25 -43
- data/lib/google/events/cloud/cloudbuild/v1/data_pb.rb +26 -162
- data/lib/google/events/cloud/cloudbuild/v1/events_pb.rb +25 -4
- data/lib/google/events/cloud/clouddms/v1/data_pb.rb +28 -241
- data/lib/google/events/cloud/clouddms/v1/events_pb.rb +25 -19
- data/lib/google/events/cloud/dataflow/v1beta3/data_pb.rb +26 -195
- data/lib/google/events/cloud/dataflow/v1beta3/events_pb.rb +25 -4
- data/lib/google/events/cloud/datafusion/v1/data_pb.rb +25 -107
- data/lib/google/events/cloud/datafusion/v1/events_pb.rb +25 -16
- data/lib/google/events/cloud/dataplex/v1/data_pb.rb +26 -603
- data/lib/google/events/cloud/dataplex/v1/events_pb.rb +25 -82
- 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 +26 -291
- data/lib/google/events/cloud/datastream/v1/events_pb.rb +25 -31
- data/lib/google/events/cloud/eventarc/v1/data_pb.rb +25 -89
- data/lib/google/events/cloud/eventarc/v1/events_pb.rb +25 -25
- data/lib/google/events/cloud/firestore/v1/data_pb.rb +26 -36
- data/lib/google/events/cloud/firestore/v1/events_pb.rb +25 -13
- data/lib/google/events/cloud/functions/v2/data_pb.rb +25 -155
- data/lib/google/events/cloud/functions/v2/events_pb.rb +25 -10
- data/lib/google/events/cloud/gkebackup/v1/data_pb.rb +25 -189
- data/lib/google/events/cloud/gkebackup/v1/events_pb.rb +25 -37
- 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 +26 -132
- data/lib/google/events/cloud/iot/v1/events_pb.rb +25 -19
- data/lib/google/events/cloud/memcache/v1/data_pb.rb +27 -83
- data/lib/google/events/cloud/memcache/v1/events_pb.rb +25 -10
- 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 +25 -12
- data/lib/google/events/cloud/pubsub/v1/events_pb.rb +25 -4
- 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 +24 -4
- data/lib/google/events/cloud/scheduler/v1/events_pb.rb +25 -4
- data/lib/google/events/cloud/storage/v1/data_pb.rb +25 -36
- data/lib/google/events/cloud/storage/v1/events_pb.rb +25 -13
- data/lib/google/events/cloud/video/transcoder/v1/data_pb.rb +96 -0
- data/lib/google/events/cloud/video/transcoder/v1/events_pb.rb +53 -0
- 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 +25 -22
- data/lib/google/events/cloud/workflows/v1/events_pb.rb +25 -10
- data/lib/google/events/cloudevent_pb.rb +24 -6
- data/lib/google/events/firebase/analytics/v1/data_pb.rb +24 -76
- data/lib/google/events/firebase/analytics/v1/events_pb.rb +25 -4
- data/lib/google/events/firebase/auth/v1/data_pb.rb +26 -24
- data/lib/google/events/firebase/auth/v1/events_pb.rb +25 -7
- data/lib/google/events/firebase/database/v1/data_pb.rb +25 -5
- data/lib/google/events/firebase/database/v1/events_pb.rb +25 -13
- data/lib/google/events/firebase/firebasealerts/v1/cloud_event_payload_pb.rb +26 -79
- data/lib/google/events/firebase/firebasealerts/v1/data_pb.rb +26 -6
- data/lib/google/events/firebase/firebasealerts/v1/events_pb.rb +25 -4
- data/lib/google/events/firebase/remoteconfig/v1/data_pb.rb +25 -27
- data/lib/google/events/firebase/remoteconfig/v1/events_pb.rb +25 -4
- data/lib/google/events/firebase/testlab/v1/data_pb.rb +25 -35
- data/lib/google/events/firebase/testlab/v1/events_pb.rb +25 -4
- data/lib/google/events/version.rb +1 -1
- metadata +24 -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/cloud/pubsub/v1/data.proto
|
3
4
|
|
@@ -5,20 +6,32 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
|
10
|
+
descriptor_data = "\n(google/events/cloud/pubsub/v1/data.proto\x12\x1dgoogle.events.cloud.pubsub.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"k\n\x14MessagePublishedData\x12=\n\x07message\x18\x01 \x01(\x0b\x32,.google.events.cloud.pubsub.v1.PubsubMessage\x12\x14\n\x0csubscription\x18\x02 \x01(\t\"\xfe\x01\n\rPubsubMessage\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12P\n\nattributes\x18\x02 \x03(\x0b\x32<.google.events.cloud.pubsub.v1.PubsubMessage.AttributesEntry\x12\x12\n\nmessage_id\x18\x03 \x01(\t\x12\x30\n\x0cpublish_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cordering_key\x18\x05 \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42m\xaa\x02&Google.Events.Protobuf.Cloud.PubSub.V1\xca\x02\x1dGoogle\\Events\\Cloud\\PubSub\\V1\xea\x02!Google::Events::Cloud::PubSub::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}"
|
20
31
|
end
|
21
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."
|
22
35
|
end
|
23
36
|
|
24
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/cloud/pubsub/v1/events.proto
|
3
4
|
|
@@ -6,12 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/pubsub/v1/data_pb'
|
7
8
|
require 'google/events/cloudevent_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n*google/events/cloud/pubsub/v1/events.proto\x12\x1dgoogle.events.cloud.pubsub.v1\x1a(google/events/cloud/pubsub/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x98\x01\n\x15MessagePublishedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.pubsub.v1.MessagePublishedData:<\xb2\xf8\xd8,-google.cloud.pubsub.topic.v1.messagePublished\xca\xf8\xd8,\x05topicB\xc3\x01\xaa\x02&Google.Events.Protobuf.Cloud.PubSub.V1\xca\x02\x1dGoogle\\Events\\Cloud\\PubSub\\V1\xea\x02!Google::Events::Cloud::PubSub::V1\xba\xf8\xd8,\rCloud Pub/Sub\xc2\xf8\xd8,?\n\x05topic\x12\x36The Pub/Sub topic for which the message was published.b\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.cloud.pubsub.v1.MessagePublishedData", "google/events/cloud/pubsub/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
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/redis/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/redis/v1/data.proto\x12\x1cgoogle.events.cloud.redis.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"$\n\x08NodeInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\"\xd9\x11\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x42\n\x06labels\x18\x03 \x03(\x0b\x32\x32.google.events.cloud.redis.v1.Instance.LabelsEntry\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\x12\x1f\n\x17\x61lternative_location_id\x18\x05 \x01(\t\x12\x15\n\rredis_version\x18\x07 \x01(\t\x12\x19\n\x11reserved_ip_range\x18\t \x01(\t\x12\x1a\n\x12secondary_ip_range\x18\x1e \x01(\t\x12\x0c\n\x04host\x18\n \x01(\t\x12\x0c\n\x04port\x18\x0b \x01(\x05\x12\x1b\n\x13\x63urrent_location_id\x18\x0c \x01(\t\x12/\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x05state\x18\x0e \x01(\x0e\x32,.google.events.cloud.redis.v1.Instance.State\x12\x16\n\x0estatus_message\x18\x0f \x01(\t\x12O\n\rredis_configs\x18\x10 \x03(\x0b\x32\x38.google.events.cloud.redis.v1.Instance.RedisConfigsEntry\x12\x39\n\x04tier\x18\x11 \x01(\x0e\x32+.google.events.cloud.redis.v1.Instance.Tier\x12\x16\n\x0ememory_size_gb\x18\x12 \x01(\x05\x12\x1a\n\x12\x61uthorized_network\x18\x14 \x01(\t\x12 \n\x18persistence_iam_identity\x18\x15 \x01(\t\x12H\n\x0c\x63onnect_mode\x18\x16 \x01(\x0e\x32\x32.google.events.cloud.redis.v1.Instance.ConnectMode\x12\x14\n\x0c\x61uth_enabled\x18\x17 \x01(\x08\x12\x45\n\x0fserver_ca_certs\x18\x19 \x03(\x0b\x32,.google.events.cloud.redis.v1.TlsCertificate\x12]\n\x17transit_encryption_mode\x18\x1a \x01(\x0e\x32<.google.events.cloud.redis.v1.Instance.TransitEncryptionMode\x12K\n\x12maintenance_policy\x18\x1b \x01(\x0b\x32/.google.events.cloud.redis.v1.MaintenancePolicy\x12O\n\x14maintenance_schedule\x18\x1c \x01(\x0b\x32\x31.google.events.cloud.redis.v1.MaintenanceSchedule\x12\x15\n\rreplica_count\x18\x1f \x01(\x05\x12\x35\n\x05nodes\x18 \x03(\x0b\x32&.google.events.cloud.redis.v1.NodeInfo\x12\x15\n\rread_endpoint\x18! \x01(\t\x12\x1a\n\x12read_endpoint_port\x18\" \x01(\x05\x12S\n\x12read_replicas_mode\x18# \x01(\x0e\x32\x37.google.events.cloud.redis.v1.Instance.ReadReplicasMode\x12\x1c\n\x14\x63ustomer_managed_key\x18$ \x01(\t\x12K\n\x12persistence_config\x18% \x01(\x0b\x32/.google.events.cloud.redis.v1.PersistenceConfig\x12S\n\x12suspension_reasons\x18& \x03(\x0e\x32\x37.google.events.cloud.redis.v1.Instance.SuspensionReason\x12\x1b\n\x13maintenance_version\x18\' \x01(\t\x12&\n\x1e\x61vailable_maintenance_versions\x18( \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\x33\n\x11RedisConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\r\n\tREPAIRING\x10\x05\x12\x0f\n\x0bMAINTENANCE\x10\x06\x12\r\n\tIMPORTING\x10\x08\x12\x10\n\x0c\x46\x41ILING_OVER\x10\t\"8\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0f\n\x0bSTANDARD_HA\x10\x03\"[\n\x0b\x43onnectMode\x12\x1c\n\x18\x43ONNECT_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x44IRECT_PEERING\x10\x01\x12\x1a\n\x16PRIVATE_SERVICE_ACCESS\x10\x02\"i\n\x15TransitEncryptionMode\x12\'\n#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\x10\x00\x12\x19\n\x15SERVER_AUTHENTICATION\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"m\n\x10ReadReplicasMode\x12\"\n\x1eREAD_REPLICAS_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16READ_REPLICAS_DISABLED\x10\x01\x12\x19\n\x15READ_REPLICAS_ENABLED\x10\x02\"U\n\x10SuspensionReason\x12!\n\x1dSUSPENSION_REASON_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43USTOMER_MANAGED_KEY_ISSUE\x10\x01\"\x89\x04\n\x11PersistenceConfig\x12Y\n\x10persistence_mode\x18\x01 \x01(\x0e\x32?.google.events.cloud.redis.v1.PersistenceConfig.PersistenceMode\x12[\n\x13rdb_snapshot_period\x18\x02 \x01(\x0e\x32>.google.events.cloud.redis.v1.PersistenceConfig.SnapshotPeriod\x12:\n\x16rdb_next_snapshot_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17rdb_snapshot_start_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"J\n\x0fPersistenceMode\x12 \n\x1cPERSISTENCE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x07\n\x03RDB\x10\x02\"w\n\x0eSnapshotPeriod\x12\x1f\n\x1bSNAPSHOT_PERIOD_UNSPECIFIED\x10\x00\x12\x0c\n\x08ONE_HOUR\x10\x03\x12\r\n\tSIX_HOURS\x10\x04\x12\x10\n\x0cTWELVE_HOURS\x10\x05\x12\x15\n\x11TWENTY_FOUR_HOURS\x10\x06\"\xe4\x01\n\x11MaintenancePolicy\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12X\n\x19weekly_maintenance_window\x18\x04 \x03(\x0b\x32\x35.google.events.cloud.redis.v1.WeeklyMaintenanceWindow\"\x97\x01\n\x17WeeklyMaintenanceWindow\x12#\n\x03\x64\x61y\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeek\x12*\n\nstart_time\x18\x02 \x01(\x0b\x32\x16.google.type.TimeOfDay\x12+\n\x08\x64uration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xc7\x01\n\x13MaintenanceSchedule\x12.\n\nstart_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\x16\n\x0e\x63\x61n_reschedule\x18\x03 \x01(\x08\x12:\n\x16schedule_deadline_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa3\x01\n\x0eTlsCertificate\x12\x15\n\rserial_number\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10sha1_fingerprint\x18\x05 \x01(\t\"]\n\x11InstanceEventData\x12<\n\x07payload\x18\x01 \x01(\x0b\x32&.google.events.cloud.redis.v1.InstanceH\x00\x88\x01\x01\x42\n\n\x08_payloadBj\xaa\x02%Google.Events.Protobuf.Cloud.Redis.V1\xca\x02\x1cGoogle\\Events\\Cloud\\Redis\\V1\xea\x02 Google::Events::Cloud::Redis::V1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
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.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
["google.type.TimeOfDay", "google/type/timeofday.proto"],
|
30
|
+
["google.protobuf.Duration", "google/protobuf/duration.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 Redis
|
46
|
+
module V1
|
47
|
+
NodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.NodeInfo").msgclass
|
48
|
+
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.Instance").msgclass
|
49
|
+
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.Instance.State").enummodule
|
50
|
+
Instance::Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.Instance.Tier").enummodule
|
51
|
+
Instance::ConnectMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.Instance.ConnectMode").enummodule
|
52
|
+
Instance::TransitEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.Instance.TransitEncryptionMode").enummodule
|
53
|
+
Instance::ReadReplicasMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.Instance.ReadReplicasMode").enummodule
|
54
|
+
Instance::SuspensionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.Instance.SuspensionReason").enummodule
|
55
|
+
PersistenceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.PersistenceConfig").msgclass
|
56
|
+
PersistenceConfig::PersistenceMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.PersistenceConfig.PersistenceMode").enummodule
|
57
|
+
PersistenceConfig::SnapshotPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.PersistenceConfig.SnapshotPeriod").enummodule
|
58
|
+
MaintenancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.MaintenancePolicy").msgclass
|
59
|
+
WeeklyMaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.WeeklyMaintenanceWindow").msgclass
|
60
|
+
MaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.MaintenanceSchedule").msgclass
|
61
|
+
TlsCertificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.TlsCertificate").msgclass
|
62
|
+
InstanceEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.InstanceEventData").msgclass
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/redis/v1/events.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/events/cloud/redis/v1/data_pb'
|
8
|
+
require 'google/events/cloudevent_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n)google/events/cloud/redis/v1/events.proto\x12\x1cgoogle.events.cloud.redis.v1\x1a\'google/events/cloud/redis/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x8f\x01\n\x14InstanceCreatedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.redis.v1.InstanceEventData:8\xb2\xf8\xd8,&google.cloud.redis.instance.v1.created\xca\xf8\xd8,\x08instance\"\x8f\x01\n\x14InstanceUpdatedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.redis.v1.InstanceEventData:8\xb2\xf8\xd8,&google.cloud.redis.instance.v1.updated\xca\xf8\xd8,\x08instance\"\x8f\x01\n\x14InstanceDeletedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.redis.v1.InstanceEventData:8\xb2\xf8\xd8,&google.cloud.redis.instance.v1.deleted\xca\xf8\xd8,\x08instanceB\xd7\x01\xaa\x02%Google.Events.Protobuf.Cloud.Redis.V1\xca\x02\x1cGoogle\\Events\\Cloud\\Redis\\V1\xea\x02 Google::Events::Cloud::Redis::V1\xba\xf8\xd8,\"Google Cloud Memorystore for Redis\xc2\xf8\xd8,A\n\x08instance\x12\x35The resource ID of the Instance 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 => 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.cloud.redis.v1.InstanceEventData", "google/events/cloud/redis/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 Redis
|
42
|
+
module V1
|
43
|
+
InstanceCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.InstanceCreatedEvent").msgclass
|
44
|
+
InstanceUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.InstanceUpdatedEvent").msgclass
|
45
|
+
InstanceDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.redis.v1.InstanceDeletedEvent").msgclass
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -1,14 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/events/cloud/scheduler/v1/data.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n+google/events/cloud/scheduler/v1/data.proto\x12 google.events.cloud.scheduler.v1\"\'\n\x10SchedulerJobData\x12\x13\n\x0b\x63ustom_data\x18\x01 \x01(\x0c\x42v\xaa\x02)Google.Events.Protobuf.Cloud.Scheduler.V1\xca\x02 Google\\Events\\Cloud\\Scheduler\\V1\xea\x02$Google::Events::Cloud::Scheduler::V1b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
10
28
|
end
|
11
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
12
32
|
end
|
13
33
|
|
14
34
|
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/cloud/scheduler/v1/events.proto
|
3
4
|
|
@@ -6,12 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/scheduler/v1/data_pb'
|
7
8
|
require 'google/events/cloudevent_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n-google/events/cloud/scheduler/v1/events.proto\x12 google.events.cloud.scheduler.v1\x1a+google/events/cloud/scheduler/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x81\x01\n\x10JobExecutedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.scheduler.v1.SchedulerJobData:+\xb2\xf8\xd8,&google.cloud.scheduler.job.v1.executedB\x8a\x01\xaa\x02)Google.Events.Protobuf.Cloud.Scheduler.V1\xca\x02 Google\\Events\\Cloud\\Scheduler\\V1\xea\x02$Google::Events::Cloud::Scheduler::V1\xba\xf8\xd8,\x0f\x43loud Schedulerb\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.cloud.scheduler.v1.SchedulerJobData", "google/events/cloud/scheduler/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/cloud/storage/v1/data.proto
|
3
4
|
|
@@ -5,44 +6,32 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
map :metadata, :string, :string, 21
|
31
|
-
optional :event_based_hold, :bool, 29
|
32
|
-
optional :name, :string, 23
|
33
|
-
optional :id, :string, 24
|
34
|
-
optional :bucket, :string, 25
|
35
|
-
optional :generation, :int64, 26
|
36
|
-
optional :customer_encryption, :message, 28, "google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption"
|
37
|
-
optional :media_link, :string, 100
|
38
|
-
optional :self_link, :string, 101
|
39
|
-
optional :kind, :string, 102
|
40
|
-
end
|
41
|
-
add_message "google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption" do
|
42
|
-
optional :encryption_algorithm, :string, 1
|
43
|
-
optional :key_sha256, :string, 2
|
9
|
+
|
10
|
+
descriptor_data = "\n)google/events/cloud/storage/v1/data.proto\x12\x1egoogle.events.cloud.storage.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x08\n\x11StorageObjectData\x12\x18\n\x10\x63ontent_encoding\x18\x01 \x01(\t\x12\x1b\n\x13\x63ontent_disposition\x18\x02 \x01(\t\x12\x15\n\rcache_control\x18\x03 \x01(\t\x12\x18\n\x10\x63ontent_language\x18\x05 \x01(\t\x12\x16\n\x0emetageneration\x18\x06 \x01(\x03\x12\x30\n\x0ctime_deleted\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x63ontent_type\x18\x08 \x01(\t\x12\x0c\n\x04size\x18\t \x01(\x03\x12\x30\n\x0ctime_created\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x63rc32c\x18\x0b \x01(\t\x12\x17\n\x0f\x63omponent_count\x18\x0c \x01(\x05\x12\x10\n\x08md5_hash\x18\r \x01(\t\x12\x0c\n\x04\x65tag\x18\x0e \x01(\t\x12+\n\x07updated\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rstorage_class\x18\x10 \x01(\t\x12\x14\n\x0ckms_key_name\x18\x11 \x01(\t\x12>\n\x1atime_storage_class_updated\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0etemporary_hold\x18\x13 \x01(\x08\x12=\n\x19retention_expiration_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x08metadata\x18\x15 \x03(\x0b\x32?.google.events.cloud.storage.v1.StorageObjectData.MetadataEntry\x12\x18\n\x10\x65vent_based_hold\x18\x1d \x01(\x08\x12\x0c\n\x04name\x18\x17 \x01(\t\x12\n\n\x02id\x18\x18 \x01(\t\x12\x0e\n\x06\x62ucket\x18\x19 \x01(\t\x12\x12\n\ngeneration\x18\x1a \x01(\x03\x12\x61\n\x13\x63ustomer_encryption\x18\x1c \x01(\x0b\x32\x44.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption\x12\x12\n\nmedia_link\x18\x64 \x01(\t\x12\x11\n\tself_link\x18\x65 \x01(\t\x12\x0c\n\x04kind\x18\x66 \x01(\t\x1a\x46\n\x12\x43ustomerEncryption\x12\x1c\n\x14\x65ncryption_algorithm\x18\x01 \x01(\t\x12\x12\n\nkey_sha256\x18\x02 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42p\xaa\x02\'Google.Events.Protobuf.Cloud.Storage.V1\xca\x02\x1eGoogle\\Events\\Cloud\\Storage\\V1\xea\x02\"Google::Events::Cloud::Storage::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}"
|
44
31
|
end
|
45
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."
|
46
35
|
end
|
47
36
|
|
48
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/cloud/storage/v1/events.proto
|
3
4
|
|
@@ -6,21 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/storage/v1/data_pb'
|
7
8
|
require 'google/events/cloudevent_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n+google/events/cloud/storage/v1/events.proto\x12\x1egoogle.events.cloud.storage.v1\x1a)google/events/cloud/storage/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x91\x01\n\x14ObjectFinalizedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.storage.v1.StorageObjectData:8\xb2\xf8\xd8,(google.cloud.storage.object.v1.finalized\xca\xf8\xd8,\x06\x62ucket\"\x8f\x01\n\x13ObjectArchivedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.storage.v1.StorageObjectData:7\xb2\xf8\xd8,\'google.cloud.storage.object.v1.archived\xca\xf8\xd8,\x06\x62ucket\"\x8d\x01\n\x12ObjectDeletedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.storage.v1.StorageObjectData:6\xb2\xf8\xd8,&google.cloud.storage.object.v1.deleted\xca\xf8\xd8,\x06\x62ucket\"\x9d\x01\n\x1aObjectMetadataUpdatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.storage.v1.StorageObjectData:>\xb2\xf8\xd8,.google.cloud.storage.object.v1.metadataUpdated\xca\xf8\xd8,\x06\x62ucketB\xaf\x01\xaa\x02\'Google.Events.Protobuf.Cloud.Storage.V1\xca\x02\x1eGoogle\\Events\\Cloud\\Storage\\V1\xea\x02\"Google::Events::Cloud::Storage::V1\xba\xf8\xd8,\rCloud Storage\xc2\xf8\xd8,(\n\x06\x62ucket\x12\x1eThe bucket name being watched.b\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.cloud.storage.v1.StorageObjectData", "google/events/cloud/storage/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
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/video/transcoder/v1/data.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/rpc/status_pb'
|
10
|
+
|
11
|
+
|
12
|
+
descriptor_data = "\n2google/events/cloud/video/transcoder/v1/data.proto\x12\'google.events.cloud.video.transcoder.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xa6\x06\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x44\n\x06\x63onfig\x18\x05 \x01(\x0b\x32\x32.google.events.cloud.video.transcoder.v1.JobConfigH\x00\x12K\n\x05state\x18\x08 \x01(\x0e\x32<.google.events.cloud.video.transcoder.v1.Job.ProcessingState\x12/\n\x0b\x63reate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12!\n\x19ttl_after_completion_days\x18\x0f \x01(\x05\x12H\n\x06labels\x18\x10 \x03(\x0b\x32\x38.google.events.cloud.video.transcoder.v1.Job.LabelsEntry\x12!\n\x05\x65rror\x18\x11 \x01(\x0b\x32\x12.google.rpc.Status\x12I\n\x04mode\x18\x14 \x01(\x0e\x32;.google.events.cloud.video.transcoder.v1.Job.ProcessingMode\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"h\n\x0fProcessingState\x12 \n\x1cPROCESSING_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"m\n\x0eProcessingMode\x12\x1f\n\x1bPROCESSING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bPROCESSING_MODE_INTERACTIVE\x10\x01\x12\x19\n\x15PROCESSING_MODE_BATCH\x10\x02\x42\x0c\n\njob_config\"\xe0\x01\n\x0bJobTemplate\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x32.google.events.cloud.video.transcoder.v1.JobConfig\x12P\n\x06labels\x18\x03 \x03(\x0b\x32@.google.events.cloud.video.transcoder.v1.JobTemplate.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe6\x05\n\tJobConfig\x12>\n\x06inputs\x18\x01 \x03(\x0b\x32..google.events.cloud.video.transcoder.v1.Input\x12\x44\n\tedit_list\x18\x02 \x03(\x0b\x32\x31.google.events.cloud.video.transcoder.v1.EditAtom\x12U\n\x12\x65lementary_streams\x18\x03 \x03(\x0b\x32\x39.google.events.cloud.video.transcoder.v1.ElementaryStream\x12G\n\x0bmux_streams\x18\x04 \x03(\x0b\x32\x32.google.events.cloud.video.transcoder.v1.MuxStream\x12\x44\n\tmanifests\x18\x05 \x03(\x0b\x32\x31.google.events.cloud.video.transcoder.v1.Manifest\x12?\n\x06output\x18\x06 \x01(\x0b\x32/.google.events.cloud.video.transcoder.v1.Output\x12\x43\n\tad_breaks\x18\x07 \x03(\x0b\x32\x30.google.events.cloud.video.transcoder.v1.AdBreak\x12V\n\x12pubsub_destination\x18\x08 \x01(\x0b\x32:.google.events.cloud.video.transcoder.v1.PubsubDestination\x12K\n\rsprite_sheets\x18\t \x03(\x0b\x32\x34.google.events.cloud.video.transcoder.v1.SpriteSheet\x12\x42\n\x08overlays\x18\n \x03(\x0b\x32\x30.google.events.cloud.video.transcoder.v1.Overlay\"}\n\x05Input\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12Z\n\x14preprocessing_config\x18\x03 \x01(\x0b\x32<.google.events.cloud.video.transcoder.v1.PreprocessingConfig\"\x15\n\x06Output\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x91\x01\n\x08\x45\x64itAtom\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0e\n\x06inputs\x18\x02 \x03(\t\x12\x32\n\x0f\x65nd_time_offset\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11start_time_offset\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\"?\n\x07\x41\x64\x42reak\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\x02\n\x10\x45lementaryStream\x12\x0b\n\x03key\x18\x04 \x01(\t\x12L\n\x0cvideo_stream\x18\x01 \x01(\x0b\x32\x34.google.events.cloud.video.transcoder.v1.VideoStreamH\x00\x12L\n\x0c\x61udio_stream\x18\x02 \x01(\x0b\x32\x34.google.events.cloud.video.transcoder.v1.AudioStreamH\x00\x12J\n\x0btext_stream\x18\x03 \x01(\x0b\x32\x33.google.events.cloud.video.transcoder.v1.TextStreamH\x00\x42\x13\n\x11\x65lementary_stream\"\xae\x01\n\tMuxStream\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x11\n\tcontainer\x18\x03 \x01(\t\x12\x1a\n\x12\x65lementary_streams\x18\x04 \x03(\t\x12R\n\x10segment_settings\x18\x05 \x01(\x0b\x32\x38.google.events.cloud.video.transcoder.v1.SegmentSettings\"\xc2\x01\n\x08Manifest\x12\x11\n\tfile_name\x18\x01 \x01(\t\x12L\n\x04type\x18\x02 \x01(\x0e\x32>.google.events.cloud.video.transcoder.v1.Manifest.ManifestType\x12\x13\n\x0bmux_streams\x18\x03 \x03(\t\"@\n\x0cManifestType\x12\x1d\n\x19MANIFEST_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03HLS\x10\x01\x12\x08\n\x04\x44\x41SH\x10\x02\"\"\n\x11PubsubDestination\x12\r\n\x05topic\x18\x01 \x01(\t\"\xee\x02\n\x0bSpriteSheet\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x13\n\x0b\x66ile_prefix\x18\x02 \x01(\t\x12\x1b\n\x13sprite_width_pixels\x18\x03 \x01(\x05\x12\x1c\n\x14sprite_height_pixels\x18\x04 \x01(\x05\x12\x14\n\x0c\x63olumn_count\x18\x05 \x01(\x05\x12\x11\n\trow_count\x18\x06 \x01(\x05\x12\x34\n\x11start_time_offset\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\x0btotal_count\x18\t \x01(\x05H\x00\x12-\n\x08interval\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x0f\n\x07quality\x18\x0b \x01(\x05\x42\x15\n\x13\x65xtraction_strategy\"\xc0\t\n\x07Overlay\x12\x45\n\x05image\x18\x01 \x01(\x0b\x32\x36.google.events.cloud.video.transcoder.v1.Overlay.Image\x12N\n\nanimations\x18\x02 \x03(\x0b\x32:.google.events.cloud.video.transcoder.v1.Overlay.Animation\x1a,\n\x14NormalizedCoordinate\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x1a~\n\x05Image\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12Y\n\nresolution\x18\x02 \x01(\x0b\x32\x45.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate\x12\r\n\x05\x61lpha\x18\x03 \x01(\x01\x1a\x9a\x01\n\x0f\x41nimationStatic\x12Q\n\x02xy\x18\x01 \x01(\x0b\x32\x45.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate\x12\x34\n\x11start_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x9a\x02\n\rAnimationFade\x12L\n\tfade_type\x18\x01 \x01(\x0e\x32\x39.google.events.cloud.video.transcoder.v1.Overlay.FadeType\x12Q\n\x02xy\x18\x02 \x01(\x0b\x32\x45.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate\x12\x34\n\x11start_time_offset\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x44\n\x0c\x41nimationEnd\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\xad\x02\n\tAnimation\x12\\\n\x10\x61nimation_static\x18\x01 \x01(\x0b\x32@.google.events.cloud.video.transcoder.v1.Overlay.AnimationStaticH\x00\x12X\n\x0e\x61nimation_fade\x18\x02 \x01(\x0b\x32>.google.events.cloud.video.transcoder.v1.Overlay.AnimationFadeH\x00\x12V\n\ranimation_end\x18\x03 \x01(\x0b\x32=.google.events.cloud.video.transcoder.v1.Overlay.AnimationEndH\x00\x42\x10\n\x0e\x61nimation_type\"@\n\x08\x46\x61\x64\x65Type\x12\x19\n\x15\x46\x41\x44\x45_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x46\x41\x44\x45_IN\x10\x01\x12\x0c\n\x08\x46\x41\x44\x45_OUT\x10\x02\"\xb2\x0b\n\x13PreprocessingConfig\x12Q\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x42.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Color\x12U\n\x07\x64\x65noise\x18\x02 \x01(\x0b\x32\x44.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Denoise\x12U\n\x07\x64\x65\x62lock\x18\x03 \x01(\x0b\x32\x44.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Deblock\x12Q\n\x05\x61udio\x18\x04 \x01(\x0b\x32\x42.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Audio\x12O\n\x04\x63rop\x18\x05 \x01(\x0b\x32\x41.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Crop\x12M\n\x03pad\x18\x06 \x01(\x0b\x32@.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Pad\x12]\n\x0b\x64\x65interlace\x18\x07 \x01(\x0b\x32H.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace\x1a\x41\n\x05\x43olor\x12\x12\n\nsaturation\x18\x01 \x01(\x01\x12\x10\n\x08\x63ontrast\x18\x02 \x01(\x01\x12\x12\n\nbrightness\x18\x03 \x01(\x01\x1a)\n\x07\x44\x65noise\x12\x10\n\x08strength\x18\x01 \x01(\x01\x12\x0c\n\x04tune\x18\x02 \x01(\t\x1a,\n\x07\x44\x65\x62lock\x12\x10\n\x08strength\x18\x01 \x01(\x01\x12\x0f\n\x07\x65nabled\x18\x02 \x01(\x08\x1a<\n\x05\x41udio\x12\x0c\n\x04lufs\x18\x01 \x01(\x01\x12\x12\n\nhigh_boost\x18\x02 \x01(\x08\x12\x11\n\tlow_boost\x18\x03 \x01(\x08\x1a\\\n\x04\x43rop\x12\x12\n\ntop_pixels\x18\x01 \x01(\x05\x12\x15\n\rbottom_pixels\x18\x02 \x01(\x05\x12\x13\n\x0bleft_pixels\x18\x03 \x01(\x05\x12\x14\n\x0cright_pixels\x18\x04 \x01(\x05\x1a[\n\x03Pad\x12\x12\n\ntop_pixels\x18\x01 \x01(\x05\x12\x15\n\rbottom_pixels\x18\x02 \x01(\x05\x12\x13\n\x0bleft_pixels\x18\x03 \x01(\x05\x12\x14\n\x0cright_pixels\x18\x04 \x01(\x05\x1a\xb2\x03\n\x0b\x44\x65interlace\x12\x65\n\x05yadif\x18\x01 \x01(\x0b\x32T.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.YadifConfigH\x00\x12\x65\n\x05\x62wdif\x18\x02 \x01(\x0b\x32T.google.events.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.BwdifConfigH\x00\x1ap\n\x0bYadifConfig\x12\x0c\n\x04mode\x18\x01 \x01(\t\x12#\n\x1b\x64isable_spatial_interlacing\x18\x02 \x01(\x08\x12\x0e\n\x06parity\x18\x03 \x01(\t\x12\x1e\n\x16\x64\x65interlace_all_frames\x18\x04 \x01(\x08\x1aK\n\x0b\x42wdifConfig\x12\x0c\n\x04mode\x18\x01 \x01(\t\x12\x0e\n\x06parity\x18\x02 \x01(\t\x12\x1e\n\x16\x64\x65interlace_all_frames\x18\x03 \x01(\x08\x42\x16\n\x14\x64\x65interlacing_filter\"\x8c\x0c\n\x0bVideoStream\x12V\n\x04h264\x18\x01 \x01(\x0b\x32\x46.google.events.cloud.video.transcoder.v1.VideoStream.H264CodecSettingsH\x00\x12V\n\x04h265\x18\x02 \x01(\x0b\x32\x46.google.events.cloud.video.transcoder.v1.VideoStream.H265CodecSettingsH\x00\x12T\n\x03vp9\x18\x03 \x01(\x0b\x32\x45.google.events.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettingsH\x00\x1a\xef\x03\n\x11H264CodecSettings\x12\x14\n\x0cwidth_pixels\x18\x01 \x01(\x05\x12\x15\n\rheight_pixels\x18\x02 \x01(\x05\x12\x12\n\nframe_rate\x18\x03 \x01(\x01\x12\x13\n\x0b\x62itrate_bps\x18\x04 \x01(\x05\x12\x14\n\x0cpixel_format\x18\x05 \x01(\t\x12\x19\n\x11rate_control_mode\x18\x06 \x01(\t\x12\x11\n\tcrf_level\x18\x07 \x01(\x05\x12\x16\n\x0e\x61llow_open_gop\x18\x08 \x01(\x08\x12\x19\n\x0fgop_frame_count\x18\t \x01(\x05H\x00\x12\x31\n\x0cgop_duration\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x17\n\x0f\x65nable_two_pass\x18\x0b \x01(\x08\x12\x15\n\rvbv_size_bits\x18\x0c \x01(\x05\x12\x19\n\x11vbv_fullness_bits\x18\r \x01(\x05\x12\x15\n\rentropy_coder\x18\x0e \x01(\t\x12\x11\n\tb_pyramid\x18\x0f \x01(\x08\x12\x15\n\rb_frame_count\x18\x10 \x01(\x05\x12\x13\n\x0b\x61q_strength\x18\x11 \x01(\x01\x12\x0f\n\x07profile\x18\x12 \x01(\t\x12\x0c\n\x04tune\x18\x13 \x01(\t\x12\x0e\n\x06preset\x18\x14 \x01(\tB\n\n\x08gop_mode\x1a\xd8\x03\n\x11H265CodecSettings\x12\x14\n\x0cwidth_pixels\x18\x01 \x01(\x05\x12\x15\n\rheight_pixels\x18\x02 \x01(\x05\x12\x12\n\nframe_rate\x18\x03 \x01(\x01\x12\x13\n\x0b\x62itrate_bps\x18\x04 \x01(\x05\x12\x14\n\x0cpixel_format\x18\x05 \x01(\t\x12\x19\n\x11rate_control_mode\x18\x06 \x01(\t\x12\x11\n\tcrf_level\x18\x07 \x01(\x05\x12\x16\n\x0e\x61llow_open_gop\x18\x08 \x01(\x08\x12\x19\n\x0fgop_frame_count\x18\t \x01(\x05H\x00\x12\x31\n\x0cgop_duration\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x17\n\x0f\x65nable_two_pass\x18\x0b \x01(\x08\x12\x15\n\rvbv_size_bits\x18\x0c \x01(\x05\x12\x19\n\x11vbv_fullness_bits\x18\r \x01(\x05\x12\x11\n\tb_pyramid\x18\x0e \x01(\x08\x12\x15\n\rb_frame_count\x18\x0f \x01(\x05\x12\x13\n\x0b\x61q_strength\x18\x10 \x01(\x01\x12\x0f\n\x07profile\x18\x11 \x01(\t\x12\x0c\n\x04tune\x18\x12 \x01(\t\x12\x0e\n\x06preset\x18\x13 \x01(\tB\n\n\x08gop_mode\x1a\x97\x02\n\x10Vp9CodecSettings\x12\x14\n\x0cwidth_pixels\x18\x01 \x01(\x05\x12\x15\n\rheight_pixels\x18\x02 \x01(\x05\x12\x12\n\nframe_rate\x18\x03 \x01(\x01\x12\x13\n\x0b\x62itrate_bps\x18\x04 \x01(\x05\x12\x14\n\x0cpixel_format\x18\x05 \x01(\t\x12\x19\n\x11rate_control_mode\x18\x06 \x01(\t\x12\x11\n\tcrf_level\x18\x07 \x01(\x05\x12\x19\n\x0fgop_frame_count\x18\x08 \x01(\x05H\x00\x12\x31\n\x0cgop_duration\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x0f\n\x07profile\x18\n \x01(\tB\n\n\x08gop_modeB\x10\n\x0e\x63odec_settings\"\x87\x03\n\x0b\x41udioStream\x12\r\n\x05\x63odec\x18\x01 \x01(\t\x12\x13\n\x0b\x62itrate_bps\x18\x02 \x01(\x05\x12\x15\n\rchannel_count\x18\x03 \x01(\x05\x12\x16\n\x0e\x63hannel_layout\x18\x04 \x03(\t\x12R\n\x07mapping\x18\x05 \x03(\x0b\x32\x41.google.events.cloud.video.transcoder.v1.AudioStream.AudioMapping\x12\x19\n\x11sample_rate_hertz\x18\x06 \x01(\x05\x12\x15\n\rlanguage_code\x18\x07 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x08 \x01(\t\x1a\x88\x01\n\x0c\x41udioMapping\x12\x10\n\x08\x61tom_key\x18\x01 \x01(\t\x12\x11\n\tinput_key\x18\x02 \x01(\t\x12\x13\n\x0binput_track\x18\x03 \x01(\x05\x12\x15\n\rinput_channel\x18\x04 \x01(\x05\x12\x16\n\x0eoutput_channel\x18\x05 \x01(\x05\x12\x0f\n\x07gain_db\x18\x06 \x01(\x01\"\xe3\x01\n\nTextStream\x12\r\n\x05\x63odec\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12P\n\x07mapping\x18\x03 \x03(\x0b\x32?.google.events.cloud.video.transcoder.v1.TextStream.TextMapping\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x1aG\n\x0bTextMapping\x12\x10\n\x08\x61tom_key\x18\x01 \x01(\t\x12\x11\n\tinput_key\x18\x02 \x01(\t\x12\x13\n\x0binput_track\x18\x03 \x01(\x05\"c\n\x0fSegmentSettings\x12\x33\n\x10segment_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13individual_segments\x18\x03 \x01(\x08\"^\n\x0cJobEventData\x12\x42\n\x07payload\x18\x01 \x01(\x0b\x32,.google.events.cloud.video.transcoder.v1.JobH\x00\x88\x01\x01\x42\n\n\x08_payload\"n\n\x14JobTemplateEventData\x12J\n\x07payload\x18\x01 \x01(\x0b\x32\x34.google.events.cloud.video.transcoder.v1.JobTemplateH\x00\x88\x01\x01\x42\n\n\x08_payloadB\x8c\x01\xaa\x02\x30Google.Events.Protobuf.Cloud.Video.Transcoder.V1\xca\x02\'Google\\Events\\Cloud\\Video\\Transcoder\\V1\xea\x02,Google::Events::Cloud::Video::Transcoder::V1b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
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.rpc.Status", "google/rpc/status.proto"],
|
29
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
39
|
+
end
|
40
|
+
|
41
|
+
module Google
|
42
|
+
module Events
|
43
|
+
module Cloud
|
44
|
+
module Video
|
45
|
+
module Transcoder
|
46
|
+
module V1
|
47
|
+
Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Job").msgclass
|
48
|
+
Job::ProcessingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Job.ProcessingState").enummodule
|
49
|
+
Job::ProcessingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Job.ProcessingMode").enummodule
|
50
|
+
JobTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.JobTemplate").msgclass
|
51
|
+
JobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.JobConfig").msgclass
|
52
|
+
Input = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Input").msgclass
|
53
|
+
Output = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Output").msgclass
|
54
|
+
EditAtom = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.EditAtom").msgclass
|
55
|
+
AdBreak = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.AdBreak").msgclass
|
56
|
+
ElementaryStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.ElementaryStream").msgclass
|
57
|
+
MuxStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.MuxStream").msgclass
|
58
|
+
Manifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Manifest").msgclass
|
59
|
+
Manifest::ManifestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Manifest.ManifestType").enummodule
|
60
|
+
PubsubDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PubsubDestination").msgclass
|
61
|
+
SpriteSheet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.SpriteSheet").msgclass
|
62
|
+
Overlay = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Overlay").msgclass
|
63
|
+
Overlay::NormalizedCoordinate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate").msgclass
|
64
|
+
Overlay::Image = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Overlay.Image").msgclass
|
65
|
+
Overlay::AnimationStatic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Overlay.AnimationStatic").msgclass
|
66
|
+
Overlay::AnimationFade = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Overlay.AnimationFade").msgclass
|
67
|
+
Overlay::AnimationEnd = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Overlay.AnimationEnd").msgclass
|
68
|
+
Overlay::Animation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Overlay.Animation").msgclass
|
69
|
+
Overlay::FadeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.Overlay.FadeType").enummodule
|
70
|
+
PreprocessingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig").msgclass
|
71
|
+
PreprocessingConfig::Color = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Color").msgclass
|
72
|
+
PreprocessingConfig::Denoise = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Denoise").msgclass
|
73
|
+
PreprocessingConfig::Deblock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Deblock").msgclass
|
74
|
+
PreprocessingConfig::Audio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Audio").msgclass
|
75
|
+
PreprocessingConfig::Crop = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Crop").msgclass
|
76
|
+
PreprocessingConfig::Pad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Pad").msgclass
|
77
|
+
PreprocessingConfig::Deinterlace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace").msgclass
|
78
|
+
PreprocessingConfig::Deinterlace::YadifConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.YadifConfig").msgclass
|
79
|
+
PreprocessingConfig::Deinterlace::BwdifConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.BwdifConfig").msgclass
|
80
|
+
VideoStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.VideoStream").msgclass
|
81
|
+
VideoStream::H264CodecSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.VideoStream.H264CodecSettings").msgclass
|
82
|
+
VideoStream::H265CodecSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.VideoStream.H265CodecSettings").msgclass
|
83
|
+
VideoStream::Vp9CodecSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings").msgclass
|
84
|
+
AudioStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.AudioStream").msgclass
|
85
|
+
AudioStream::AudioMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.AudioStream.AudioMapping").msgclass
|
86
|
+
TextStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.TextStream").msgclass
|
87
|
+
TextStream::TextMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.TextStream.TextMapping").msgclass
|
88
|
+
SegmentSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.SegmentSettings").msgclass
|
89
|
+
JobEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.JobEventData").msgclass
|
90
|
+
JobTemplateEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.JobTemplateEventData").msgclass
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/video/transcoder/v1/events.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/events/cloud/video/transcoder/v1/data_pb'
|
8
|
+
require 'google/events/cloudevent_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n4google/events/cloud/video/transcoder/v1/events.proto\x12\'google.events.cloud.video.transcoder.v1\x1a\x32google/events/cloud/video/transcoder/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x91\x01\n\x0fJobCreatedEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.cloud.video.transcoder.v1.JobEventData:9\xb2\xf8\xd8,,google.cloud.video.transcoder.job.v1.created\xca\xf8\xd8,\x03job\"\x91\x01\n\x0fJobDeletedEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.cloud.video.transcoder.v1.JobEventData:9\xb2\xf8\xd8,,google.cloud.video.transcoder.job.v1.deleted\xca\xf8\xd8,\x03job\"\xb1\x01\n\x17JobTemplateCreatedEvent\x12K\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32=.google.events.cloud.video.transcoder.v1.JobTemplateEventData:I\xb2\xf8\xd8,4google.cloud.video.transcoder.jobTemplate.v1.created\xca\xf8\xd8,\x0bjobtemplate\"\xb1\x01\n\x17JobTemplateDeletedEvent\x12K\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32=.google.events.cloud.video.transcoder.v1.JobTemplateEventData:I\xb2\xf8\xd8,4google.cloud.video.transcoder.jobTemplate.v1.deleted\xca\xf8\xd8,\x0bjobtemplateB\xb0\x02\xaa\x02\x30Google.Events.Protobuf.Cloud.Video.Transcoder.V1\xca\x02\'Google\\Events\\Cloud\\Video\\Transcoder\\V1\xea\x02,Google::Events::Cloud::Video::Transcoder::V1\xba\xf8\xd8,\nTranscoder\xc2\xf8\xd8,7\n\x03job\x12\x30The resource ID of the Job triggering the event.\xc2\xf8\xd8,T\n\x0bjobtemplate\x12\x38The resource ID of the JobTemplate triggering the event.\x1a\x0bjobTemplateb\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.cloud.video.transcoder.v1.JobEventData", "google/events/cloud/video/transcoder/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 Video
|
42
|
+
module Transcoder
|
43
|
+
module V1
|
44
|
+
JobCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.JobCreatedEvent").msgclass
|
45
|
+
JobDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.JobDeletedEvent").msgclass
|
46
|
+
JobTemplateCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.JobTemplateCreatedEvent").msgclass
|
47
|
+
JobTemplateDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.video.transcoder.v1.JobTemplateDeletedEvent").msgclass
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|