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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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/operation.proto
3
4
 
@@ -6,79 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/firestore/admin/v1/index_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/firestore/admin/v1/operation.proto", :syntax => :proto3) do
11
- add_message "google.firestore.admin.v1.IndexOperationMetadata" do
12
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
13
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
14
- optional :index, :string, 3
15
- optional :state, :enum, 4, "google.firestore.admin.v1.OperationState"
16
- optional :progress_documents, :message, 5, "google.firestore.admin.v1.Progress"
17
- optional :progress_bytes, :message, 6, "google.firestore.admin.v1.Progress"
18
- end
19
- add_message "google.firestore.admin.v1.FieldOperationMetadata" do
20
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
21
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
22
- optional :field, :string, 3
23
- repeated :index_config_deltas, :message, 4, "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta"
24
- optional :state, :enum, 5, "google.firestore.admin.v1.OperationState"
25
- optional :progress_documents, :message, 6, "google.firestore.admin.v1.Progress"
26
- optional :progress_bytes, :message, 7, "google.firestore.admin.v1.Progress"
27
- optional :ttl_config_delta, :message, 8, "google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta"
28
- end
29
- add_message "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta" do
30
- optional :change_type, :enum, 1, "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType"
31
- optional :index, :message, 2, "google.firestore.admin.v1.Index"
32
- end
33
- add_enum "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType" do
34
- value :CHANGE_TYPE_UNSPECIFIED, 0
35
- value :ADD, 1
36
- value :REMOVE, 2
37
- end
38
- add_message "google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta" do
39
- optional :change_type, :enum, 1, "google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType"
40
- end
41
- add_enum "google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType" do
42
- value :CHANGE_TYPE_UNSPECIFIED, 0
43
- value :ADD, 1
44
- value :REMOVE, 2
45
- end
46
- add_message "google.firestore.admin.v1.ExportDocumentsMetadata" do
47
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
48
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
49
- optional :operation_state, :enum, 3, "google.firestore.admin.v1.OperationState"
50
- optional :progress_documents, :message, 4, "google.firestore.admin.v1.Progress"
51
- optional :progress_bytes, :message, 5, "google.firestore.admin.v1.Progress"
52
- repeated :collection_ids, :string, 6
53
- optional :output_uri_prefix, :string, 7
54
- end
55
- add_message "google.firestore.admin.v1.ImportDocumentsMetadata" do
56
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
57
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
58
- optional :operation_state, :enum, 3, "google.firestore.admin.v1.OperationState"
59
- optional :progress_documents, :message, 4, "google.firestore.admin.v1.Progress"
60
- optional :progress_bytes, :message, 5, "google.firestore.admin.v1.Progress"
61
- repeated :collection_ids, :string, 6
62
- optional :input_uri_prefix, :string, 7
63
- end
64
- add_message "google.firestore.admin.v1.ExportDocumentsResponse" do
65
- optional :output_uri_prefix, :string, 1
66
- end
67
- add_message "google.firestore.admin.v1.Progress" do
68
- optional :estimated_work, :int64, 1
69
- optional :completed_work, :int64, 2
70
- end
71
- add_enum "google.firestore.admin.v1.OperationState" do
72
- value :OPERATION_STATE_UNSPECIFIED, 0
73
- value :INITIALIZING, 1
74
- value :PROCESSING, 2
75
- value :CANCELLING, 3
76
- value :FINALIZING, 4
77
- value :SUCCESSFUL, 5
78
- value :FAILED, 6
79
- value :CANCELLED, 7
10
+
11
+ descriptor_data = "\n)google/firestore/admin/v1/operation.proto\x12\x19google.firestore.admin.v1\x1a%google/firestore/admin/v1/index.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbd\x02\n\x16IndexOperationMetadata\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\r\n\x05index\x18\x03 \x01(\t\x12\x38\n\x05state\x18\x04 \x01(\x0e\x32).google.firestore.admin.v1.OperationState\x12?\n\x12progress_documents\x18\x05 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x06 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\"\x99\x07\n\x16\x46ieldOperationMetadata\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\r\n\x05\x66ield\x18\x03 \x01(\t\x12_\n\x13index_config_deltas\x18\x04 \x03(\x0b\x32\x42.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta\x12\x38\n\x05state\x18\x05 \x01(\x0e\x32).google.firestore.admin.v1.OperationState\x12?\n\x12progress_documents\x18\x06 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x07 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12Z\n\x10ttl_config_delta\x18\x08 \x01(\x0b\x32@.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta\x1a\xe7\x01\n\x10IndexConfigDelta\x12\x62\n\x0b\x63hange_type\x18\x01 \x01(\x0e\x32M.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType\x12/\n\x05index\x18\x02 \x01(\x0b\x32 .google.firestore.admin.v1.Index\">\n\nChangeType\x12\x1b\n\x17\x43HANGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\x1a\xb2\x01\n\x0eTtlConfigDelta\x12`\n\x0b\x63hange_type\x18\x01 \x01(\x0e\x32K.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType\">\n\nChangeType\x12\x1b\n\x17\x43HANGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06REMOVE\x10\x02\"\xec\x02\n\x17\x45xportDocumentsMetadata\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\x42\n\x0foperation_state\x18\x03 \x01(\x0e\x32).google.firestore.admin.v1.OperationState\x12?\n\x12progress_documents\x18\x04 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x05 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12\x16\n\x0e\x63ollection_ids\x18\x06 \x03(\t\x12\x19\n\x11output_uri_prefix\x18\x07 \x01(\t\"\xeb\x02\n\x17ImportDocumentsMetadata\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\x42\n\x0foperation_state\x18\x03 \x01(\x0e\x32).google.firestore.admin.v1.OperationState\x12?\n\x12progress_documents\x18\x04 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12;\n\x0eprogress_bytes\x18\x05 \x01(\x0b\x32#.google.firestore.admin.v1.Progress\x12\x16\n\x0e\x63ollection_ids\x18\x06 \x03(\t\x12\x18\n\x10input_uri_prefix\x18\x07 \x01(\t\"4\n\x17\x45xportDocumentsResponse\x12\x19\n\x11output_uri_prefix\x18\x01 \x01(\t\":\n\x08Progress\x12\x16\n\x0e\x65stimated_work\x18\x01 \x01(\x03\x12\x16\n\x0e\x63ompleted_work\x18\x02 \x01(\x03*\x9e\x01\n\x0eOperationState\x12\x1f\n\x1bOPERATION_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\x0e\n\nCANCELLING\x10\x03\x12\x0e\n\nFINALIZING\x10\x04\x12\x0e\n\nSUCCESSFUL\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\r\n\tCANCELLED\x10\x07\x42\xdd\x01\n\x1d\x63om.google.firestore.admin.v1B\x0eOperationProtoP\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
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
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}"
80
33
  end
81
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."
82
37
  end
83
38
 
84
39
  module Google
@@ -32,6 +32,32 @@ module Google
32
32
  extend ::Google::Protobuf::MessageExts::ClassMethods
33
33
  end
34
34
 
35
+ # The request for
36
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#create_database FirestoreAdmin.CreateDatabase}.
37
+ # @!attribute [rw] parent
38
+ # @return [::String]
39
+ # Required. A parent name of the form
40
+ # `projects/{project_id}`
41
+ # @!attribute [rw] database
42
+ # @return [::Google::Cloud::Firestore::Admin::V1::Database]
43
+ # Required. The Database to create.
44
+ # @!attribute [rw] database_id
45
+ # @return [::String]
46
+ # Required. The ID to use for the database, which will become the final
47
+ # component of the database's resource name.
48
+ #
49
+ # The value must be set to "(default)".
50
+ class CreateDatabaseRequest
51
+ include ::Google::Protobuf::MessageExts
52
+ extend ::Google::Protobuf::MessageExts::ClassMethods
53
+ end
54
+
55
+ # Metadata related to the create database operation.
56
+ class CreateDatabaseMetadata
57
+ include ::Google::Protobuf::MessageExts
58
+ extend ::Google::Protobuf::MessageExts::ClassMethods
59
+ end
60
+
35
61
  # The list of databases for a project.
36
62
  # @!attribute [rw] databases
37
63
  # @return [::Array<::Google::Cloud::Firestore::Admin::V1::Database>]
@@ -41,7 +67,8 @@ module Google
41
67
  extend ::Google::Protobuf::MessageExts::ClassMethods
42
68
  end
43
69
 
44
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_database FirestoreAdmin.GetDatabase}.
70
+ # The request for
71
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_database FirestoreAdmin.GetDatabase}.
45
72
  # @!attribute [rw] name
46
73
  # @return [::String]
47
74
  # Required. A name of the form
@@ -51,7 +78,8 @@ module Google
51
78
  extend ::Google::Protobuf::MessageExts::ClassMethods
52
79
  end
53
80
 
54
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#update_database FirestoreAdmin.UpdateDatabase}.
81
+ # The request for
82
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#update_database FirestoreAdmin.UpdateDatabase}.
55
83
  # @!attribute [rw] database
56
84
  # @return [::Google::Cloud::Firestore::Admin::V1::Database]
57
85
  # Required. The database to update.
@@ -69,7 +97,8 @@ module Google
69
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
70
98
  end
71
99
 
72
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#create_index FirestoreAdmin.CreateIndex}.
100
+ # The request for
101
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#create_index FirestoreAdmin.CreateIndex}.
73
102
  # @!attribute [rw] parent
74
103
  # @return [::String]
75
104
  # Required. A parent name of the form
@@ -82,7 +111,8 @@ module Google
82
111
  extend ::Google::Protobuf::MessageExts::ClassMethods
83
112
  end
84
113
 
85
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes}.
114
+ # The request for
115
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes}.
86
116
  # @!attribute [rw] parent
87
117
  # @return [::String]
88
118
  # Required. A parent name of the form
@@ -96,14 +126,15 @@ module Google
96
126
  # @!attribute [rw] page_token
97
127
  # @return [::String]
98
128
  # A page token, returned from a previous call to
99
- # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes}, that may be used to get the next
100
- # page of results.
129
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes},
130
+ # that may be used to get the next page of results.
101
131
  class ListIndexesRequest
102
132
  include ::Google::Protobuf::MessageExts
103
133
  extend ::Google::Protobuf::MessageExts::ClassMethods
104
134
  end
105
135
 
106
- # The response for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes}.
136
+ # The response for
137
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_indexes FirestoreAdmin.ListIndexes}.
107
138
  # @!attribute [rw] indexes
108
139
  # @return [::Array<::Google::Cloud::Firestore::Admin::V1::Index>]
109
140
  # The requested indexes.
@@ -116,7 +147,8 @@ module Google
116
147
  extend ::Google::Protobuf::MessageExts::ClassMethods
117
148
  end
118
149
 
119
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_index FirestoreAdmin.GetIndex}.
150
+ # The request for
151
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_index FirestoreAdmin.GetIndex}.
120
152
  # @!attribute [rw] name
121
153
  # @return [::String]
122
154
  # Required. A name of the form
@@ -126,7 +158,8 @@ module Google
126
158
  extend ::Google::Protobuf::MessageExts::ClassMethods
127
159
  end
128
160
 
129
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#delete_index FirestoreAdmin.DeleteIndex}.
161
+ # The request for
162
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#delete_index FirestoreAdmin.DeleteIndex}.
130
163
  # @!attribute [rw] name
131
164
  # @return [::String]
132
165
  # Required. A name of the form
@@ -136,7 +169,8 @@ module Google
136
169
  extend ::Google::Protobuf::MessageExts::ClassMethods
137
170
  end
138
171
 
139
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#update_field FirestoreAdmin.UpdateField}.
172
+ # The request for
173
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#update_field FirestoreAdmin.UpdateField}.
140
174
  # @!attribute [rw] field
141
175
  # @return [::Google::Cloud::Firestore::Admin::V1::Field]
142
176
  # Required. The field to be updated.
@@ -149,7 +183,8 @@ module Google
149
183
  extend ::Google::Protobuf::MessageExts::ClassMethods
150
184
  end
151
185
 
152
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_field FirestoreAdmin.GetField}.
186
+ # The request for
187
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#get_field FirestoreAdmin.GetField}.
153
188
  # @!attribute [rw] name
154
189
  # @return [::String]
155
190
  # Required. A name of the form
@@ -159,7 +194,8 @@ module Google
159
194
  extend ::Google::Protobuf::MessageExts::ClassMethods
160
195
  end
161
196
 
162
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}.
197
+ # The request for
198
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}.
163
199
  # @!attribute [rw] parent
164
200
  # @return [::String]
165
201
  # Required. A parent name of the form
@@ -167,24 +203,26 @@ module Google
167
203
  # @!attribute [rw] filter
168
204
  # @return [::String]
169
205
  # The filter to apply to list results. Currently,
170
- # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields} only supports listing fields
171
- # that have been explicitly overridden. To issue this query, call
172
- # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields} with a filter that includes
173
- # `indexConfig.usesAncestorConfig:false` .
206
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}
207
+ # only supports listing fields that have been explicitly overridden. To issue
208
+ # this query, call
209
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}
210
+ # with a filter that includes `indexConfig.usesAncestorConfig:false` .
174
211
  # @!attribute [rw] page_size
175
212
  # @return [::Integer]
176
213
  # The number of results to return.
177
214
  # @!attribute [rw] page_token
178
215
  # @return [::String]
179
216
  # A page token, returned from a previous call to
180
- # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}, that may be used to get the next
181
- # page of results.
217
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields},
218
+ # that may be used to get the next page of results.
182
219
  class ListFieldsRequest
183
220
  include ::Google::Protobuf::MessageExts
184
221
  extend ::Google::Protobuf::MessageExts::ClassMethods
185
222
  end
186
223
 
187
- # The response for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}.
224
+ # The response for
225
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#list_fields FirestoreAdmin.ListFields}.
188
226
  # @!attribute [rw] fields
189
227
  # @return [::Array<::Google::Cloud::Firestore::Admin::V1::Field>]
190
228
  # The requested fields.
@@ -197,7 +235,8 @@ module Google
197
235
  extend ::Google::Protobuf::MessageExts::ClassMethods
198
236
  end
199
237
 
200
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#export_documents FirestoreAdmin.ExportDocuments}.
238
+ # The request for
239
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#export_documents FirestoreAdmin.ExportDocuments}.
201
240
  # @!attribute [rw] name
202
241
  # @return [::String]
203
242
  # Required. Database to export. Should be of the form:
@@ -220,7 +259,8 @@ module Google
220
259
  extend ::Google::Protobuf::MessageExts::ClassMethods
221
260
  end
222
261
 
223
- # The request for {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#import_documents FirestoreAdmin.ImportDocuments}.
262
+ # The request for
263
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#import_documents FirestoreAdmin.ImportDocuments}.
224
264
  # @!attribute [rw] name
225
265
  # @return [::String]
226
266
  # Required. Database to import into. Should be of the form:
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-firestore-admin-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-19 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a