google-cloud-firestore-admin-v1 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ module Google
60
60
 
61
61
  verb, uri, query_string_params, body = ServiceStub.transcode_create_index_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
63
+ query_string_params.to_h { |p| p.split "=", 2 }
64
64
  else
65
65
  {}
66
66
  end
@@ -98,7 +98,7 @@ module Google
98
98
 
99
99
  verb, uri, query_string_params, body = ServiceStub.transcode_list_indexes_request request_pb
100
100
  query_string_params = if query_string_params.any?
101
- query_string_params.to_h { |p| p.split("=", 2) }
101
+ query_string_params.to_h { |p| p.split "=", 2 }
102
102
  else
103
103
  {}
104
104
  end
@@ -136,7 +136,7 @@ module Google
136
136
 
137
137
  verb, uri, query_string_params, body = ServiceStub.transcode_get_index_request request_pb
138
138
  query_string_params = if query_string_params.any?
139
- query_string_params.to_h { |p| p.split("=", 2) }
139
+ query_string_params.to_h { |p| p.split "=", 2 }
140
140
  else
141
141
  {}
142
142
  end
@@ -174,7 +174,7 @@ module Google
174
174
 
175
175
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_index_request request_pb
176
176
  query_string_params = if query_string_params.any?
177
- query_string_params.to_h { |p| p.split("=", 2) }
177
+ query_string_params.to_h { |p| p.split "=", 2 }
178
178
  else
179
179
  {}
180
180
  end
@@ -212,7 +212,7 @@ module Google
212
212
 
213
213
  verb, uri, query_string_params, body = ServiceStub.transcode_get_field_request request_pb
214
214
  query_string_params = if query_string_params.any?
215
- query_string_params.to_h { |p| p.split("=", 2) }
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
216
  else
217
217
  {}
218
218
  end
@@ -250,7 +250,7 @@ module Google
250
250
 
251
251
  verb, uri, query_string_params, body = ServiceStub.transcode_update_field_request request_pb
252
252
  query_string_params = if query_string_params.any?
253
- query_string_params.to_h { |p| p.split("=", 2) }
253
+ query_string_params.to_h { |p| p.split "=", 2 }
254
254
  else
255
255
  {}
256
256
  end
@@ -288,7 +288,7 @@ module Google
288
288
 
289
289
  verb, uri, query_string_params, body = ServiceStub.transcode_list_fields_request request_pb
290
290
  query_string_params = if query_string_params.any?
291
- query_string_params.to_h { |p| p.split("=", 2) }
291
+ query_string_params.to_h { |p| p.split "=", 2 }
292
292
  else
293
293
  {}
294
294
  end
@@ -326,7 +326,7 @@ module Google
326
326
 
327
327
  verb, uri, query_string_params, body = ServiceStub.transcode_export_documents_request request_pb
328
328
  query_string_params = if query_string_params.any?
329
- query_string_params.to_h { |p| p.split("=", 2) }
329
+ query_string_params.to_h { |p| p.split "=", 2 }
330
330
  else
331
331
  {}
332
332
  end
@@ -364,7 +364,45 @@ module Google
364
364
 
365
365
  verb, uri, query_string_params, body = ServiceStub.transcode_import_documents_request request_pb
366
366
  query_string_params = if query_string_params.any?
367
- query_string_params.to_h { |p| p.split("=", 2) }
367
+ query_string_params.to_h { |p| p.split "=", 2 }
368
+ else
369
+ {}
370
+ end
371
+
372
+ response = @client_stub.make_http_request(
373
+ verb,
374
+ uri: uri,
375
+ body: body || "",
376
+ params: query_string_params,
377
+ options: options
378
+ )
379
+ operation = ::Gapic::Rest::TransportOperation.new response
380
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
381
+
382
+ yield result, operation if block_given?
383
+ result
384
+ end
385
+
386
+ ##
387
+ # Baseline implementation for the create_database REST call
388
+ #
389
+ # @param request_pb [::Google::Cloud::Firestore::Admin::V1::CreateDatabaseRequest]
390
+ # A request object representing the call parameters. Required.
391
+ # @param options [::Gapic::CallOptions]
392
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
393
+ #
394
+ # @yield [result, operation] Access the result along with the TransportOperation object
395
+ # @yieldparam result [::Google::Longrunning::Operation]
396
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
397
+ #
398
+ # @return [::Google::Longrunning::Operation]
399
+ # A result object deserialized from the server's reply
400
+ def create_database request_pb, options = nil
401
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
402
+
403
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_database_request request_pb
404
+ query_string_params = if query_string_params.any?
405
+ query_string_params.to_h { |p| p.split "=", 2 }
368
406
  else
369
407
  {}
370
408
  end
@@ -402,7 +440,7 @@ module Google
402
440
 
403
441
  verb, uri, query_string_params, body = ServiceStub.transcode_get_database_request request_pb
404
442
  query_string_params = if query_string_params.any?
405
- query_string_params.to_h { |p| p.split("=", 2) }
443
+ query_string_params.to_h { |p| p.split "=", 2 }
406
444
  else
407
445
  {}
408
446
  end
@@ -440,7 +478,7 @@ module Google
440
478
 
441
479
  verb, uri, query_string_params, body = ServiceStub.transcode_list_databases_request request_pb
442
480
  query_string_params = if query_string_params.any?
443
- query_string_params.to_h { |p| p.split("=", 2) }
481
+ query_string_params.to_h { |p| p.split "=", 2 }
444
482
  else
445
483
  {}
446
484
  end
@@ -478,7 +516,7 @@ module Google
478
516
 
479
517
  verb, uri, query_string_params, body = ServiceStub.transcode_update_database_request request_pb
480
518
  query_string_params = if query_string_params.any?
481
- query_string_params.to_h { |p| p.split("=", 2) }
519
+ query_string_params.to_h { |p| p.split "=", 2 }
482
520
  else
483
521
  {}
484
522
  end
@@ -690,6 +728,28 @@ module Google
690
728
  transcoder.transcode request_pb
691
729
  end
692
730
 
731
+ ##
732
+ # @private
733
+ #
734
+ # GRPC transcoding helper method for the create_database REST call
735
+ #
736
+ # @param request_pb [::Google::Cloud::Firestore::Admin::V1::CreateDatabaseRequest]
737
+ # A request object representing the call parameters. Required.
738
+ # @return [Array(String, [String, nil], Hash{String => String})]
739
+ # Uri, Body, Query string parameters
740
+ def self.transcode_create_database_request request_pb
741
+ transcoder = Gapic::Rest::GrpcTranscoder.new
742
+ .with_bindings(
743
+ uri_method: :post,
744
+ uri_template: "/v1/{parent}/databases",
745
+ body: "database",
746
+ matches: [
747
+ ["parent", %r{^projects/[^/]+/?$}, false]
748
+ ]
749
+ )
750
+ transcoder.transcode request_pb
751
+ end
752
+
693
753
  ##
694
754
  # @private
695
755
  #
@@ -22,7 +22,7 @@ module Google
22
22
  module Firestore
23
23
  module Admin
24
24
  module V1
25
- VERSION = "0.9.0"
25
+ VERSION = "0.10.0"
26
26
  end
27
27
  end
28
28
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/firestore/admin/v1/database.proto
3
4
 
@@ -6,34 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/firestore/admin/v1/database.proto", :syntax => :proto3) do
11
- add_message "google.firestore.admin.v1.Database" do
12
- optional :name, :string, 1
13
- optional :location_id, :string, 9
14
- optional :type, :enum, 10, "google.firestore.admin.v1.Database.DatabaseType"
15
- optional :concurrency_mode, :enum, 15, "google.firestore.admin.v1.Database.ConcurrencyMode"
16
- optional :app_engine_integration_mode, :enum, 19, "google.firestore.admin.v1.Database.AppEngineIntegrationMode"
17
- optional :key_prefix, :string, 20
18
- optional :etag, :string, 99
19
- end
20
- add_enum "google.firestore.admin.v1.Database.DatabaseType" do
21
- value :DATABASE_TYPE_UNSPECIFIED, 0
22
- value :FIRESTORE_NATIVE, 1
23
- value :DATASTORE_MODE, 2
24
- end
25
- add_enum "google.firestore.admin.v1.Database.ConcurrencyMode" do
26
- value :CONCURRENCY_MODE_UNSPECIFIED, 0
27
- value :OPTIMISTIC, 1
28
- value :PESSIMISTIC, 2
29
- value :OPTIMISTIC_WITH_ENTITY_GROUPS, 3
30
- end
31
- add_enum "google.firestore.admin.v1.Database.AppEngineIntegrationMode" do
32
- value :APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED, 0
33
- value :ENABLED, 1
34
- value :DISABLED, 2
10
+
11
+ descriptor_data = "\n(google/firestore/admin/v1/database.proto\x12\x19google.firestore.admin.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd0\x05\n\x08\x44\x61tabase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0blocation_id\x18\t \x01(\t\x12>\n\x04type\x18\n \x01(\x0e\x32\x30.google.firestore.admin.v1.Database.DatabaseType\x12M\n\x10\x63oncurrency_mode\x18\x0f \x01(\x0e\x32\x33.google.firestore.admin.v1.Database.ConcurrencyMode\x12\x61\n\x1b\x61pp_engine_integration_mode\x18\x13 \x01(\x0e\x32<.google.firestore.admin.v1.Database.AppEngineIntegrationMode\x12\x17\n\nkey_prefix\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x63 \x01(\t\"W\n\x0c\x44\x61tabaseType\x12\x1d\n\x19\x44\x41TABASE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x46IRESTORE_NATIVE\x10\x01\x12\x12\n\x0e\x44\x41TASTORE_MODE\x10\x02\"w\n\x0f\x43oncurrencyMode\x12 \n\x1c\x43ONCURRENCY_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nOPTIMISTIC\x10\x01\x12\x0f\n\x0bPESSIMISTIC\x10\x02\x12!\n\x1dOPTIMISTIC_WITH_ENTITY_GROUPS\x10\x03\"b\n\x18\x41ppEngineIntegrationMode\x12+\n\'APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02:R\xea\x41O\n!firestore.googleapis.com/Database\x12\'projects/{project}/databases/{database}R\x01\x01\x42\xdc\x01\n\x1d\x63om.google.firestore.admin.v1B\rDatabaseProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::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
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
31
  end
36
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
37
35
  end
38
36
 
39
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/firestore/admin/v1/field.proto
3
4
 
@@ -7,29 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/firestore/admin/v1/index_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/firestore/admin/v1/field.proto", :syntax => :proto3) do
12
- add_message "google.firestore.admin.v1.Field" do
13
- optional :name, :string, 1
14
- optional :index_config, :message, 2, "google.firestore.admin.v1.Field.IndexConfig"
15
- optional :ttl_config, :message, 3, "google.firestore.admin.v1.Field.TtlConfig"
16
- end
17
- add_message "google.firestore.admin.v1.Field.IndexConfig" do
18
- repeated :indexes, :message, 1, "google.firestore.admin.v1.Index"
19
- optional :uses_ancestor_config, :bool, 2
20
- optional :ancestor_field, :string, 3
21
- optional :reverting, :bool, 4
22
- end
23
- add_message "google.firestore.admin.v1.Field.TtlConfig" do
24
- optional :state, :enum, 1, "google.firestore.admin.v1.Field.TtlConfig.State"
25
- end
26
- add_enum "google.firestore.admin.v1.Field.TtlConfig.State" do
27
- value :STATE_UNSPECIFIED, 0
28
- value :CREATING, 1
29
- value :ACTIVE, 2
30
- value :NEEDS_REPAIR, 3
11
+
12
+ descriptor_data = "\n%google/firestore/admin/v1/field.proto\x12\x19google.firestore.admin.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/firestore/admin/v1/index.proto\"\xc5\x04\n\x05\x46ield\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\x0cindex_config\x18\x02 \x01(\x0b\x32,.google.firestore.admin.v1.Field.IndexConfig\x12>\n\nttl_config\x18\x03 \x01(\x0b\x32*.google.firestore.admin.v1.Field.TtlConfig\x1a\x89\x01\n\x0bIndexConfig\x12\x31\n\x07indexes\x18\x01 \x03(\x0b\x32 .google.firestore.admin.v1.Index\x12\x1c\n\x14uses_ancestor_config\x18\x02 \x01(\x08\x12\x16\n\x0e\x61ncestor_field\x18\x03 \x01(\t\x12\x11\n\treverting\x18\x04 \x01(\x08\x1a\x9d\x01\n\tTtlConfig\x12\x44\n\x05state\x18\x01 \x01(\x0e\x32\x30.google.firestore.admin.v1.Field.TtlConfig.StateB\x03\xe0\x41\x03\"J\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x10\n\x0cNEEDS_REPAIR\x10\x03:y\xea\x41v\n\x1e\x66irestore.googleapis.com/Field\x12Tprojects/{project}/databases/{database}/collectionGroups/{collection}/fields/{field}B\xd9\x01\n\x1d\x63om.google.firestore.admin.v1B\nFieldProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::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.firestore.admin.v1.Index", "google/firestore/admin/v1/index.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}"
31
33
  end
32
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."
33
37
  end
34
38
 
35
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/firestore/admin/v1/firestore_admin.proto
3
4
 
@@ -14,71 +15,35 @@ require 'google/longrunning/operations_pb'
14
15
  require 'google/protobuf/empty_pb'
15
16
  require 'google/protobuf/field_mask_pb'
16
17
 
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_file("google/firestore/admin/v1/firestore_admin.proto", :syntax => :proto3) do
19
- add_message "google.firestore.admin.v1.ListDatabasesRequest" do
20
- optional :parent, :string, 1
21
- end
22
- add_message "google.firestore.admin.v1.ListDatabasesResponse" do
23
- repeated :databases, :message, 1, "google.firestore.admin.v1.Database"
24
- end
25
- add_message "google.firestore.admin.v1.GetDatabaseRequest" do
26
- optional :name, :string, 1
27
- end
28
- add_message "google.firestore.admin.v1.UpdateDatabaseRequest" do
29
- optional :database, :message, 1, "google.firestore.admin.v1.Database"
30
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
31
- end
32
- add_message "google.firestore.admin.v1.UpdateDatabaseMetadata" do
33
- end
34
- add_message "google.firestore.admin.v1.CreateIndexRequest" do
35
- optional :parent, :string, 1
36
- optional :index, :message, 2, "google.firestore.admin.v1.Index"
37
- end
38
- add_message "google.firestore.admin.v1.ListIndexesRequest" do
39
- optional :parent, :string, 1
40
- optional :filter, :string, 2
41
- optional :page_size, :int32, 3
42
- optional :page_token, :string, 4
43
- end
44
- add_message "google.firestore.admin.v1.ListIndexesResponse" do
45
- repeated :indexes, :message, 1, "google.firestore.admin.v1.Index"
46
- optional :next_page_token, :string, 2
47
- end
48
- add_message "google.firestore.admin.v1.GetIndexRequest" do
49
- optional :name, :string, 1
50
- end
51
- add_message "google.firestore.admin.v1.DeleteIndexRequest" do
52
- optional :name, :string, 1
53
- end
54
- add_message "google.firestore.admin.v1.UpdateFieldRequest" do
55
- optional :field, :message, 1, "google.firestore.admin.v1.Field"
56
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
57
- end
58
- add_message "google.firestore.admin.v1.GetFieldRequest" do
59
- optional :name, :string, 1
60
- end
61
- add_message "google.firestore.admin.v1.ListFieldsRequest" do
62
- optional :parent, :string, 1
63
- optional :filter, :string, 2
64
- optional :page_size, :int32, 3
65
- optional :page_token, :string, 4
66
- end
67
- add_message "google.firestore.admin.v1.ListFieldsResponse" do
68
- repeated :fields, :message, 1, "google.firestore.admin.v1.Field"
69
- optional :next_page_token, :string, 2
70
- end
71
- add_message "google.firestore.admin.v1.ExportDocumentsRequest" do
72
- optional :name, :string, 1
73
- repeated :collection_ids, :string, 2
74
- optional :output_uri_prefix, :string, 3
75
- end
76
- add_message "google.firestore.admin.v1.ImportDocumentsRequest" do
77
- optional :name, :string, 1
78
- repeated :collection_ids, :string, 2
79
- optional :input_uri_prefix, :string, 3
18
+
19
+ descriptor_data = "\n/google/firestore/admin/v1/firestore_admin.proto\x12\x19google.firestore.admin.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/firestore/admin/v1/database.proto\x1a%google/firestore/admin/v1/field.proto\x1a%google/firestore/admin/v1/index.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"Q\n\x14ListDatabasesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\"\xa8\x01\n\x15\x43reateDatabaseRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\x12:\n\x08\x64\x61tabase\x18\x02 \x01(\x0b\x32#.google.firestore.admin.v1.DatabaseB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61tabase_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x18\n\x16\x43reateDatabaseMetadata\"O\n\x15ListDatabasesResponse\x12\x36\n\tdatabases\x18\x01 \x03(\x0b\x32#.google.firestore.admin.v1.Database\"M\n\x12GetDatabaseRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\"\x84\x01\n\x15UpdateDatabaseRequest\x12:\n\x08\x64\x61tabase\x18\x01 \x01(\x0b\x32#.google.firestore.admin.v1.DatabaseB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x18\n\x16UpdateDatabaseMetadata\"\x8c\x01\n\x12\x43reateIndexRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x34\n\x05index\x18\x02 \x01(\x0b\x32 .google.firestore.admin.v1.IndexB\x03\xe0\x41\x02\"\x8d\x01\n\x12ListIndexesRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"a\n\x13ListIndexesResponse\x12\x31\n\x07indexes\x18\x01 \x03(\x0b\x32 .google.firestore.admin.v1.Index\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"G\n\x0fGetIndexRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Index\"J\n\x12\x44\x65leteIndexRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Index\"{\n\x12UpdateFieldRequest\x12\x34\n\x05\x66ield\x18\x01 \x01(\x0b\x32 .google.firestore.admin.v1.FieldB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"G\n\x0fGetFieldRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Field\"\x8c\x01\n\x11ListFieldsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"_\n\x12ListFieldsResponse\x12\x30\n\x06\x66ields\x18\x01 \x03(\x0b\x32 .google.firestore.admin.v1.Field\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x84\x01\n\x16\x45xportDocumentsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x16\n\x0e\x63ollection_ids\x18\x02 \x03(\t\x12\x19\n\x11output_uri_prefix\x18\x03 \x01(\t\"\x83\x01\n\x16ImportDocumentsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x16\n\x0e\x63ollection_ids\x18\x02 \x03(\t\x12\x18\n\x10input_uri_prefix\x18\x03 \x01(\t2\xee\x14\n\x0e\x46irestoreAdmin\x12\xdb\x01\n\x0b\x43reateIndex\x12-.google.firestore.admin.v1.CreateIndexRequest\x1a\x1d.google.longrunning.Operation\"~\x82\xd3\xe4\x93\x02G\">/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes:\x05index\xda\x41\x0cparent,index\xca\x41\x1f\n\x05Index\x12\x16IndexOperationMetadata\x12\xbd\x01\n\x0bListIndexes\x12-.google.firestore.admin.v1.ListIndexesRequest\x1a..google.firestore.admin.v1.ListIndexesResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes\xda\x41\x06parent\x12\xa7\x01\n\x08GetIndex\x12*.google.firestore.admin.v1.GetIndexRequest\x1a .google.firestore.admin.v1.Index\"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}\xda\x41\x04name\x12\xa3\x01\n\x0b\x44\x65leteIndex\x12-.google.firestore.admin.v1.DeleteIndexRequest\x1a\x16.google.protobuf.Empty\"M\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}\xda\x41\x04name\x12\xa6\x01\n\x08GetField\x12*.google.firestore.admin.v1.GetFieldRequest\x1a .google.firestore.admin.v1.Field\"L\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/databases/*/collectionGroups/*/fields/*}\xda\x41\x04name\x12\xd9\x01\n\x0bUpdateField\x12-.google.firestore.admin.v1.UpdateFieldRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02L2C/v1/{field.name=projects/*/databases/*/collectionGroups/*/fields/*}:\x05\x66ield\xda\x41\x05\x66ield\xca\x41\x1f\n\x05\x46ield\x12\x16\x46ieldOperationMetadata\x12\xb9\x01\n\nListFields\x12,.google.firestore.admin.v1.ListFieldsRequest\x1a-.google.firestore.admin.v1.ListFieldsResponse\"N\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/databases/*/collectionGroups/*}/fields\xda\x41\x06parent\x12\xdd\x01\n\x0f\x45xportDocuments\x12\x31.google.firestore.admin.v1.ExportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/databases/*}:exportDocuments:\x01*\xda\x41\x04name\xca\x41\x32\n\x17\x45xportDocumentsResponse\x12\x17\x45xportDocumentsMetadata\x12\xdb\x01\n\x0fImportDocuments\x12\x31.google.firestore.admin.v1.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"v\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/databases/*}:importDocuments:\x01*\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17ImportDocumentsMetadata\x12\xd9\x01\n\x0e\x43reateDatabase\x12\x30.google.firestore.admin.v1.CreateDatabaseRequest\x1a\x1d.google.longrunning.Operation\"v\x82\xd3\xe4\x93\x02-\"!/v1/{parent=projects/*}/databases:\x08\x64\x61tabase\xda\x41\x1bparent,database,database_id\xca\x41\"\n\x08\x44\x61tabase\x12\x16\x43reateDatabaseMetadata\x12\x93\x01\n\x0bGetDatabase\x12-.google.firestore.admin.v1.GetDatabaseRequest\x1a#.google.firestore.admin.v1.Database\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/databases/*}\xda\x41\x04name\x12\xa6\x01\n\rListDatabases\x12/.google.firestore.admin.v1.ListDatabasesRequest\x1a\x30.google.firestore.admin.v1.ListDatabasesResponse\"2\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}/databases\xda\x41\x06parent\x12\xdb\x01\n\x0eUpdateDatabase\x12\x30.google.firestore.admin.v1.UpdateDatabaseRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02\x36\x32*/v1/{database.name=projects/*/databases/*}:\x08\x64\x61tabase\xda\x41\x14\x64\x61tabase,update_mask\xca\x41\"\n\x08\x44\x61tabase\x12\x16UpdateDatabaseMetadata\x1av\xca\x41\x18\x66irestore.googleapis.com\xd2\x41Xhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xa5\x03\n\x1d\x63om.google.firestore.admin.v1B\x13\x46irestoreAdminProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::V1\xea\x41L\n!firestore.googleapis.com/Location\x12\'projects/{project}/locations/{location}\xea\x41q\n(firestore.googleapis.com/CollectionGroup\x12\x45projects/{project}/databases/{database}/collectionGroups/{collection}b\x06proto3"
20
+
21
+ pool = Google::Protobuf::DescriptorPool.generated_pool
22
+
23
+ begin
24
+ pool.add_serialized_file(descriptor_data)
25
+ rescue TypeError => e
26
+ # Compatibility code: will be removed in the next major version.
27
+ require 'google/protobuf/descriptor_pb'
28
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
29
+ parsed.clear_dependency
30
+ serialized = parsed.class.encode(parsed)
31
+ file = pool.add_serialized_file(serialized)
32
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
33
+ imports = [
34
+ ["google.firestore.admin.v1.Database", "google/firestore/admin/v1/database.proto"],
35
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
36
+ ["google.firestore.admin.v1.Index", "google/firestore/admin/v1/index.proto"],
37
+ ["google.firestore.admin.v1.Field", "google/firestore/admin/v1/field.proto"],
38
+ ]
39
+ imports.each do |type_name, expected_filename|
40
+ import_file = pool.lookup(type_name).file_descriptor
41
+ if import_file.name != expected_filename
42
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
80
43
  end
81
44
  end
45
+ warn "Each proto file must use a consistent fully-qualified name."
46
+ warn "This will become an error in the next major version."
82
47
  end
83
48
 
84
49
  module Google
@@ -87,6 +52,8 @@ module Google
87
52
  module Admin
88
53
  module V1
89
54
  ListDatabasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListDatabasesRequest").msgclass
55
+ CreateDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.CreateDatabaseRequest").msgclass
56
+ CreateDatabaseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.CreateDatabaseMetadata").msgclass
90
57
  ListDatabasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListDatabasesResponse").msgclass
91
58
  GetDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.GetDatabaseRequest").msgclass
92
59
  UpdateDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.UpdateDatabaseRequest").msgclass
@@ -61,9 +61,11 @@ module Google
61
61
  self.unmarshal_class_method = :decode
62
62
  self.service_name = 'google.firestore.admin.v1.FirestoreAdmin'
63
63
 
64
- # Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
65
- # which may be used to track the status of the creation. The metadata for
66
- # the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
64
+ # Creates a composite index. This returns a
65
+ # [google.longrunning.Operation][google.longrunning.Operation] which may be
66
+ # used to track the status of the creation. The metadata for the operation
67
+ # will be the type
68
+ # [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
67
69
  rpc :CreateIndex, ::Google::Cloud::Firestore::Admin::V1::CreateIndexRequest, ::Google::Longrunning::Operation
68
70
  # Lists composite indexes.
69
71
  rpc :ListIndexes, ::Google::Cloud::Firestore::Admin::V1::ListIndexesRequest, ::Google::Cloud::Firestore::Admin::V1::ListIndexesResponse
@@ -75,13 +77,16 @@ module Google
75
77
  rpc :GetField, ::Google::Cloud::Firestore::Admin::V1::GetFieldRequest, ::Google::Cloud::Firestore::Admin::V1::Field
76
78
  # Updates a field configuration. Currently, field updates apply only to
77
79
  # single field index configuration. However, calls to
78
- # [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
79
- # changing any configuration that the caller isn't aware of. The field mask
80
- # should be specified as: `{ paths: "index_config" }`.
80
+ # [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
81
+ # should provide a field mask to avoid changing any configuration that the
82
+ # caller isn't aware of. The field mask should be specified as: `{ paths:
83
+ # "index_config" }`.
81
84
  #
82
- # This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
83
- # track the status of the field update. The metadata for
84
- # the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
85
+ # This call returns a
86
+ # [google.longrunning.Operation][google.longrunning.Operation] which may be
87
+ # used to track the status of the field update. The metadata for the
88
+ # operation will be the type
89
+ # [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
85
90
  #
86
91
  # To configure the default field settings for the database, use
87
92
  # the special `Field` with resource name:
@@ -89,10 +94,12 @@ module Google
89
94
  rpc :UpdateField, ::Google::Cloud::Firestore::Admin::V1::UpdateFieldRequest, ::Google::Longrunning::Operation
90
95
  # Lists the field configuration and metadata for this database.
91
96
  #
92
- # Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
93
- # that have been explicitly overridden. To issue this query, call
94
- # [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
95
- # `indexConfig.usesAncestorConfig:false` .
97
+ # Currently,
98
+ # [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
99
+ # only supports listing fields that have been explicitly overridden. To issue
100
+ # this query, call
101
+ # [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
102
+ # with the filter set to `indexConfig.usesAncestorConfig:false` .
96
103
  rpc :ListFields, ::Google::Cloud::Firestore::Admin::V1::ListFieldsRequest, ::Google::Cloud::Firestore::Admin::V1::ListFieldsResponse
97
104
  # Exports a copy of all or a subset of documents from Google Cloud Firestore
98
105
  # to another storage system, such as Google Cloud Storage. Recent updates to
@@ -112,6 +119,8 @@ module Google
112
119
  # created. If an ImportDocuments operation is cancelled, it is possible
113
120
  # that a subset of the data has already been imported to Cloud Firestore.
114
121
  rpc :ImportDocuments, ::Google::Cloud::Firestore::Admin::V1::ImportDocumentsRequest, ::Google::Longrunning::Operation
122
+ # Create a database.
123
+ rpc :CreateDatabase, ::Google::Cloud::Firestore::Admin::V1::CreateDatabaseRequest, ::Google::Longrunning::Operation
115
124
  # Gets information about a database.
116
125
  rpc :GetDatabase, ::Google::Cloud::Firestore::Admin::V1::GetDatabaseRequest, ::Google::Cloud::Firestore::Admin::V1::Database
117
126
  # List all the databases in the project.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/firestore/admin/v1/index.proto
3
4
 
@@ -5,48 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/resource_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/firestore/admin/v1/index.proto", :syntax => :proto3) do
10
- add_message "google.firestore.admin.v1.Index" do
11
- optional :name, :string, 1
12
- optional :query_scope, :enum, 2, "google.firestore.admin.v1.Index.QueryScope"
13
- optional :api_scope, :enum, 5, "google.firestore.admin.v1.Index.ApiScope"
14
- repeated :fields, :message, 3, "google.firestore.admin.v1.Index.IndexField"
15
- optional :state, :enum, 4, "google.firestore.admin.v1.Index.State"
16
- end
17
- add_message "google.firestore.admin.v1.Index.IndexField" do
18
- optional :field_path, :string, 1
19
- oneof :value_mode do
20
- optional :order, :enum, 2, "google.firestore.admin.v1.Index.IndexField.Order"
21
- optional :array_config, :enum, 3, "google.firestore.admin.v1.Index.IndexField.ArrayConfig"
22
- end
23
- end
24
- add_enum "google.firestore.admin.v1.Index.IndexField.Order" do
25
- value :ORDER_UNSPECIFIED, 0
26
- value :ASCENDING, 1
27
- value :DESCENDING, 2
28
- end
29
- add_enum "google.firestore.admin.v1.Index.IndexField.ArrayConfig" do
30
- value :ARRAY_CONFIG_UNSPECIFIED, 0
31
- value :CONTAINS, 1
32
- end
33
- add_enum "google.firestore.admin.v1.Index.QueryScope" do
34
- value :QUERY_SCOPE_UNSPECIFIED, 0
35
- value :COLLECTION, 1
36
- value :COLLECTION_GROUP, 2
37
- value :COLLECTION_RECURSIVE, 3
38
- end
39
- add_enum "google.firestore.admin.v1.Index.ApiScope" do
40
- value :ANY_API, 0
41
- value :DATASTORE_MODE_API, 1
42
- end
43
- add_enum "google.firestore.admin.v1.Index.State" do
44
- value :STATE_UNSPECIFIED, 0
45
- value :CREATING, 1
46
- value :READY, 2
47
- value :NEEDS_REPAIR, 3
9
+
10
+ descriptor_data = "\n%google/firestore/admin/v1/index.proto\x12\x19google.firestore.admin.v1\x1a\x19google/api/resource.proto\"\xac\x07\n\x05Index\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bquery_scope\x18\x02 \x01(\x0e\x32+.google.firestore.admin.v1.Index.QueryScope\x12<\n\tapi_scope\x18\x05 \x01(\x0e\x32).google.firestore.admin.v1.Index.ApiScope\x12;\n\x06\x66ields\x18\x03 \x03(\x0b\x32+.google.firestore.admin.v1.Index.IndexField\x12\x35\n\x05state\x18\x04 \x01(\x0e\x32&.google.firestore.admin.v1.Index.State\x1a\xbd\x02\n\nIndexField\x12\x12\n\nfield_path\x18\x01 \x01(\t\x12\x42\n\x05order\x18\x02 \x01(\x0e\x32\x31.google.firestore.admin.v1.Index.IndexField.OrderH\x00\x12O\n\x0c\x61rray_config\x18\x03 \x01(\x0e\x32\x37.google.firestore.admin.v1.Index.IndexField.ArrayConfigH\x00\"=\n\x05Order\x12\x15\n\x11ORDER_UNSPECIFIED\x10\x00\x12\r\n\tASCENDING\x10\x01\x12\x0e\n\nDESCENDING\x10\x02\"9\n\x0b\x41rrayConfig\x12\x1c\n\x18\x41RRAY_CONFIG_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43ONTAINS\x10\x01\x42\x0c\n\nvalue_mode\"i\n\nQueryScope\x12\x1b\n\x17QUERY_SCOPE_UNSPECIFIED\x10\x00\x12\x0e\n\nCOLLECTION\x10\x01\x12\x14\n\x10\x43OLLECTION_GROUP\x10\x02\x12\x18\n\x14\x43OLLECTION_RECURSIVE\x10\x03\"/\n\x08\x41piScope\x12\x0b\n\x07\x41NY_API\x10\x00\x12\x16\n\x12\x44\x41TASTORE_MODE_API\x10\x01\"I\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x10\n\x0cNEEDS_REPAIR\x10\x03:z\xea\x41w\n\x1e\x66irestore.googleapis.com/Index\x12Uprojects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}B\xd9\x01\n\x1d\x63om.google.firestore.admin.v1B\nIndexProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::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
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
48
30
  end
49
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
50
34
  end
51
35
 
52
36
  module Google
@@ -1,13 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/firestore/admin/v1/location.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/firestore/admin/v1/location.proto", :syntax => :proto3) do
8
- add_message "google.firestore.admin.v1.LocationMetadata" do
7
+
8
+ descriptor_data = "\n(google/firestore/admin/v1/location.proto\x12\x19google.firestore.admin.v1\"\x12\n\x10LocationMetadataB\xdc\x01\n\x1d\x63om.google.firestore.admin.v1B\rLocationProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::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}"
9
28
  end
10
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."
11
32
  end
12
33
 
13
34
  module Google