1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20#[derive(PartialEq,Clone,Default)]
27pub struct OperationProgress {
28 pub progress_percent: i32,
30 pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
31 pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
32 pub unknown_fields: ::protobuf::UnknownFields,
34 pub cached_size: ::protobuf::CachedSize,
35}
36
37impl<'a> ::std::default::Default for &'a OperationProgress {
38 fn default() -> &'a OperationProgress {
39 <OperationProgress as ::protobuf::Message>::default_instance()
40 }
41}
42
43impl OperationProgress {
44 pub fn new() -> OperationProgress {
45 ::std::default::Default::default()
46 }
47
48 pub fn get_progress_percent(&self) -> i32 {
52 self.progress_percent
53 }
54 pub fn clear_progress_percent(&mut self) {
55 self.progress_percent = 0;
56 }
57
58 pub fn set_progress_percent(&mut self, v: i32) {
60 self.progress_percent = v;
61 }
62
63 pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp {
67 self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
68 }
69 pub fn clear_start_time(&mut self) {
70 self.start_time.clear();
71 }
72
73 pub fn has_start_time(&self) -> bool {
74 self.start_time.is_some()
75 }
76
77 pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) {
79 self.start_time = ::protobuf::SingularPtrField::some(v);
80 }
81
82 pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
85 if self.start_time.is_none() {
86 self.start_time.set_default();
87 }
88 self.start_time.as_mut().unwrap()
89 }
90
91 pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp {
93 self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
94 }
95
96 pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp {
100 self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
101 }
102 pub fn clear_end_time(&mut self) {
103 self.end_time.clear();
104 }
105
106 pub fn has_end_time(&self) -> bool {
107 self.end_time.is_some()
108 }
109
110 pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) {
112 self.end_time = ::protobuf::SingularPtrField::some(v);
113 }
114
115 pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
118 if self.end_time.is_none() {
119 self.end_time.set_default();
120 }
121 self.end_time.as_mut().unwrap()
122 }
123
124 pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp {
126 self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
127 }
128}
129
130impl ::protobuf::Message for OperationProgress {
131 fn is_initialized(&self) -> bool {
132 for v in &self.start_time {
133 if !v.is_initialized() {
134 return false;
135 }
136 };
137 for v in &self.end_time {
138 if !v.is_initialized() {
139 return false;
140 }
141 };
142 true
143 }
144
145 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
146 while !is.eof()? {
147 let (field_number, wire_type) = is.read_tag_unpack()?;
148 match field_number {
149 1 => {
150 if wire_type != ::protobuf::wire_format::WireTypeVarint {
151 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
152 }
153 let tmp = is.read_int32()?;
154 self.progress_percent = tmp;
155 },
156 2 => {
157 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?;
158 },
159 3 => {
160 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?;
161 },
162 _ => {
163 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
164 },
165 };
166 }
167 ::std::result::Result::Ok(())
168 }
169
170 #[allow(unused_variables)]
172 fn compute_size(&self) -> u32 {
173 let mut my_size = 0;
174 if self.progress_percent != 0 {
175 my_size += ::protobuf::rt::value_size(1, self.progress_percent, ::protobuf::wire_format::WireTypeVarint);
176 }
177 if let Some(ref v) = self.start_time.as_ref() {
178 let len = v.compute_size();
179 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
180 }
181 if let Some(ref v) = self.end_time.as_ref() {
182 let len = v.compute_size();
183 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
184 }
185 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
186 self.cached_size.set(my_size);
187 my_size
188 }
189
190 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
191 if self.progress_percent != 0 {
192 os.write_int32(1, self.progress_percent)?;
193 }
194 if let Some(ref v) = self.start_time.as_ref() {
195 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
196 os.write_raw_varint32(v.get_cached_size())?;
197 v.write_to_with_cached_sizes(os)?;
198 }
199 if let Some(ref v) = self.end_time.as_ref() {
200 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
201 os.write_raw_varint32(v.get_cached_size())?;
202 v.write_to_with_cached_sizes(os)?;
203 }
204 os.write_unknown_fields(self.get_unknown_fields())?;
205 ::std::result::Result::Ok(())
206 }
207
208 fn get_cached_size(&self) -> u32 {
209 self.cached_size.get()
210 }
211
212 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
213 &self.unknown_fields
214 }
215
216 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
217 &mut self.unknown_fields
218 }
219
220 fn as_any(&self) -> &dyn (::std::any::Any) {
221 self as &dyn (::std::any::Any)
222 }
223 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
224 self as &mut dyn (::std::any::Any)
225 }
226 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
227 self
228 }
229
230 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
231 Self::descriptor_static()
232 }
233
234 fn new() -> OperationProgress {
235 OperationProgress::new()
236 }
237
238 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
239 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
240 descriptor.get(|| {
241 let mut fields = ::std::vec::Vec::new();
242 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
243 "progress_percent",
244 |m: &OperationProgress| { &m.progress_percent },
245 |m: &mut OperationProgress| { &mut m.progress_percent },
246 ));
247 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
248 "start_time",
249 |m: &OperationProgress| { &m.start_time },
250 |m: &mut OperationProgress| { &mut m.start_time },
251 ));
252 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
253 "end_time",
254 |m: &OperationProgress| { &m.end_time },
255 |m: &mut OperationProgress| { &mut m.end_time },
256 ));
257 ::protobuf::reflect::MessageDescriptor::new_pb_name::<OperationProgress>(
258 "OperationProgress",
259 fields,
260 file_descriptor_proto()
261 )
262 })
263 }
264
265 fn default_instance() -> &'static OperationProgress {
266 static instance: ::protobuf::rt::LazyV2<OperationProgress> = ::protobuf::rt::LazyV2::INIT;
267 instance.get(OperationProgress::new)
268 }
269}
270
271impl ::protobuf::Clear for OperationProgress {
272 fn clear(&mut self) {
273 self.progress_percent = 0;
274 self.start_time.clear();
275 self.end_time.clear();
276 self.unknown_fields.clear();
277 }
278}
279
280impl ::std::fmt::Debug for OperationProgress {
281 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
282 ::protobuf::text_format::fmt(self, f)
283 }
284}
285
286impl ::protobuf::reflect::ProtobufValue for OperationProgress {
287 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
288 ::protobuf::reflect::ReflectValueRef::Message(self)
289 }
290}
291
292#[derive(PartialEq,Clone,Default)]
293pub struct EncryptionConfig {
294 pub kms_key_name: ::std::string::String,
296 pub unknown_fields: ::protobuf::UnknownFields,
298 pub cached_size: ::protobuf::CachedSize,
299}
300
301impl<'a> ::std::default::Default for &'a EncryptionConfig {
302 fn default() -> &'a EncryptionConfig {
303 <EncryptionConfig as ::protobuf::Message>::default_instance()
304 }
305}
306
307impl EncryptionConfig {
308 pub fn new() -> EncryptionConfig {
309 ::std::default::Default::default()
310 }
311
312 pub fn get_kms_key_name(&self) -> &str {
316 &self.kms_key_name
317 }
318 pub fn clear_kms_key_name(&mut self) {
319 self.kms_key_name.clear();
320 }
321
322 pub fn set_kms_key_name(&mut self, v: ::std::string::String) {
324 self.kms_key_name = v;
325 }
326
327 pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String {
330 &mut self.kms_key_name
331 }
332
333 pub fn take_kms_key_name(&mut self) -> ::std::string::String {
335 ::std::mem::replace(&mut self.kms_key_name, ::std::string::String::new())
336 }
337}
338
339impl ::protobuf::Message for EncryptionConfig {
340 fn is_initialized(&self) -> bool {
341 true
342 }
343
344 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
345 while !is.eof()? {
346 let (field_number, wire_type) = is.read_tag_unpack()?;
347 match field_number {
348 2 => {
349 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?;
350 },
351 _ => {
352 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
353 },
354 };
355 }
356 ::std::result::Result::Ok(())
357 }
358
359 #[allow(unused_variables)]
361 fn compute_size(&self) -> u32 {
362 let mut my_size = 0;
363 if !self.kms_key_name.is_empty() {
364 my_size += ::protobuf::rt::string_size(2, &self.kms_key_name);
365 }
366 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
367 self.cached_size.set(my_size);
368 my_size
369 }
370
371 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
372 if !self.kms_key_name.is_empty() {
373 os.write_string(2, &self.kms_key_name)?;
374 }
375 os.write_unknown_fields(self.get_unknown_fields())?;
376 ::std::result::Result::Ok(())
377 }
378
379 fn get_cached_size(&self) -> u32 {
380 self.cached_size.get()
381 }
382
383 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
384 &self.unknown_fields
385 }
386
387 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
388 &mut self.unknown_fields
389 }
390
391 fn as_any(&self) -> &dyn (::std::any::Any) {
392 self as &dyn (::std::any::Any)
393 }
394 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
395 self as &mut dyn (::std::any::Any)
396 }
397 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
398 self
399 }
400
401 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
402 Self::descriptor_static()
403 }
404
405 fn new() -> EncryptionConfig {
406 EncryptionConfig::new()
407 }
408
409 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
410 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
411 descriptor.get(|| {
412 let mut fields = ::std::vec::Vec::new();
413 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
414 "kms_key_name",
415 |m: &EncryptionConfig| { &m.kms_key_name },
416 |m: &mut EncryptionConfig| { &mut m.kms_key_name },
417 ));
418 ::protobuf::reflect::MessageDescriptor::new_pb_name::<EncryptionConfig>(
419 "EncryptionConfig",
420 fields,
421 file_descriptor_proto()
422 )
423 })
424 }
425
426 fn default_instance() -> &'static EncryptionConfig {
427 static instance: ::protobuf::rt::LazyV2<EncryptionConfig> = ::protobuf::rt::LazyV2::INIT;
428 instance.get(EncryptionConfig::new)
429 }
430}
431
432impl ::protobuf::Clear for EncryptionConfig {
433 fn clear(&mut self) {
434 self.kms_key_name.clear();
435 self.unknown_fields.clear();
436 }
437}
438
439impl ::std::fmt::Debug for EncryptionConfig {
440 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
441 ::protobuf::text_format::fmt(self, f)
442 }
443}
444
445impl ::protobuf::reflect::ProtobufValue for EncryptionConfig {
446 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
447 ::protobuf::reflect::ReflectValueRef::Message(self)
448 }
449}
450
451#[derive(PartialEq,Clone,Default)]
452pub struct EncryptionInfo {
453 pub encryption_type: EncryptionInfo_Type,
455 pub encryption_status: ::protobuf::SingularPtrField<super::status::Status>,
456 pub kms_key_version: ::std::string::String,
457 pub unknown_fields: ::protobuf::UnknownFields,
459 pub cached_size: ::protobuf::CachedSize,
460}
461
462impl<'a> ::std::default::Default for &'a EncryptionInfo {
463 fn default() -> &'a EncryptionInfo {
464 <EncryptionInfo as ::protobuf::Message>::default_instance()
465 }
466}
467
468impl EncryptionInfo {
469 pub fn new() -> EncryptionInfo {
470 ::std::default::Default::default()
471 }
472
473 pub fn get_encryption_type(&self) -> EncryptionInfo_Type {
477 self.encryption_type
478 }
479 pub fn clear_encryption_type(&mut self) {
480 self.encryption_type = EncryptionInfo_Type::TYPE_UNSPECIFIED;
481 }
482
483 pub fn set_encryption_type(&mut self, v: EncryptionInfo_Type) {
485 self.encryption_type = v;
486 }
487
488 pub fn get_encryption_status(&self) -> &super::status::Status {
492 self.encryption_status.as_ref().unwrap_or_else(|| <super::status::Status as ::protobuf::Message>::default_instance())
493 }
494 pub fn clear_encryption_status(&mut self) {
495 self.encryption_status.clear();
496 }
497
498 pub fn has_encryption_status(&self) -> bool {
499 self.encryption_status.is_some()
500 }
501
502 pub fn set_encryption_status(&mut self, v: super::status::Status) {
504 self.encryption_status = ::protobuf::SingularPtrField::some(v);
505 }
506
507 pub fn mut_encryption_status(&mut self) -> &mut super::status::Status {
510 if self.encryption_status.is_none() {
511 self.encryption_status.set_default();
512 }
513 self.encryption_status.as_mut().unwrap()
514 }
515
516 pub fn take_encryption_status(&mut self) -> super::status::Status {
518 self.encryption_status.take().unwrap_or_else(|| super::status::Status::new())
519 }
520
521 pub fn get_kms_key_version(&self) -> &str {
525 &self.kms_key_version
526 }
527 pub fn clear_kms_key_version(&mut self) {
528 self.kms_key_version.clear();
529 }
530
531 pub fn set_kms_key_version(&mut self, v: ::std::string::String) {
533 self.kms_key_version = v;
534 }
535
536 pub fn mut_kms_key_version(&mut self) -> &mut ::std::string::String {
539 &mut self.kms_key_version
540 }
541
542 pub fn take_kms_key_version(&mut self) -> ::std::string::String {
544 ::std::mem::replace(&mut self.kms_key_version, ::std::string::String::new())
545 }
546}
547
548impl ::protobuf::Message for EncryptionInfo {
549 fn is_initialized(&self) -> bool {
550 for v in &self.encryption_status {
551 if !v.is_initialized() {
552 return false;
553 }
554 };
555 true
556 }
557
558 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
559 while !is.eof()? {
560 let (field_number, wire_type) = is.read_tag_unpack()?;
561 match field_number {
562 3 => {
563 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encryption_type, 3, &mut self.unknown_fields)?
564 },
565 4 => {
566 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_status)?;
567 },
568 2 => {
569 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_version)?;
570 },
571 _ => {
572 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
573 },
574 };
575 }
576 ::std::result::Result::Ok(())
577 }
578
579 #[allow(unused_variables)]
581 fn compute_size(&self) -> u32 {
582 let mut my_size = 0;
583 if self.encryption_type != EncryptionInfo_Type::TYPE_UNSPECIFIED {
584 my_size += ::protobuf::rt::enum_size(3, self.encryption_type);
585 }
586 if let Some(ref v) = self.encryption_status.as_ref() {
587 let len = v.compute_size();
588 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
589 }
590 if !self.kms_key_version.is_empty() {
591 my_size += ::protobuf::rt::string_size(2, &self.kms_key_version);
592 }
593 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
594 self.cached_size.set(my_size);
595 my_size
596 }
597
598 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
599 if self.encryption_type != EncryptionInfo_Type::TYPE_UNSPECIFIED {
600 os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.encryption_type))?;
601 }
602 if let Some(ref v) = self.encryption_status.as_ref() {
603 os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
604 os.write_raw_varint32(v.get_cached_size())?;
605 v.write_to_with_cached_sizes(os)?;
606 }
607 if !self.kms_key_version.is_empty() {
608 os.write_string(2, &self.kms_key_version)?;
609 }
610 os.write_unknown_fields(self.get_unknown_fields())?;
611 ::std::result::Result::Ok(())
612 }
613
614 fn get_cached_size(&self) -> u32 {
615 self.cached_size.get()
616 }
617
618 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
619 &self.unknown_fields
620 }
621
622 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
623 &mut self.unknown_fields
624 }
625
626 fn as_any(&self) -> &dyn (::std::any::Any) {
627 self as &dyn (::std::any::Any)
628 }
629 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
630 self as &mut dyn (::std::any::Any)
631 }
632 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
633 self
634 }
635
636 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
637 Self::descriptor_static()
638 }
639
640 fn new() -> EncryptionInfo {
641 EncryptionInfo::new()
642 }
643
644 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
645 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
646 descriptor.get(|| {
647 let mut fields = ::std::vec::Vec::new();
648 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<EncryptionInfo_Type>>(
649 "encryption_type",
650 |m: &EncryptionInfo| { &m.encryption_type },
651 |m: &mut EncryptionInfo| { &mut m.encryption_type },
652 ));
653 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::status::Status>>(
654 "encryption_status",
655 |m: &EncryptionInfo| { &m.encryption_status },
656 |m: &mut EncryptionInfo| { &mut m.encryption_status },
657 ));
658 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
659 "kms_key_version",
660 |m: &EncryptionInfo| { &m.kms_key_version },
661 |m: &mut EncryptionInfo| { &mut m.kms_key_version },
662 ));
663 ::protobuf::reflect::MessageDescriptor::new_pb_name::<EncryptionInfo>(
664 "EncryptionInfo",
665 fields,
666 file_descriptor_proto()
667 )
668 })
669 }
670
671 fn default_instance() -> &'static EncryptionInfo {
672 static instance: ::protobuf::rt::LazyV2<EncryptionInfo> = ::protobuf::rt::LazyV2::INIT;
673 instance.get(EncryptionInfo::new)
674 }
675}
676
677impl ::protobuf::Clear for EncryptionInfo {
678 fn clear(&mut self) {
679 self.encryption_type = EncryptionInfo_Type::TYPE_UNSPECIFIED;
680 self.encryption_status.clear();
681 self.kms_key_version.clear();
682 self.unknown_fields.clear();
683 }
684}
685
686impl ::std::fmt::Debug for EncryptionInfo {
687 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
688 ::protobuf::text_format::fmt(self, f)
689 }
690}
691
692impl ::protobuf::reflect::ProtobufValue for EncryptionInfo {
693 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
694 ::protobuf::reflect::ReflectValueRef::Message(self)
695 }
696}
697
698#[derive(Clone,PartialEq,Eq,Debug,Hash)]
699pub enum EncryptionInfo_Type {
700 TYPE_UNSPECIFIED = 0,
701 GOOGLE_DEFAULT_ENCRYPTION = 1,
702 CUSTOMER_MANAGED_ENCRYPTION = 2,
703}
704
705impl ::protobuf::ProtobufEnum for EncryptionInfo_Type {
706 fn value(&self) -> i32 {
707 *self as i32
708 }
709
710 fn from_i32(value: i32) -> ::std::option::Option<EncryptionInfo_Type> {
711 match value {
712 0 => ::std::option::Option::Some(EncryptionInfo_Type::TYPE_UNSPECIFIED),
713 1 => ::std::option::Option::Some(EncryptionInfo_Type::GOOGLE_DEFAULT_ENCRYPTION),
714 2 => ::std::option::Option::Some(EncryptionInfo_Type::CUSTOMER_MANAGED_ENCRYPTION),
715 _ => ::std::option::Option::None
716 }
717 }
718
719 fn values() -> &'static [Self] {
720 static values: &'static [EncryptionInfo_Type] = &[
721 EncryptionInfo_Type::TYPE_UNSPECIFIED,
722 EncryptionInfo_Type::GOOGLE_DEFAULT_ENCRYPTION,
723 EncryptionInfo_Type::CUSTOMER_MANAGED_ENCRYPTION,
724 ];
725 values
726 }
727
728 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
729 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
730 descriptor.get(|| {
731 ::protobuf::reflect::EnumDescriptor::new_pb_name::<EncryptionInfo_Type>("EncryptionInfo.Type", file_descriptor_proto())
732 })
733 }
734}
735
736impl ::std::marker::Copy for EncryptionInfo_Type {
737}
738
739impl ::std::default::Default for EncryptionInfo_Type {
740 fn default() -> Self {
741 EncryptionInfo_Type::TYPE_UNSPECIFIED
742 }
743}
744
745impl ::protobuf::reflect::ProtobufValue for EncryptionInfo_Type {
746 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
747 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
748 }
749}
750
751#[derive(Clone,PartialEq,Eq,Debug,Hash)]
752pub enum DatabaseDialect {
753 DATABASE_DIALECT_UNSPECIFIED = 0,
754 GOOGLE_STANDARD_SQL = 1,
755 POSTGRESQL = 2,
756}
757
758impl ::protobuf::ProtobufEnum for DatabaseDialect {
759 fn value(&self) -> i32 {
760 *self as i32
761 }
762
763 fn from_i32(value: i32) -> ::std::option::Option<DatabaseDialect> {
764 match value {
765 0 => ::std::option::Option::Some(DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED),
766 1 => ::std::option::Option::Some(DatabaseDialect::GOOGLE_STANDARD_SQL),
767 2 => ::std::option::Option::Some(DatabaseDialect::POSTGRESQL),
768 _ => ::std::option::Option::None
769 }
770 }
771
772 fn values() -> &'static [Self] {
773 static values: &'static [DatabaseDialect] = &[
774 DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED,
775 DatabaseDialect::GOOGLE_STANDARD_SQL,
776 DatabaseDialect::POSTGRESQL,
777 ];
778 values
779 }
780
781 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
782 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
783 descriptor.get(|| {
784 ::protobuf::reflect::EnumDescriptor::new_pb_name::<DatabaseDialect>("DatabaseDialect", file_descriptor_proto())
785 })
786 }
787}
788
789impl ::std::marker::Copy for DatabaseDialect {
790}
791
792impl ::std::default::Default for DatabaseDialect {
793 fn default() -> Self {
794 DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED
795 }
796}
797
798impl ::protobuf::reflect::ProtobufValue for DatabaseDialect {
799 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
800 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
801 }
802}
803
804static file_descriptor_proto_data: &'static [u8] = b"\
805 \n-google/spanner/admin/database/v1/common.proto\x12\x20google.spanner.a\
806 dmin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/ap\
807 i/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rp\
808 c/status.proto\"\xb0\x01\n\x11OperationProgress\x12)\n\x10progress_perce\
809 nt\x18\x01\x20\x01(\x05R\x0fprogressPercent\x129\n\nstart_time\x18\x02\
810 \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_t\
811 ime\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\"\\\
812 \n\x10EncryptionConfig\x12H\n\x0ckms_key_name\x18\x02\x20\x01(\tR\nkmsKe\
813 yNameB&\xfaA#\n!cloudkms.googleapis.com/CryptoKey\"\xf3\x02\n\x0eEncrypt\
814 ionInfo\x12c\n\x0fencryption_type\x18\x03\x20\x01(\x0e25.google.spanner.\
815 admin.database.v1.EncryptionInfo.TypeR\x0eencryptionTypeB\x03\xe0A\x03\
816 \x12D\n\x11encryption_status\x18\x04\x20\x01(\x0b2\x12.google.rpc.Status\
817 R\x10encryptionStatusB\x03\xe0A\x03\x12X\n\x0fkms_key_version\x18\x02\
818 \x20\x01(\tR\rkmsKeyVersionB0\xfaA*\n(cloudkms.googleapis.com/CryptoKeyV\
819 ersion\xe0A\x03\"\\\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\
820 \x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1bCUSTOMER_MANAGE\
821 D_ENCRYPTION\x10\x02*\\\n\x0fDatabaseDialect\x12\x20\n\x1cDATABASE_DIALE\
822 CT_UNSPECIFIED\x10\0\x12\x17\n\x13GOOGLE_STANDARD_SQL\x10\x01\x12\x0e\n\
823 \nPOSTGRESQL\x10\x02B\xa2\x04\n$com.google.spanner.admin.database.v1B\
824 \x0bCommonProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/d\
825 atabasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\
826 \x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::\
827 Spanner::Admin::Database::V1\xeaAx\n!cloudkms.googleapis.com/CryptoKey\
828 \x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoK\
829 eys/{crypto_key}\xeaA\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\
830 \x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoK\
831 eys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}J\xee\x19\n\x06\
832 \x12\x04\x0e\0o\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\
833 pyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apac\
834 he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\
835 y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\
836 \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\
837 \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\
838 LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\
839 \x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\
840 \x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20B\
841 ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\
842 D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\
843 for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\
844 \x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\
845 \x10\0)\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\
846 \n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0!\n\x08\
847 \n\x01\x08\x12\x03\x17\0C\n\t\n\x02\x08%\x12\x03\x17\0C\n\x08\n\x01\x08\
848 \x12\x03\x18\0]\n\t\n\x02\x08\x0b\x12\x03\x18\0]\n\x08\n\x01\x08\x12\x03\
849 \x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\0,\
850 \n\t\n\x02\x08\x08\x12\x03\x1a\0,\n\x08\n\x01\x08\x12\x03\x1b\0=\n\t\n\
851 \x02\x08\x01\x12\x03\x1b\0=\n\x08\n\x01\x08\x12\x03\x1c\0E\n\t\n\x02\x08\
852 )\x12\x03\x1c\0E\n\x08\n\x01\x08\x12\x03\x1d\0D\n\t\n\x02\x08-\x12\x03\
853 \x1d\0D\n\t\n\x01\x08\x12\x04\x1e\0!\x02\n\x0c\n\x04\x08\x9d\x08\0\x12\
854 \x04\x1e\0!\x02\n\t\n\x01\x08\x12\x04\"\0%\x02\n\x0c\n\x04\x08\x9d\x08\
855 \x01\x12\x04\"\0%\x02\nd\n\x02\x04\0\x12\x04)\04\x01\x1aX\x20Encapsulate\
856 s\x20progress\x20related\x20information\x20for\x20a\x20Cloud\x20Spanner\
857 \x20long\n\x20running\x20operation.\n\n\n\n\x03\x04\0\x01\x12\x03)\x08\
858 \x19\n\\\n\x04\x04\0\x02\0\x12\x03,\x02\x1d\x1aO\x20Percent\x20completio\
859 n\x20of\x20the\x20operation.\n\x20Values\x20are\x20between\x200\x20and\
860 \x20100\x20inclusive.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03,\x02\x07\n\
861 \x0c\n\x05\x04\0\x02\0\x01\x12\x03,\x08\x18\n\x0c\n\x05\x04\0\x02\0\x03\
862 \x12\x03,\x1b\x1c\n-\n\x04\x04\0\x02\x01\x12\x03/\x02+\x1a\x20\x20Time\
863 \x20the\x20request\x20was\x20received.\n\n\x0c\n\x05\x04\0\x02\x01\x06\
864 \x12\x03/\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03/\x1c&\n\x0c\n\
865 \x05\x04\0\x02\x01\x03\x12\x03/)*\n^\n\x04\x04\0\x02\x02\x12\x033\x02)\
866 \x1aQ\x20If\x20set,\x20the\x20time\x20at\x20which\x20this\x20operation\
867 \x20failed\x20or\x20was\x20completed\n\x20successfully.\n\n\x0c\n\x05\
868 \x04\0\x02\x02\x06\x12\x033\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\
869 \x033\x1c$\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x033'(\nD\n\x02\x04\x01\x12\
870 \x047\0>\x01\x1a8\x20Encryption\x20configuration\x20for\x20a\x20Cloud\
871 \x20Spanner\x20database.\n\n\n\n\x03\x04\x01\x01\x12\x037\x08\x18\n\xcb\
872 \x01\n\x04\x04\x01\x02\0\x12\x04;\x02=\x1e\x1a\xbc\x01\x20The\x20Cloud\
873 \x20KMS\x20key\x20to\x20be\x20used\x20for\x20encrypting\x20and\x20decryp\
874 ting\n\x20the\x20database.\x20Values\x20are\x20of\x20the\x20form\n\x20`p\
875 rojects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<k\
876 ms_key_name>`.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03;\x02\x08\n\x0c\n\
877 \x05\x04\x01\x02\0\x01\x12\x03;\t\x15\n\x0c\n\x05\x04\x01\x02\0\x03\x12\
878 \x03;\x18\x19\n\r\n\x05\x04\x01\x02\0\x08\x12\x04;\x1a=\x1d\n\x0f\n\x07\
879 \x04\x01\x02\0\x08\x9f\x08\x12\x04;\x1b=\x1c\nL\n\x02\x04\x02\x12\x04A\0\
880 b\x01\x1a@\x20Encryption\x20information\x20for\x20a\x20Cloud\x20Spanner\
881 \x20database\x20or\x20backup.\n\n\n\n\x03\x04\x02\x01\x12\x03A\x08\x16\n\
882 *\n\x04\x04\x02\x04\0\x12\x04C\x02P\x03\x1a\x1c\x20Possible\x20encryptio\
883 n\x20types.\n\n\x0c\n\x05\x04\x02\x04\0\x01\x12\x03C\x07\x0b\nZ\n\x06\
884 \x04\x02\x04\0\x02\0\x12\x03E\x04\x19\x1aK\x20Encryption\x20type\x20was\
885 \x20not\x20specified,\x20though\x20data\x20at\x20rest\x20remains\x20encr\
886 ypted.\n\n\x0e\n\x07\x04\x02\x04\0\x02\0\x01\x12\x03E\x04\x14\n\x0e\n\
887 \x07\x04\x02\x04\0\x02\0\x02\x12\x03E\x17\x18\n\xa4\x01\n\x06\x04\x02\
888 \x04\0\x02\x01\x12\x03J\x04\"\x1a\x94\x01\x20The\x20data\x20is\x20encryp\
889 ted\x20at\x20rest\x20with\x20a\x20key\x20that\x20is\n\x20fully\x20manage\
890 d\x20by\x20Google.\x20No\x20key\x20version\x20or\x20status\x20will\x20be\
891 \x20populated.\n\x20This\x20is\x20the\x20default\x20state.\n\n\x0e\n\x07\
892 \x04\x02\x04\0\x02\x01\x01\x12\x03J\x04\x1d\n\x0e\n\x07\x04\x02\x04\0\
893 \x02\x01\x02\x12\x03J\x20!\n\xcb\x01\n\x06\x04\x02\x04\0\x02\x02\x12\x03\
894 O\x04$\x1a\xbb\x01\x20The\x20data\x20is\x20encrypted\x20at\x20rest\x20wi\
895 th\x20a\x20key\x20that\x20is\n\x20managed\x20by\x20the\x20customer.\x20T\
896 he\x20active\x20version\x20of\x20the\x20key.\x20`kms_key_version`\n\x20w\
897 ill\x20be\x20populated,\x20and\x20`encryption_status`\x20may\x20be\x20po\
898 pulated.\n\n\x0e\n\x07\x04\x02\x04\0\x02\x02\x01\x12\x03O\x04\x1f\n\x0e\
899 \n\x07\x04\x02\x04\0\x02\x02\x02\x12\x03O\"#\n3\n\x04\x04\x02\x02\0\x12\
900 \x03S\x02G\x1a&\x20Output\x20only.\x20The\x20type\x20of\x20encryption.\n\
901 \n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03S\x02\x06\n\x0c\n\x05\x04\x02\x02\
902 \0\x01\x12\x03S\x07\x16\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03S\x19\x1a\n\
903 \x0c\n\x05\x04\x02\x02\0\x08\x12\x03S\x1bF\n\x0f\n\x08\x04\x02\x02\0\x08\
904 \x9c\x08\0\x12\x03S\x1cE\n\xbe\x01\n\x04\x04\x02\x02\x01\x12\x03X\x02V\
905 \x1a\xb0\x01\x20Output\x20only.\x20If\x20present,\x20the\x20status\x20of\
906 \x20a\x20recent\x20encrypt/decrypt\x20call\x20on\x20underlying\x20data\n\
907 \x20for\x20this\x20database\x20or\x20backup.\x20Regardless\x20of\x20stat\
908 us,\x20data\x20is\x20always\x20encrypted\n\x20at\x20rest.\n\n\x0c\n\x05\
909 \x04\x02\x02\x01\x06\x12\x03X\x02\x13\n\x0c\n\x05\x04\x02\x02\x01\x01\
910 \x12\x03X\x14%\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03X()\n\x0c\n\x05\
911 \x04\x02\x02\x01\x08\x12\x03X*U\n\x0f\n\x08\x04\x02\x02\x01\x08\x9c\x08\
912 \0\x12\x03X+T\nk\n\x04\x04\x02\x02\x02\x12\x04\\\x02a\x04\x1a]\x20Output\
913 \x20only.\x20A\x20Cloud\x20KMS\x20key\x20version\x20that\x20is\x20being\
914 \x20used\x20to\x20protect\x20the\x20database\x20or\n\x20backup.\n\n\x0c\
915 \n\x05\x04\x02\x02\x02\x05\x12\x03\\\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\
916 \x01\x12\x03\\\t\x18\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\\\x1b\x1c\n\
917 \r\n\x05\x04\x02\x02\x02\x08\x12\x04\\\x1da\x03\n\x0f\n\x08\x04\x02\x02\
918 \x02\x08\x9c\x08\0\x12\x03]\x04-\n\x0f\n\x07\x04\x02\x02\x02\x08\x9f\x08\
919 \x12\x04^\x04`\x05\n7\n\x02\x05\0\x12\x04e\0o\x01\x1a+\x20Indicates\x20t\
920 he\x20dialect\x20type\x20of\x20a\x20database.\n\n\n\n\x03\x05\0\x01\x12\
921 \x03e\x05\x14\nf\n\x04\x05\0\x02\0\x12\x03h\x02#\x1aY\x20Default\x20valu\
922 e.\x20This\x20value\x20will\x20create\x20a\x20database\x20with\x20the\n\
923 \x20GOOGLE_STANDARD_SQL\x20dialect.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\
924 \x03h\x02\x1e\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03h!\"\n#\n\x04\x05\0\x02\
925 \x01\x12\x03k\x02\x1a\x1a\x16\x20Google\x20standard\x20SQL.\n\n\x0c\n\
926 \x05\x05\0\x02\x01\x01\x12\x03k\x02\x15\n\x0c\n\x05\x05\0\x02\x01\x02\
927 \x12\x03k\x18\x19\n(\n\x04\x05\0\x02\x02\x12\x03n\x02\x11\x1a\x1b\x20Pos\
928 tgreSQL\x20supported\x20SQL.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03n\
929 \x02\x0c\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03n\x0f\x10b\x06proto3\
930";
931
932static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
933
934fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
935 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
936}
937
938pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
939 file_descriptor_proto_lazy.get(|| {
940 parse_descriptor_proto()
941 })
942}