google-apps-meet-v2beta 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/apps/meet/v2beta/conference_records_service/client.rb +1618 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/credentials.rb +44 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/paths.rb +136 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/rest/client.rb +1516 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/rest/service_stub.rb +766 -0
- data/lib/google/apps/meet/v2beta/conference_records_service/rest.rb +52 -0
- data/lib/google/apps/meet/v2beta/conference_records_service.rb +55 -0
- data/lib/google/apps/meet/v2beta/resource_pb.rb +64 -0
- data/lib/google/apps/meet/v2beta/rest.rb +38 -0
- data/lib/google/apps/meet/v2beta/service_pb.rb +73 -0
- data/lib/google/apps/meet/v2beta/service_services_pb.rb +122 -0
- data/lib/google/apps/meet/v2beta/spaces_service/client.rb +710 -0
- data/lib/google/apps/meet/v2beta/spaces_service/credentials.rb +44 -0
- data/lib/google/apps/meet/v2beta/spaces_service/paths.rb +61 -0
- data/lib/google/apps/meet/v2beta/spaces_service/rest/client.rb +664 -0
- data/lib/google/apps/meet/v2beta/spaces_service/rest/service_stub.rb +297 -0
- data/lib/google/apps/meet/v2beta/spaces_service/rest.rb +52 -0
- data/lib/google/apps/meet/v2beta/spaces_service.rb +55 -0
- data/lib/google/apps/meet/v2beta/version.rb +7 -2
- data/lib/google/apps/meet/v2beta.rb +46 -0
- data/lib/google-apps-meet-v2beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +395 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/apps/meet/v2beta/resource.rb +375 -0
- data/proto_docs/google/apps/meet/v2beta/service.rb +350 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- metadata +190 -13
@@ -0,0 +1,350 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apps
|
22
|
+
module Meet
|
23
|
+
module V2beta
|
24
|
+
# Request to create a space.
|
25
|
+
# @!attribute [rw] space
|
26
|
+
# @return [::Google::Apps::Meet::V2beta::Space]
|
27
|
+
# Space to be created. As of May 2023, the input space can be empty. Later on
|
28
|
+
# the input space can be non-empty when space configuration is introduced.
|
29
|
+
class CreateSpaceRequest
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
|
34
|
+
# Request to get a space.
|
35
|
+
# @!attribute [rw] name
|
36
|
+
# @return [::String]
|
37
|
+
# Required. Resource name of the space.
|
38
|
+
class GetSpaceRequest
|
39
|
+
include ::Google::Protobuf::MessageExts
|
40
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
41
|
+
end
|
42
|
+
|
43
|
+
# Request to update a space.
|
44
|
+
# @!attribute [rw] space
|
45
|
+
# @return [::Google::Apps::Meet::V2beta::Space]
|
46
|
+
# Required. Space to be updated.
|
47
|
+
# @!attribute [rw] update_mask
|
48
|
+
# @return [::Google::Protobuf::FieldMask]
|
49
|
+
# Optional. Field mask used to specify the fields to be updated in the space.
|
50
|
+
# If update_mask isn't provided, it defaults to '*' and updates all
|
51
|
+
# fields provided in the request, including deleting fields not set in the
|
52
|
+
# request.
|
53
|
+
class UpdateSpaceRequest
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
|
+
end
|
57
|
+
|
58
|
+
# Request to end an ongoing conference of a space.
|
59
|
+
# @!attribute [rw] name
|
60
|
+
# @return [::String]
|
61
|
+
# Required. Resource name of the space.
|
62
|
+
class EndActiveConferenceRequest
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# Request to get a conference record.
|
68
|
+
# @!attribute [rw] name
|
69
|
+
# @return [::String]
|
70
|
+
# Required. Resource name of the conference.
|
71
|
+
class GetConferenceRecordRequest
|
72
|
+
include ::Google::Protobuf::MessageExts
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
end
|
75
|
+
|
76
|
+
# Request to fetch list of conference records per user.
|
77
|
+
# @!attribute [rw] page_size
|
78
|
+
# @return [::Integer]
|
79
|
+
# Optional. Maximum number of conference records to return. The service might
|
80
|
+
# return fewer than this value. If unspecified, at most 25 conference records
|
81
|
+
# are returned. The maximum value is 100; values above 100 are coerced to
|
82
|
+
# 100. Maximum might change in the future.
|
83
|
+
# @!attribute [rw] page_token
|
84
|
+
# @return [::String]
|
85
|
+
# Optional. Page token returned from previous List Call.
|
86
|
+
# @!attribute [rw] filter
|
87
|
+
# @return [::String]
|
88
|
+
# Optional. User specified filtering condition in EBNF format. The following
|
89
|
+
# are the filterable fields:
|
90
|
+
#
|
91
|
+
# * `space.meeting_code`
|
92
|
+
# * `space.name`
|
93
|
+
# * `start_time`
|
94
|
+
# * `end_time`
|
95
|
+
#
|
96
|
+
# For example, `space.meeting_code = "abc-mnop-xyz"`.
|
97
|
+
class ListConferenceRecordsRequest
|
98
|
+
include ::Google::Protobuf::MessageExts
|
99
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
100
|
+
end
|
101
|
+
|
102
|
+
# Response of ListConferenceRecords method.
|
103
|
+
# @!attribute [rw] conference_records
|
104
|
+
# @return [::Array<::Google::Apps::Meet::V2beta::ConferenceRecord>]
|
105
|
+
# List of conferences in one page.
|
106
|
+
# @!attribute [rw] next_page_token
|
107
|
+
# @return [::String]
|
108
|
+
# Token to be circulated back for further List call if current List does NOT
|
109
|
+
# include all the Conferences. Unset if all conferences have been returned.
|
110
|
+
class ListConferenceRecordsResponse
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
end
|
114
|
+
|
115
|
+
# Request to get a Participant.
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# @return [::String]
|
118
|
+
# Required. Resource name of the participant.
|
119
|
+
class GetParticipantRequest
|
120
|
+
include ::Google::Protobuf::MessageExts
|
121
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
122
|
+
end
|
123
|
+
|
124
|
+
# Request to fetch list of participant per conference.
|
125
|
+
# @!attribute [rw] parent
|
126
|
+
# @return [::String]
|
127
|
+
# Required. Format: `conferenceRecords/{conference_record}`
|
128
|
+
# @!attribute [rw] page_size
|
129
|
+
# @return [::Integer]
|
130
|
+
# Maximum number of participants to return. The service might return fewer
|
131
|
+
# than this value.
|
132
|
+
# If unspecified, at most 100 participants are returned.
|
133
|
+
# The maximum value is 250; values above 250 are coerced to 250.
|
134
|
+
# Maximum might change in the future.
|
135
|
+
# @!attribute [rw] page_token
|
136
|
+
# @return [::String]
|
137
|
+
# Page token returned from previous List Call.
|
138
|
+
# @!attribute [rw] filter
|
139
|
+
# @return [::String]
|
140
|
+
# Optional. User specified filtering condition in EBNF format. The following
|
141
|
+
# are the filterable fields:
|
142
|
+
#
|
143
|
+
# * `earliest_start_time`
|
144
|
+
# * `latest_end_time`
|
145
|
+
#
|
146
|
+
# For example, `latest_end_time IS NULL` returns active participants in
|
147
|
+
# the conference.
|
148
|
+
class ListParticipantsRequest
|
149
|
+
include ::Google::Protobuf::MessageExts
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
151
|
+
end
|
152
|
+
|
153
|
+
# Response of ListParticipants method.
|
154
|
+
# @!attribute [rw] participants
|
155
|
+
# @return [::Array<::Google::Apps::Meet::V2beta::Participant>]
|
156
|
+
# List of participants in one page.
|
157
|
+
# @!attribute [rw] next_page_token
|
158
|
+
# @return [::String]
|
159
|
+
# Token to be circulated back for further List call if current List doesn't
|
160
|
+
# include all the participants. Unset if all participants are returned.
|
161
|
+
# @!attribute [rw] total_size
|
162
|
+
# @return [::Integer]
|
163
|
+
# Total, exact number of `participants`. By default, this field isn't
|
164
|
+
# included in the response. Set the field mask in
|
165
|
+
# [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters)
|
166
|
+
# to receive this field in the response.
|
167
|
+
class ListParticipantsResponse
|
168
|
+
include ::Google::Protobuf::MessageExts
|
169
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
170
|
+
end
|
171
|
+
|
172
|
+
# Request to get a participant session.
|
173
|
+
# @!attribute [rw] name
|
174
|
+
# @return [::String]
|
175
|
+
# Required. Resource name of the participant.
|
176
|
+
class GetParticipantSessionRequest
|
177
|
+
include ::Google::Protobuf::MessageExts
|
178
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
179
|
+
end
|
180
|
+
|
181
|
+
# Request to fetch list of participant sessions per conference record per
|
182
|
+
# participant.
|
183
|
+
# @!attribute [rw] parent
|
184
|
+
# @return [::String]
|
185
|
+
# Required. Format:
|
186
|
+
# `conferenceRecords/{conference_record}/participants/{participant}`
|
187
|
+
# @!attribute [rw] page_size
|
188
|
+
# @return [::Integer]
|
189
|
+
# Optional. Maximum number of participant sessions to return. The service
|
190
|
+
# might return fewer than this value. If unspecified, at most 100
|
191
|
+
# participants are returned. The maximum value is 250; values above 250 are
|
192
|
+
# coerced to 250. Maximum might change in the future.
|
193
|
+
# @!attribute [rw] page_token
|
194
|
+
# @return [::String]
|
195
|
+
# Optional. Page token returned from previous List Call.
|
196
|
+
# @!attribute [rw] filter
|
197
|
+
# @return [::String]
|
198
|
+
# Optional. User specified filtering condition in EBNF format. The following
|
199
|
+
# are the filterable fields:
|
200
|
+
#
|
201
|
+
# * `start_time`
|
202
|
+
# * `end_time`
|
203
|
+
#
|
204
|
+
# For example, `end_time IS NULL` returns active participant sessions in
|
205
|
+
# the conference record.
|
206
|
+
class ListParticipantSessionsRequest
|
207
|
+
include ::Google::Protobuf::MessageExts
|
208
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
end
|
210
|
+
|
211
|
+
# Response of ListParticipants method.
|
212
|
+
# @!attribute [rw] participant_sessions
|
213
|
+
# @return [::Array<::Google::Apps::Meet::V2beta::ParticipantSession>]
|
214
|
+
# List of participants in one page.
|
215
|
+
# @!attribute [rw] next_page_token
|
216
|
+
# @return [::String]
|
217
|
+
# Token to be circulated back for further List call if current List doesn't
|
218
|
+
# include all the participants. Unset if all participants are returned.
|
219
|
+
class ListParticipantSessionsResponse
|
220
|
+
include ::Google::Protobuf::MessageExts
|
221
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
222
|
+
end
|
223
|
+
|
224
|
+
# Request message for GetRecording method.
|
225
|
+
# @!attribute [rw] name
|
226
|
+
# @return [::String]
|
227
|
+
# Required. Resource name of the recording.
|
228
|
+
class GetRecordingRequest
|
229
|
+
include ::Google::Protobuf::MessageExts
|
230
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
231
|
+
end
|
232
|
+
|
233
|
+
# Request for ListRecordings method.
|
234
|
+
# @!attribute [rw] parent
|
235
|
+
# @return [::String]
|
236
|
+
# Required. Format: `conferenceRecords/{conference_record}`
|
237
|
+
# @!attribute [rw] page_size
|
238
|
+
# @return [::Integer]
|
239
|
+
# Maximum number of recordings to return. The service might return fewer
|
240
|
+
# than this value.
|
241
|
+
# If unspecified, at most 10 recordings are returned.
|
242
|
+
# The maximum value is 100; values above 100 are coerced to 100.
|
243
|
+
# Maximum might change in the future.
|
244
|
+
# @!attribute [rw] page_token
|
245
|
+
# @return [::String]
|
246
|
+
# Page token returned from previous List Call.
|
247
|
+
class ListRecordingsRequest
|
248
|
+
include ::Google::Protobuf::MessageExts
|
249
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
250
|
+
end
|
251
|
+
|
252
|
+
# Response for ListRecordings method.
|
253
|
+
# @!attribute [rw] recordings
|
254
|
+
# @return [::Array<::Google::Apps::Meet::V2beta::Recording>]
|
255
|
+
# List of recordings in one page.
|
256
|
+
# @!attribute [rw] next_page_token
|
257
|
+
# @return [::String]
|
258
|
+
# Token to be circulated back for further List call if current List doesn't
|
259
|
+
# include all the recordings. Unset if all recordings are returned.
|
260
|
+
class ListRecordingsResponse
|
261
|
+
include ::Google::Protobuf::MessageExts
|
262
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
263
|
+
end
|
264
|
+
|
265
|
+
# Request for GetTranscript method.
|
266
|
+
# @!attribute [rw] name
|
267
|
+
# @return [::String]
|
268
|
+
# Required. Resource name of the transcript.
|
269
|
+
class GetTranscriptRequest
|
270
|
+
include ::Google::Protobuf::MessageExts
|
271
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
272
|
+
end
|
273
|
+
|
274
|
+
# Request for ListTranscripts method.
|
275
|
+
# @!attribute [rw] parent
|
276
|
+
# @return [::String]
|
277
|
+
# Required. Format: `conferenceRecords/{conference_record}`
|
278
|
+
# @!attribute [rw] page_size
|
279
|
+
# @return [::Integer]
|
280
|
+
# Maximum number of transcripts to return. The service might return fewer
|
281
|
+
# than this value.
|
282
|
+
# If unspecified, at most 10 transcripts are returned.
|
283
|
+
# The maximum value is 100; values above 100 are coerced to 100.
|
284
|
+
# Maximum might change in the future.
|
285
|
+
# @!attribute [rw] page_token
|
286
|
+
# @return [::String]
|
287
|
+
# Page token returned from previous List Call.
|
288
|
+
class ListTranscriptsRequest
|
289
|
+
include ::Google::Protobuf::MessageExts
|
290
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
291
|
+
end
|
292
|
+
|
293
|
+
# Response for ListTranscripts method.
|
294
|
+
# @!attribute [rw] transcripts
|
295
|
+
# @return [::Array<::Google::Apps::Meet::V2beta::Transcript>]
|
296
|
+
# List of transcripts in one page.
|
297
|
+
# @!attribute [rw] next_page_token
|
298
|
+
# @return [::String]
|
299
|
+
# Token to be circulated back for further List call if current List doesn't
|
300
|
+
# include all the transcripts. Unset if all transcripts are returned.
|
301
|
+
class ListTranscriptsResponse
|
302
|
+
include ::Google::Protobuf::MessageExts
|
303
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
304
|
+
end
|
305
|
+
|
306
|
+
# Request for GetTranscriptEntry method.
|
307
|
+
# @!attribute [rw] name
|
308
|
+
# @return [::String]
|
309
|
+
# Required. Resource name of the `TranscriptEntry`.
|
310
|
+
class GetTranscriptEntryRequest
|
311
|
+
include ::Google::Protobuf::MessageExts
|
312
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
313
|
+
end
|
314
|
+
|
315
|
+
# Request for ListTranscriptEntries method.
|
316
|
+
# @!attribute [rw] parent
|
317
|
+
# @return [::String]
|
318
|
+
# Required. Format:
|
319
|
+
# `conferenceRecords/{conference_record}/transcripts/{transcript}`
|
320
|
+
# @!attribute [rw] page_size
|
321
|
+
# @return [::Integer]
|
322
|
+
# Maximum number of entries to return. The service might return fewer than
|
323
|
+
# this value.
|
324
|
+
# If unspecified, at most 10 entries are returned.
|
325
|
+
# The maximum value is 100; values above 100 are coerced to 100.
|
326
|
+
# Maximum might change in the future.
|
327
|
+
# @!attribute [rw] page_token
|
328
|
+
# @return [::String]
|
329
|
+
# Page token returned from previous List Call.
|
330
|
+
class ListTranscriptEntriesRequest
|
331
|
+
include ::Google::Protobuf::MessageExts
|
332
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
333
|
+
end
|
334
|
+
|
335
|
+
# Response for ListTranscriptEntries method
|
336
|
+
# @!attribute [rw] transcript_entries
|
337
|
+
# @return [::Array<::Google::Apps::Meet::V2beta::TranscriptEntry>]
|
338
|
+
# List of TranscriptEntries in one page.
|
339
|
+
# @!attribute [rw] next_page_token
|
340
|
+
# @return [::String]
|
341
|
+
# Token to be circulated back for further List call if current List doesn't
|
342
|
+
# include all the transcript entries. Unset if all entries are returned.
|
343
|
+
class ListTranscriptEntriesResponse
|
344
|
+
include ::Google::Protobuf::MessageExts
|
345
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
346
|
+
end
|
347
|
+
end
|
348
|
+
end
|
349
|
+
end
|
350
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# A Duration represents a signed, fixed-length span of time represented
|
23
|
+
# as a count of seconds and fractions of seconds at nanosecond
|
24
|
+
# resolution. It is independent of any calendar and concepts like "day"
|
25
|
+
# or "month". It is related to Timestamp in that the difference between
|
26
|
+
# two Timestamp values is a Duration and it can be added or subtracted
|
27
|
+
# from a Timestamp. Range is approximately +-10,000 years.
|
28
|
+
#
|
29
|
+
# # Examples
|
30
|
+
#
|
31
|
+
# Example 1: Compute Duration from two Timestamps in pseudo code.
|
32
|
+
#
|
33
|
+
# Timestamp start = ...;
|
34
|
+
# Timestamp end = ...;
|
35
|
+
# Duration duration = ...;
|
36
|
+
#
|
37
|
+
# duration.seconds = end.seconds - start.seconds;
|
38
|
+
# duration.nanos = end.nanos - start.nanos;
|
39
|
+
#
|
40
|
+
# if (duration.seconds < 0 && duration.nanos > 0) {
|
41
|
+
# duration.seconds += 1;
|
42
|
+
# duration.nanos -= 1000000000;
|
43
|
+
# } else if (duration.seconds > 0 && duration.nanos < 0) {
|
44
|
+
# duration.seconds -= 1;
|
45
|
+
# duration.nanos += 1000000000;
|
46
|
+
# }
|
47
|
+
#
|
48
|
+
# Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
49
|
+
#
|
50
|
+
# Timestamp start = ...;
|
51
|
+
# Duration duration = ...;
|
52
|
+
# Timestamp end = ...;
|
53
|
+
#
|
54
|
+
# end.seconds = start.seconds + duration.seconds;
|
55
|
+
# end.nanos = start.nanos + duration.nanos;
|
56
|
+
#
|
57
|
+
# if (end.nanos < 0) {
|
58
|
+
# end.seconds -= 1;
|
59
|
+
# end.nanos += 1000000000;
|
60
|
+
# } else if (end.nanos >= 1000000000) {
|
61
|
+
# end.seconds += 1;
|
62
|
+
# end.nanos -= 1000000000;
|
63
|
+
# }
|
64
|
+
#
|
65
|
+
# Example 3: Compute Duration from datetime.timedelta in Python.
|
66
|
+
#
|
67
|
+
# td = datetime.timedelta(days=3, minutes=10)
|
68
|
+
# duration = Duration()
|
69
|
+
# duration.FromTimedelta(td)
|
70
|
+
#
|
71
|
+
# # JSON Mapping
|
72
|
+
#
|
73
|
+
# In JSON format, the Duration type is encoded as a string rather than an
|
74
|
+
# object, where the string ends in the suffix "s" (indicating seconds) and
|
75
|
+
# is preceded by the number of seconds, with nanoseconds expressed as
|
76
|
+
# fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
77
|
+
# encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
78
|
+
# be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
79
|
+
# microsecond should be expressed in JSON format as "3.000001s".
|
80
|
+
# @!attribute [rw] seconds
|
81
|
+
# @return [::Integer]
|
82
|
+
# Signed seconds of the span of time. Must be from -315,576,000,000
|
83
|
+
# to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
84
|
+
# 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
85
|
+
# @!attribute [rw] nanos
|
86
|
+
# @return [::Integer]
|
87
|
+
# Signed fractions of a second at nanosecond resolution of the span
|
88
|
+
# of time. Durations less than one second are represented with a 0
|
89
|
+
# `seconds` field and a positive or negative `nanos` field. For durations
|
90
|
+
# of one second or more, a non-zero value for the `nanos` field must be
|
91
|
+
# of the same sign as the `seconds` field. Must be from -999,999,999
|
92
|
+
# to +999,999,999 inclusive.
|
93
|
+
class Duration
|
94
|
+
include ::Google::Protobuf::MessageExts
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
23
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
24
|
+
# or the response type of an API method. For instance:
|
25
|
+
#
|
26
|
+
# service Foo {
|
27
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
|
+
# }
|
29
|
+
class Empty
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|