google-events 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -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 +144 -0
- data/lib/google/events/cloud/dataplex/v1/events_pb.rb +74 -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 +71 -0
- data/lib/google/events/cloud/gkebackup/v1/events_pb.rb +59 -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/pubsub/v1/data_pb.rb +25 -12
- data/lib/google/events/cloud/pubsub/v1/events_pb.rb +25 -4
- 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/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 +8 -2
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/events/cloud/iot/v1/data.proto
|
3
4
|
|
@@ -6,140 +7,33 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
8
|
require 'google/rpc/status_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
optional :gateway_auth_method, :enum, 2, "google.events.cloud.iot.v1.GatewayAuthMethod"
|
33
|
-
optional :last_accessed_gateway_id, :string, 3
|
34
|
-
optional :last_accessed_gateway_time, :message, 4, "google.protobuf.Timestamp"
|
35
|
-
end
|
36
|
-
add_message "google.events.cloud.iot.v1.DeviceRegistry" do
|
37
|
-
optional :id, :string, 1
|
38
|
-
optional :name, :string, 2
|
39
|
-
repeated :event_notification_configs, :message, 10, "google.events.cloud.iot.v1.EventNotificationConfig"
|
40
|
-
optional :state_notification_config, :message, 7, "google.events.cloud.iot.v1.StateNotificationConfig"
|
41
|
-
optional :mqtt_config, :message, 4, "google.events.cloud.iot.v1.MqttConfig"
|
42
|
-
optional :http_config, :message, 9, "google.events.cloud.iot.v1.HttpConfig"
|
43
|
-
optional :log_level, :enum, 11, "google.events.cloud.iot.v1.LogLevel"
|
44
|
-
repeated :credentials, :message, 8, "google.events.cloud.iot.v1.RegistryCredential"
|
45
|
-
end
|
46
|
-
add_message "google.events.cloud.iot.v1.MqttConfig" do
|
47
|
-
optional :mqtt_enabled_state, :enum, 1, "google.events.cloud.iot.v1.MqttState"
|
48
|
-
end
|
49
|
-
add_message "google.events.cloud.iot.v1.HttpConfig" do
|
50
|
-
optional :http_enabled_state, :enum, 1, "google.events.cloud.iot.v1.HttpState"
|
51
|
-
end
|
52
|
-
add_message "google.events.cloud.iot.v1.EventNotificationConfig" do
|
53
|
-
optional :subfolder_matches, :string, 2
|
54
|
-
optional :pubsub_topic_name, :string, 1
|
55
|
-
end
|
56
|
-
add_message "google.events.cloud.iot.v1.StateNotificationConfig" do
|
57
|
-
optional :pubsub_topic_name, :string, 1
|
58
|
-
end
|
59
|
-
add_message "google.events.cloud.iot.v1.RegistryCredential" do
|
60
|
-
oneof :credential do
|
61
|
-
optional :public_key_certificate, :message, 1, "google.events.cloud.iot.v1.PublicKeyCertificate"
|
62
|
-
end
|
63
|
-
end
|
64
|
-
add_message "google.events.cloud.iot.v1.X509CertificateDetails" do
|
65
|
-
optional :issuer, :string, 1
|
66
|
-
optional :subject, :string, 2
|
67
|
-
optional :start_time, :message, 3, "google.protobuf.Timestamp"
|
68
|
-
optional :expiry_time, :message, 4, "google.protobuf.Timestamp"
|
69
|
-
optional :signature_algorithm, :string, 5
|
70
|
-
optional :public_key_type, :string, 6
|
71
|
-
end
|
72
|
-
add_message "google.events.cloud.iot.v1.PublicKeyCertificate" do
|
73
|
-
optional :format, :enum, 1, "google.events.cloud.iot.v1.PublicKeyCertificateFormat"
|
74
|
-
optional :certificate, :string, 2
|
75
|
-
optional :x509_details, :message, 3, "google.events.cloud.iot.v1.X509CertificateDetails"
|
76
|
-
end
|
77
|
-
add_message "google.events.cloud.iot.v1.DeviceCredential" do
|
78
|
-
optional :expiration_time, :message, 6, "google.protobuf.Timestamp"
|
79
|
-
oneof :credential do
|
80
|
-
optional :public_key, :message, 2, "google.events.cloud.iot.v1.PublicKeyCredential"
|
81
|
-
end
|
82
|
-
end
|
83
|
-
add_message "google.events.cloud.iot.v1.PublicKeyCredential" do
|
84
|
-
optional :format, :enum, 1, "google.events.cloud.iot.v1.PublicKeyFormat"
|
85
|
-
optional :key, :string, 2
|
86
|
-
end
|
87
|
-
add_message "google.events.cloud.iot.v1.DeviceConfig" do
|
88
|
-
optional :version, :int64, 1
|
89
|
-
optional :cloud_update_time, :message, 2, "google.protobuf.Timestamp"
|
90
|
-
optional :device_ack_time, :message, 3, "google.protobuf.Timestamp"
|
91
|
-
optional :binary_data, :bytes, 4
|
92
|
-
end
|
93
|
-
add_message "google.events.cloud.iot.v1.DeviceState" do
|
94
|
-
optional :update_time, :message, 1, "google.protobuf.Timestamp"
|
95
|
-
optional :binary_data, :bytes, 2
|
96
|
-
end
|
97
|
-
add_message "google.events.cloud.iot.v1.DeviceEventData" do
|
98
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.iot.v1.Device"
|
99
|
-
end
|
100
|
-
add_message "google.events.cloud.iot.v1.RegistryEventData" do
|
101
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.iot.v1.DeviceRegistry"
|
102
|
-
end
|
103
|
-
add_enum "google.events.cloud.iot.v1.MqttState" do
|
104
|
-
value :MQTT_STATE_UNSPECIFIED, 0
|
105
|
-
value :MQTT_ENABLED, 1
|
106
|
-
value :MQTT_DISABLED, 2
|
107
|
-
end
|
108
|
-
add_enum "google.events.cloud.iot.v1.HttpState" do
|
109
|
-
value :HTTP_STATE_UNSPECIFIED, 0
|
110
|
-
value :HTTP_ENABLED, 1
|
111
|
-
value :HTTP_DISABLED, 2
|
112
|
-
end
|
113
|
-
add_enum "google.events.cloud.iot.v1.LogLevel" do
|
114
|
-
value :LOG_LEVEL_UNSPECIFIED, 0
|
115
|
-
value :NONE, 10
|
116
|
-
value :ERROR, 20
|
117
|
-
value :INFO, 30
|
118
|
-
value :DEBUG, 40
|
119
|
-
end
|
120
|
-
add_enum "google.events.cloud.iot.v1.GatewayType" do
|
121
|
-
value :GATEWAY_TYPE_UNSPECIFIED, 0
|
122
|
-
value :GATEWAY, 1
|
123
|
-
value :NON_GATEWAY, 2
|
124
|
-
end
|
125
|
-
add_enum "google.events.cloud.iot.v1.GatewayAuthMethod" do
|
126
|
-
value :GATEWAY_AUTH_METHOD_UNSPECIFIED, 0
|
127
|
-
value :ASSOCIATION_ONLY, 1
|
128
|
-
value :DEVICE_AUTH_TOKEN_ONLY, 2
|
129
|
-
value :ASSOCIATION_AND_DEVICE_AUTH_TOKEN, 3
|
130
|
-
end
|
131
|
-
add_enum "google.events.cloud.iot.v1.PublicKeyCertificateFormat" do
|
132
|
-
value :UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT, 0
|
133
|
-
value :X509_CERTIFICATE_PEM, 1
|
134
|
-
end
|
135
|
-
add_enum "google.events.cloud.iot.v1.PublicKeyFormat" do
|
136
|
-
value :UNSPECIFIED_PUBLIC_KEY_FORMAT, 0
|
137
|
-
value :RSA_PEM, 3
|
138
|
-
value :RSA_X509_PEM, 1
|
139
|
-
value :ES256_PEM, 2
|
140
|
-
value :ES256_X509_PEM, 4
|
10
|
+
|
11
|
+
descriptor_data = "\n%google/events/cloud/iot/v1/data.proto\x12\x1agoogle.events.cloud.iot.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xe5\x06\n\x06\x44\x65vice\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06num_id\x18\x03 \x01(\x04\x12\x41\n\x0b\x63redentials\x18\x0c \x03(\x0b\x32,.google.events.cloud.iot.v1.DeviceCredential\x12\x37\n\x13last_heartbeat_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0flast_event_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0flast_state_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14last_config_ack_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x15last_config_send_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x62locked\x18\x13 \x01(\x08\x12\x33\n\x0flast_error_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x11last_error_status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x38\n\x06\x63onfig\x18\r \x01(\x0b\x32(.google.events.cloud.iot.v1.DeviceConfig\x12\x36\n\x05state\x18\x10 \x01(\x0b\x32\'.google.events.cloud.iot.v1.DeviceState\x12\x37\n\tlog_level\x18\x15 \x01(\x0e\x32$.google.events.cloud.iot.v1.LogLevel\x12\x42\n\x08metadata\x18\x11 \x03(\x0b\x32\x30.google.events.cloud.iot.v1.Device.MetadataEntry\x12\x41\n\x0egateway_config\x18\x18 \x01(\x0b\x32).google.events.cloud.iot.v1.GatewayConfig\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xfc\x01\n\rGatewayConfig\x12=\n\x0cgateway_type\x18\x01 \x01(\x0e\x32\'.google.events.cloud.iot.v1.GatewayType\x12J\n\x13gateway_auth_method\x18\x02 \x01(\x0e\x32-.google.events.cloud.iot.v1.GatewayAuthMethod\x12 \n\x18last_accessed_gateway_id\x18\x03 \x01(\t\x12>\n\x1alast_accessed_gateway_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd3\x03\n\x0e\x44\x65viceRegistry\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12W\n\x1a\x65vent_notification_configs\x18\n \x03(\x0b\x32\x33.google.events.cloud.iot.v1.EventNotificationConfig\x12V\n\x19state_notification_config\x18\x07 \x01(\x0b\x32\x33.google.events.cloud.iot.v1.StateNotificationConfig\x12;\n\x0bmqtt_config\x18\x04 \x01(\x0b\x32&.google.events.cloud.iot.v1.MqttConfig\x12;\n\x0bhttp_config\x18\t \x01(\x0b\x32&.google.events.cloud.iot.v1.HttpConfig\x12\x37\n\tlog_level\x18\x0b \x01(\x0e\x32$.google.events.cloud.iot.v1.LogLevel\x12\x43\n\x0b\x63redentials\x18\x08 \x03(\x0b\x32..google.events.cloud.iot.v1.RegistryCredential\"O\n\nMqttConfig\x12\x41\n\x12mqtt_enabled_state\x18\x01 \x01(\x0e\x32%.google.events.cloud.iot.v1.MqttState\"O\n\nHttpConfig\x12\x41\n\x12http_enabled_state\x18\x01 \x01(\x0e\x32%.google.events.cloud.iot.v1.HttpState\"O\n\x17\x45ventNotificationConfig\x12\x19\n\x11subfolder_matches\x18\x02 \x01(\t\x12\x19\n\x11pubsub_topic_name\x18\x01 \x01(\t\"4\n\x17StateNotificationConfig\x12\x19\n\x11pubsub_topic_name\x18\x01 \x01(\t\"v\n\x12RegistryCredential\x12R\n\x16public_key_certificate\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.iot.v1.PublicKeyCertificateH\x00\x42\x0c\n\ncredential\"\xd0\x01\n\x16X509CertificateDetails\x12\x0e\n\x06issuer\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpiry_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x13signature_algorithm\x18\x05 \x01(\t\x12\x17\n\x0fpublic_key_type\x18\x06 \x01(\t\"\xbd\x01\n\x14PublicKeyCertificate\x12\x46\n\x06\x66ormat\x18\x01 \x01(\x0e\x32\x36.google.events.cloud.iot.v1.PublicKeyCertificateFormat\x12\x13\n\x0b\x63\x65rtificate\x18\x02 \x01(\t\x12H\n\x0cx509_details\x18\x03 \x01(\x0b\x32\x32.google.events.cloud.iot.v1.X509CertificateDetails\"\x9c\x01\n\x10\x44\x65viceCredential\x12\x45\n\npublic_key\x18\x02 \x01(\x0b\x32/.google.events.cloud.iot.v1.PublicKeyCredentialH\x00\x12\x33\n\x0f\x65xpiration_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0c\n\ncredential\"_\n\x13PublicKeyCredential\x12;\n\x06\x66ormat\x18\x01 \x01(\x0e\x32+.google.events.cloud.iot.v1.PublicKeyFormat\x12\x0b\n\x03key\x18\x02 \x01(\t\"\xa0\x01\n\x0c\x44\x65viceConfig\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x35\n\x11\x63loud_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x64\x65vice_ack_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x62inary_data\x18\x04 \x01(\x0c\"S\n\x0b\x44\x65viceState\x12/\n\x0bupdate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x62inary_data\x18\x02 \x01(\x0c\"W\n\x0f\x44\x65viceEventData\x12\x38\n\x07payload\x18\x01 \x01(\x0b\x32\".google.events.cloud.iot.v1.DeviceH\x00\x88\x01\x01\x42\n\n\x08_payload\"a\n\x11RegistryEventData\x12@\n\x07payload\x18\x01 \x01(\x0b\x32*.google.events.cloud.iot.v1.DeviceRegistryH\x00\x88\x01\x01\x42\n\n\x08_payload*L\n\tMqttState\x12\x1a\n\x16MQTT_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cMQTT_ENABLED\x10\x01\x12\x11\n\rMQTT_DISABLED\x10\x02*L\n\tHttpState\x12\x1a\n\x16HTTP_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cHTTP_ENABLED\x10\x01\x12\x11\n\rHTTP_DISABLED\x10\x02*O\n\x08LogLevel\x12\x19\n\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\n\x12\t\n\x05\x45RROR\x10\x14\x12\x08\n\x04INFO\x10\x1e\x12\t\n\x05\x44\x45\x42UG\x10(*I\n\x0bGatewayType\x12\x1c\n\x18GATEWAY_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GATEWAY\x10\x01\x12\x0f\n\x0bNON_GATEWAY\x10\x02*\x91\x01\n\x11GatewayAuthMethod\x12#\n\x1fGATEWAY_AUTH_METHOD_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41SSOCIATION_ONLY\x10\x01\x12\x1a\n\x16\x44\x45VICE_AUTH_TOKEN_ONLY\x10\x02\x12%\n!ASSOCIATION_AND_DEVICE_AUTH_TOKEN\x10\x03*e\n\x1aPublicKeyCertificateFormat\x12-\n)UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT\x10\x00\x12\x18\n\x14X509_CERTIFICATE_PEM\x10\x01*v\n\x0fPublicKeyFormat\x12!\n\x1dUNSPECIFIED_PUBLIC_KEY_FORMAT\x10\x00\x12\x0b\n\x07RSA_PEM\x10\x03\x12\x10\n\x0cRSA_X509_PEM\x10\x01\x12\r\n\tES256_PEM\x10\x02\x12\x12\n\x0e\x45S256_X509_PEM\x10\x04\x42\x64\xaa\x02#Google.Events.Protobuf.Cloud.Iot.V1\xca\x02\x1aGoogle\\Events\\Cloud\\Iot\\V1\xea\x02\x1eGoogle::Events::Cloud::Iot::V1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
27
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
141
33
|
end
|
142
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
143
37
|
end
|
144
38
|
|
145
39
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/events/cloud/iot/v1/events.proto
|
3
4
|
|
@@ -6,27 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/iot/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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n\'google/events/cloud/iot/v1/events.proto\x12\x1agoogle.events.cloud.iot.v1\x1a%google/events/cloud/iot/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x9b\x01\n\x11\x43reateDeviceEvent\x12\x39\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32+.google.events.cloud.iot.v1.DeviceEventData:K\xb2\xf8\xd8,.google.cloud.iot.v1.DeviceManager.CreateDevice\xca\xf8\xd8,\x06\x64\x65vice\xca\xf8\xd8,\x08registry\"\x9b\x01\n\x11UpdateDeviceEvent\x12\x39\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32+.google.events.cloud.iot.v1.DeviceEventData:K\xb2\xf8\xd8,.google.cloud.iot.v1.DeviceManager.UpdateDevice\xca\xf8\xd8,\x06\x64\x65vice\xca\xf8\xd8,\x08registry\"\x9b\x01\n\x11\x44\x65leteDeviceEvent\x12\x39\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32+.google.events.cloud.iot.v1.DeviceEventData:K\xb2\xf8\xd8,.google.cloud.iot.v1.DeviceManager.DeleteDevice\xca\xf8\xd8,\x06\x64\x65vice\xca\xf8\xd8,\x08registry\"\xa2\x01\n\x19\x43reateDeviceRegistryEvent\x12;\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32-.google.events.cloud.iot.v1.RegistryEventData:H\xb2\xf8\xd8,6google.cloud.iot.v1.DeviceManager.CreateDeviceRegistry\xca\xf8\xd8,\x08registry\"\xa2\x01\n\x19UpdateDeviceRegistryEvent\x12;\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32-.google.events.cloud.iot.v1.RegistryEventData:H\xb2\xf8\xd8,6google.cloud.iot.v1.DeviceManager.UpdateDeviceRegistry\xca\xf8\xd8,\x08registry\"\xa2\x01\n\x19\x44\x65leteDeviceRegistryEvent\x12;\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32-.google.events.cloud.iot.v1.RegistryEventData:H\xb2\xf8\xd8,6google.cloud.iot.v1.DeviceManager.DeleteDeviceRegistry\xca\xf8\xd8,\x08registryB\x8c\x02\xaa\x02#Google.Events.Protobuf.Cloud.Iot.V1\xca\x02\x1aGoogle\\Events\\Cloud\\Iot\\V1\xea\x02\x1eGoogle::Events::Cloud::Iot::V1\xba\xf8\xd8,\tCloud IoT\xc2\xf8\xd8,E\n\x06\x64\x65vice\x12\x33The resource ID of the Device triggering the event.\x1a\x06\x64\x65vice\xc2\xf8\xd8,K\n\x08registry\x12\x35The resource ID of the Registry triggering the event.\x1a\x08registryb\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.iot.v1.DeviceEventData", "google/events/cloud/iot/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}"
|
28
32
|
end
|
29
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."
|
30
36
|
end
|
31
37
|
|
32
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/memcache/v1/data.proto
|
3
4
|
|
@@ -8,91 +9,34 @@ require 'google/protobuf/timestamp_pb'
|
|
8
9
|
require 'google/type/dayofweek_pb'
|
9
10
|
require 'google/type/timeofday_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
optional :memory_size_mb, :int32, 2
|
36
|
-
end
|
37
|
-
add_message "google.events.cloud.memcache.v1.Instance.Node" do
|
38
|
-
optional :node_id, :string, 1
|
39
|
-
optional :zone, :string, 2
|
40
|
-
optional :state, :enum, 3, "google.events.cloud.memcache.v1.Instance.Node.State"
|
41
|
-
optional :host, :string, 4
|
42
|
-
optional :port, :int32, 5
|
43
|
-
optional :parameters, :message, 6, "google.events.cloud.memcache.v1.MemcacheParameters"
|
44
|
-
end
|
45
|
-
add_enum "google.events.cloud.memcache.v1.Instance.Node.State" do
|
46
|
-
value :STATE_UNSPECIFIED, 0
|
47
|
-
value :CREATING, 1
|
48
|
-
value :READY, 2
|
49
|
-
value :DELETING, 3
|
50
|
-
value :UPDATING, 4
|
51
|
-
end
|
52
|
-
add_message "google.events.cloud.memcache.v1.Instance.InstanceMessage" do
|
53
|
-
optional :code, :enum, 1, "google.events.cloud.memcache.v1.Instance.InstanceMessage.Code"
|
54
|
-
optional :message, :string, 2
|
55
|
-
end
|
56
|
-
add_enum "google.events.cloud.memcache.v1.Instance.InstanceMessage.Code" do
|
57
|
-
value :CODE_UNSPECIFIED, 0
|
58
|
-
value :ZONE_DISTRIBUTION_UNBALANCED, 1
|
59
|
-
end
|
60
|
-
add_enum "google.events.cloud.memcache.v1.Instance.State" do
|
61
|
-
value :STATE_UNSPECIFIED, 0
|
62
|
-
value :CREATING, 1
|
63
|
-
value :READY, 2
|
64
|
-
value :UPDATING, 3
|
65
|
-
value :DELETING, 4
|
66
|
-
value :PERFORMING_MAINTENANCE, 5
|
67
|
-
end
|
68
|
-
add_message "google.events.cloud.memcache.v1.MaintenancePolicy" do
|
69
|
-
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
70
|
-
optional :update_time, :message, 2, "google.protobuf.Timestamp"
|
71
|
-
optional :description, :string, 3
|
72
|
-
repeated :weekly_maintenance_window, :message, 4, "google.events.cloud.memcache.v1.WeeklyMaintenanceWindow"
|
73
|
-
end
|
74
|
-
add_message "google.events.cloud.memcache.v1.WeeklyMaintenanceWindow" do
|
75
|
-
optional :day, :enum, 1, "google.type.DayOfWeek"
|
76
|
-
optional :start_time, :message, 2, "google.type.TimeOfDay"
|
77
|
-
optional :duration, :message, 3, "google.protobuf.Duration"
|
78
|
-
end
|
79
|
-
add_message "google.events.cloud.memcache.v1.MaintenanceSchedule" do
|
80
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
81
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
82
|
-
optional :schedule_deadline_time, :message, 4, "google.protobuf.Timestamp"
|
83
|
-
end
|
84
|
-
add_message "google.events.cloud.memcache.v1.MemcacheParameters" do
|
85
|
-
optional :id, :string, 1
|
86
|
-
map :params, :string, :string, 3
|
87
|
-
end
|
88
|
-
add_message "google.events.cloud.memcache.v1.InstanceEventData" do
|
89
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.memcache.v1.Instance"
|
90
|
-
end
|
91
|
-
add_enum "google.events.cloud.memcache.v1.MemcacheVersion" do
|
92
|
-
value :MEMCACHE_VERSION_UNSPECIFIED, 0
|
93
|
-
value :MEMCACHE_1_5, 1
|
12
|
+
|
13
|
+
descriptor_data = "\n*google/events/cloud/memcache/v1/data.proto\x12\x1fgoogle.events.cloud.memcache.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xe6\x0c\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x45\n\x06labels\x18\x03 \x03(\x0b\x32\x35.google.events.cloud.memcache.v1.Instance.LabelsEntry\x12\x1a\n\x12\x61uthorized_network\x18\x04 \x01(\t\x12\r\n\x05zones\x18\x05 \x03(\t\x12\x12\n\nnode_count\x18\x06 \x01(\x05\x12I\n\x0bnode_config\x18\x07 \x01(\x0b\x32\x34.google.events.cloud.memcache.v1.Instance.NodeConfig\x12J\n\x10memcache_version\x18\t \x01(\x0e\x32\x30.google.events.cloud.memcache.v1.MemcacheVersion\x12G\n\nparameters\x18\x0b \x01(\x0b\x32\x33.google.events.cloud.memcache.v1.MemcacheParameters\x12\x46\n\x0ememcache_nodes\x18\x0c \x03(\x0b\x32..google.events.cloud.memcache.v1.Instance.Node\x12/\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x05state\x18\x0f \x01(\x0e\x32/.google.events.cloud.memcache.v1.Instance.State\x12\x1d\n\x15memcache_full_version\x18\x12 \x01(\t\x12T\n\x11instance_messages\x18\x13 \x03(\x0b\x32\x39.google.events.cloud.memcache.v1.Instance.InstanceMessage\x12\x1a\n\x12\x64iscovery_endpoint\x18\x14 \x01(\t\x12N\n\x12maintenance_policy\x18\x15 \x01(\x0b\x32\x32.google.events.cloud.memcache.v1.MaintenancePolicy\x12R\n\x14maintenance_schedule\x18\x16 \x01(\x0b\x32\x34.google.events.cloud.memcache.v1.MaintenanceSchedule\x1a\x37\n\nNodeConfig\x12\x11\n\tcpu_count\x18\x01 \x01(\x05\x12\x16\n\x0ememory_size_mb\x18\x02 \x01(\x05\x1a\xa4\x02\n\x04Node\x12\x0f\n\x07node_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x43\n\x05state\x18\x03 \x01(\x0e\x32\x34.google.events.cloud.memcache.v1.Instance.Node.State\x12\x0c\n\x04host\x18\x04 \x01(\t\x12\x0c\n\x04port\x18\x05 \x01(\x05\x12G\n\nparameters\x18\x06 \x01(\x0b\x32\x33.google.events.cloud.memcache.v1.MemcacheParameters\"S\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\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x1a\xb0\x01\n\x0fInstanceMessage\x12L\n\x04\x63ode\x18\x01 \x01(\x0e\x32>.google.events.cloud.memcache.v1.Instance.InstanceMessage.Code\x12\x0f\n\x07message\x18\x02 \x01(\t\">\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12 \n\x1cZONE_DISTRIBUTION_UNBALANCED\x10\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"o\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\x1a\n\x16PERFORMING_MAINTENANCE\x10\x05\"\xe7\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\x12[\n\x19weekly_maintenance_window\x18\x04 \x03(\x0b\x32\x38.google.events.cloud.memcache.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\"\xaf\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:\n\x16schedule_deadline_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa0\x01\n\x12MemcacheParameters\x12\n\n\x02id\x18\x01 \x01(\t\x12O\n\x06params\x18\x03 \x03(\x0b\x32?.google.events.cloud.memcache.v1.MemcacheParameters.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x11InstanceEventData\x12?\n\x07payload\x18\x01 \x01(\x0b\x32).google.events.cloud.memcache.v1.InstanceH\x00\x88\x01\x01\x42\n\n\x08_payload*E\n\x0fMemcacheVersion\x12 \n\x1cMEMCACHE_VERSION_UNSPECIFIED\x10\x00\x12\x10\n\x0cMEMCACHE_1_5\x10\x01\x42s\xaa\x02(Google.Events.Protobuf.Cloud.Memcache.V1\xca\x02\x1fGoogle\\Events\\Cloud\\Memcache\\V1\xea\x02#Google::Events::Cloud::Memcache::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}"
|
94
36
|
end
|
95
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."
|
96
40
|
end
|
97
41
|
|
98
42
|
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/memcache/v1/events.proto
|
3
4
|
|
@@ -6,18 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/memcache/v1/data_pb'
|
7
8
|
require 'google/events/cloudevent_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n,google/events/cloud/memcache/v1/events.proto\x12\x1fgoogle.events.cloud.memcache.v1\x1a*google/events/cloud/memcache/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x95\x01\n\x14InstanceCreatedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.memcache.v1.InstanceEventData:;\xb2\xf8\xd8,)google.cloud.memcache.instance.v1.created\xca\xf8\xd8,\x08instance\"\x95\x01\n\x14InstanceUpdatedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.memcache.v1.InstanceEventData:;\xb2\xf8\xd8,)google.cloud.memcache.instance.v1.updated\xca\xf8\xd8,\x08instance\"\x95\x01\n\x14InstanceDeletedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.memcache.v1.InstanceEventData:;\xb2\xf8\xd8,)google.cloud.memcache.instance.v1.deleted\xca\xf8\xd8,\x08instanceB\xdd\x01\xaa\x02(Google.Events.Protobuf.Cloud.Memcache.V1\xca\x02\x1fGoogle\\Events\\Cloud\\Memcache\\V1\xea\x02#Google::Events::Cloud::Memcache::V1\xba\xf8\xd8,\x1f\x43loud Memorystore for Memcached\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.memcache.v1.InstanceEventData", "google/events/cloud/memcache/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}"
|
19
32
|
end
|
20
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."
|
21
36
|
end
|
22
37
|
|
23
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/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
|
@@ -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
|