lib/google/cloud/bigquery/datatransfer/v1/transfer_pb.rb in google-cloud-bigquery-data_transfer-v1-0.8.0 vs lib/google/cloud/bigquery/datatransfer/v1/transfer_pb.rb in google-cloud-bigquery-data_transfer-v1-0.9.0

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/bigquery/datatransfer/v1/transfer.proto require 'google/protobuf' @@ -7,87 +8,37 @@ require 'google/api/resource_pb' require 'google/protobuf/struct_pb' require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/bigquery/datatransfer/v1/transfer.proto", :syntax => :proto3) do - add_message "google.cloud.bigquery.datatransfer.v1.EmailPreferences" do - optional :enable_failure_email, :bool, 1 + +descriptor_data = "\n4google/cloud/bigquery/datatransfer/v1/transfer.proto\x12%google.cloud.bigquery.datatransfer.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"0\n\x10\x45mailPreferences\x12\x1c\n\x14\x65nable_failure_email\x18\x01 \x01(\x08\"\x90\x01\n\x0fScheduleOptions\x12\x1f\n\x17\x64isable_auto_scheduling\x18\x03 \x01(\x08\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\"(\n\x08UserInfo\x12\x12\n\x05\x65mail\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_email\"\xb5\x07\n\x0eTransferConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12 \n\x16\x64\x65stination_dataset_id\x18\x02 \x01(\tH\x00\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x16\n\x0e\x64\x61ta_source_id\x18\x05 \x01(\t\x12\'\n\x06params\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08schedule\x18\x07 \x01(\t\x12P\n\x10schedule_options\x18\x18 \x01(\x0b\x32\x36.google.cloud.bigquery.datatransfer.v1.ScheduleOptions\x12 \n\x18\x64\x61ta_refresh_window_days\x18\x0c \x01(\x05\x12\x10\n\x08\x64isabled\x18\r \x01(\x08\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rnext_run_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12H\n\x05state\x18\n \x01(\x0e\x32\x34.google.cloud.bigquery.datatransfer.v1.TransferStateB\x03\xe0\x41\x03\x12\x0f\n\x07user_id\x18\x0b \x01(\x03\x12\x1b\n\x0e\x64\x61taset_region\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12!\n\x19notification_pubsub_topic\x18\x0f \x01(\t\x12R\n\x11\x65mail_preferences\x18\x12 \x01(\x0b\x32\x37.google.cloud.bigquery.datatransfer.v1.EmailPreferences\x12M\n\nowner_info\x18\x1b \x01(\x0b\x32/.google.cloud.bigquery.datatransfer.v1.UserInfoB\x03\xe0\x41\x03H\x01\x88\x01\x01:\xb9\x01\xea\x41\xb5\x01\n2bigquerydatatransfer.googleapis.com/TransferConfig\x12\x34projects/{project}/transferConfigs/{transfer_config}\x12Iprojects/{project}/locations/{location}/transferConfigs/{transfer_config}B\r\n\x0b\x64\x65stinationB\r\n\x0b_owner_info\"\xfa\x06\n\x0bTransferRun\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rschedule_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08run_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x0c\x65rror_status\x18\x15 \x01(\x0b\x32\x12.google.rpc.Status\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12,\n\x06params\x18\t \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\x12%\n\x16\x64\x65stination_dataset_id\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12\x1b\n\x0e\x64\x61ta_source_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\x08 \x01(\x0e\x32\x34.google.cloud.bigquery.datatransfer.v1.TransferState\x12\x0f\n\x07user_id\x18\x0b \x01(\x03\x12\x15\n\x08schedule\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12&\n\x19notification_pubsub_topic\x18\x17 \x01(\tB\x03\xe0\x41\x03\x12W\n\x11\x65mail_preferences\x18\x19 \x01(\x0b\x32\x37.google.cloud.bigquery.datatransfer.v1.EmailPreferencesB\x03\xe0\x41\x03:\xc4\x01\xea\x41\xc0\x01\n\'bigquerydatatransfer.googleapis.com/Run\x12?projects/{project}/transferConfigs/{transfer_config}/runs/{run}\x12Tprojects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}B\r\n\x0b\x64\x65stination\"\x8a\x02\n\x0fTransferMessage\x12\x30\n\x0cmessage_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12X\n\x08severity\x18\x02 \x01(\x0e\x32\x46.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity\x12\x14\n\x0cmessage_text\x18\x03 \x01(\t\"U\n\x0fMessageSeverity\x12 \n\x1cMESSAGE_SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03*K\n\x0cTransferType\x12\x1d\n\x19TRANSFER_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41TCH\x10\x01\x12\r\n\tSTREAMING\x10\x02\x1a\x02\x18\x01*s\n\rTransferState\x12\x1e\n\x1aTRANSFER_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\r\n\tCANCELLED\x10\x06\x42\x8f\x02\n)com.google.cloud.bigquery.datatransfer.v1B\rTransferProtoP\x01ZMcloud.google.com/go/bigquery/datatransfer/apiv1/datatransferpb;datatransferpb\xa2\x02\x05GCBDT\xaa\x02%Google.Cloud.BigQuery.DataTransfer.V1\xca\x02%Google\\Cloud\\BigQuery\\DataTransfer\\V1\xea\x02)Google::Cloud::Bigquery::DataTransfer::V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError => e + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.Struct", "google/protobuf/struct.proto"], + ["google.rpc.Status", "google/rpc/status.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_message "google.cloud.bigquery.datatransfer.v1.ScheduleOptions" do - optional :disable_auto_scheduling, :bool, 3 - optional :start_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - end - add_message "google.cloud.bigquery.datatransfer.v1.UserInfo" do - proto3_optional :email, :string, 1 - end - add_message "google.cloud.bigquery.datatransfer.v1.TransferConfig" do - optional :name, :string, 1 - optional :display_name, :string, 3 - optional :data_source_id, :string, 5 - optional :params, :message, 9, "google.protobuf.Struct" - optional :schedule, :string, 7 - optional :schedule_options, :message, 24, "google.cloud.bigquery.datatransfer.v1.ScheduleOptions" - optional :data_refresh_window_days, :int32, 12 - optional :disabled, :bool, 13 - optional :update_time, :message, 4, "google.protobuf.Timestamp" - optional :next_run_time, :message, 8, "google.protobuf.Timestamp" - optional :state, :enum, 10, "google.cloud.bigquery.datatransfer.v1.TransferState" - optional :user_id, :int64, 11 - optional :dataset_region, :string, 14 - optional :notification_pubsub_topic, :string, 15 - optional :email_preferences, :message, 18, "google.cloud.bigquery.datatransfer.v1.EmailPreferences" - proto3_optional :owner_info, :message, 27, "google.cloud.bigquery.datatransfer.v1.UserInfo" - oneof :destination do - optional :destination_dataset_id, :string, 2 - end - end - add_message "google.cloud.bigquery.datatransfer.v1.TransferRun" do - optional :name, :string, 1 - optional :schedule_time, :message, 3, "google.protobuf.Timestamp" - optional :run_time, :message, 10, "google.protobuf.Timestamp" - optional :error_status, :message, 21, "google.rpc.Status" - optional :start_time, :message, 4, "google.protobuf.Timestamp" - optional :end_time, :message, 5, "google.protobuf.Timestamp" - optional :update_time, :message, 6, "google.protobuf.Timestamp" - optional :params, :message, 9, "google.protobuf.Struct" - optional :data_source_id, :string, 7 - optional :state, :enum, 8, "google.cloud.bigquery.datatransfer.v1.TransferState" - optional :user_id, :int64, 11 - optional :schedule, :string, 12 - optional :notification_pubsub_topic, :string, 23 - optional :email_preferences, :message, 25, "google.cloud.bigquery.datatransfer.v1.EmailPreferences" - oneof :destination do - optional :destination_dataset_id, :string, 2 - end - end - add_message "google.cloud.bigquery.datatransfer.v1.TransferMessage" do - optional :message_time, :message, 1, "google.protobuf.Timestamp" - optional :severity, :enum, 2, "google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity" - optional :message_text, :string, 3 - end - add_enum "google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity" do - value :MESSAGE_SEVERITY_UNSPECIFIED, 0 - value :INFO, 1 - value :WARNING, 2 - value :ERROR, 3 - end - add_enum "google.cloud.bigquery.datatransfer.v1.TransferType" do - value :TRANSFER_TYPE_UNSPECIFIED, 0 - value :BATCH, 1 - value :STREAMING, 2 - end - add_enum "google.cloud.bigquery.datatransfer.v1.TransferState" do - value :TRANSFER_STATE_UNSPECIFIED, 0 - value :PENDING, 2 - value :RUNNING, 3 - value :SUCCEEDED, 4 - value :FAILED, 5 - value :CANCELLED, 6 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module Bigquery