|
@@ -0,0 +1,978 @@
|
|
|
+// This file is generated by rust-protobuf 2.25.2. Do not edit
|
|
|
+// @generated
|
|
|
+
|
|
|
+// https://github.com/rust-lang/rust-clippy/issues/702
|
|
|
+#![allow(unknown_lints)]
|
|
|
+#![allow(clippy::all)]
|
|
|
+
|
|
|
+#![allow(unused_attributes)]
|
|
|
+#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
+
|
|
|
+#![allow(box_pointers)]
|
|
|
+#![allow(dead_code)]
|
|
|
+#![allow(missing_docs)]
|
|
|
+#![allow(non_camel_case_types)]
|
|
|
+#![allow(non_snake_case)]
|
|
|
+#![allow(non_upper_case_globals)]
|
|
|
+#![allow(trivial_casts)]
|
|
|
+#![allow(unused_imports)]
|
|
|
+#![allow(unused_results)]
|
|
|
+//! Generated file from `type_option.proto`
|
|
|
+
|
|
|
+/// Generated files are compatible only with the same version
|
|
|
+/// of protobuf runtime.
|
|
|
+// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_25_2;
|
|
|
+
|
|
|
+#[derive(PartialEq,Clone,Default)]
|
|
|
+pub struct SelectOption {
|
|
|
+ // message fields
|
|
|
+ pub id: ::std::string::String,
|
|
|
+ pub name: ::std::string::String,
|
|
|
+ pub color: SelectOptionColor,
|
|
|
+ // special fields
|
|
|
+ pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
+ pub cached_size: ::protobuf::CachedSize,
|
|
|
+}
|
|
|
+
|
|
|
+impl<'a> ::std::default::Default for &'a SelectOption {
|
|
|
+ fn default() -> &'a SelectOption {
|
|
|
+ <SelectOption as ::protobuf::Message>::default_instance()
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl SelectOption {
|
|
|
+ pub fn new() -> SelectOption {
|
|
|
+ ::std::default::Default::default()
|
|
|
+ }
|
|
|
+
|
|
|
+ // string id = 1;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_id(&self) -> &str {
|
|
|
+ &self.id
|
|
|
+ }
|
|
|
+ pub fn clear_id(&mut self) {
|
|
|
+ self.id.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_id(&mut self, v: ::std::string::String) {
|
|
|
+ self.id = v;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ // If field is not initialized, it is initialized with default value first.
|
|
|
+ pub fn mut_id(&mut self) -> &mut ::std::string::String {
|
|
|
+ &mut self.id
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_id(&mut self) -> ::std::string::String {
|
|
|
+ ::std::mem::replace(&mut self.id, ::std::string::String::new())
|
|
|
+ }
|
|
|
+
|
|
|
+ // string name = 2;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_name(&self) -> &str {
|
|
|
+ &self.name
|
|
|
+ }
|
|
|
+ pub fn clear_name(&mut self) {
|
|
|
+ self.name.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_name(&mut self, v: ::std::string::String) {
|
|
|
+ self.name = v;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ // If field is not initialized, it is initialized with default value first.
|
|
|
+ pub fn mut_name(&mut self) -> &mut ::std::string::String {
|
|
|
+ &mut self.name
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_name(&mut self) -> ::std::string::String {
|
|
|
+ ::std::mem::replace(&mut self.name, ::std::string::String::new())
|
|
|
+ }
|
|
|
+
|
|
|
+ // .SelectOptionColor color = 3;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_color(&self) -> SelectOptionColor {
|
|
|
+ self.color
|
|
|
+ }
|
|
|
+ pub fn clear_color(&mut self) {
|
|
|
+ self.color = SelectOptionColor::Purple;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_color(&mut self, v: SelectOptionColor) {
|
|
|
+ self.color = v;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::Message for SelectOption {
|
|
|
+ fn is_initialized(&self) -> bool {
|
|
|
+ true
|
|
|
+ }
|
|
|
+
|
|
|
+ fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
+ while !is.eof()? {
|
|
|
+ let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
+ match field_number {
|
|
|
+ 1 => {
|
|
|
+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
|
|
|
+ },
|
|
|
+ 2 => {
|
|
|
+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
|
|
|
+ },
|
|
|
+ 3 => {
|
|
|
+ ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.color, 3, &mut self.unknown_fields)?
|
|
|
+ },
|
|
|
+ _ => {
|
|
|
+ ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
|
+ },
|
|
|
+ };
|
|
|
+ }
|
|
|
+ ::std::result::Result::Ok(())
|
|
|
+ }
|
|
|
+
|
|
|
+ // Compute sizes of nested messages
|
|
|
+ #[allow(unused_variables)]
|
|
|
+ fn compute_size(&self) -> u32 {
|
|
|
+ let mut my_size = 0;
|
|
|
+ if !self.id.is_empty() {
|
|
|
+ my_size += ::protobuf::rt::string_size(1, &self.id);
|
|
|
+ }
|
|
|
+ if !self.name.is_empty() {
|
|
|
+ my_size += ::protobuf::rt::string_size(2, &self.name);
|
|
|
+ }
|
|
|
+ if self.color != SelectOptionColor::Purple {
|
|
|
+ my_size += ::protobuf::rt::enum_size(3, self.color);
|
|
|
+ }
|
|
|
+ my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
|
|
|
+ self.cached_size.set(my_size);
|
|
|
+ my_size
|
|
|
+ }
|
|
|
+
|
|
|
+ fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
+ if !self.id.is_empty() {
|
|
|
+ os.write_string(1, &self.id)?;
|
|
|
+ }
|
|
|
+ if !self.name.is_empty() {
|
|
|
+ os.write_string(2, &self.name)?;
|
|
|
+ }
|
|
|
+ if self.color != SelectOptionColor::Purple {
|
|
|
+ os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.color))?;
|
|
|
+ }
|
|
|
+ os.write_unknown_fields(self.get_unknown_fields())?;
|
|
|
+ ::std::result::Result::Ok(())
|
|
|
+ }
|
|
|
+
|
|
|
+ fn get_cached_size(&self) -> u32 {
|
|
|
+ self.cached_size.get()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
|
|
|
+ &self.unknown_fields
|
|
|
+ }
|
|
|
+
|
|
|
+ fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
|
|
|
+ &mut self.unknown_fields
|
|
|
+ }
|
|
|
+
|
|
|
+ fn as_any(&self) -> &dyn (::std::any::Any) {
|
|
|
+ self as &dyn (::std::any::Any)
|
|
|
+ }
|
|
|
+ fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
|
|
|
+ self as &mut dyn (::std::any::Any)
|
|
|
+ }
|
|
|
+ fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
|
|
|
+ self
|
|
|
+ }
|
|
|
+
|
|
|
+ fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
+ Self::descriptor_static()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn new() -> SelectOption {
|
|
|
+ SelectOption::new()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
+ static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+ descriptor.get(|| {
|
|
|
+ let mut fields = ::std::vec::Vec::new();
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
+ "id",
|
|
|
+ |m: &SelectOption| { &m.id },
|
|
|
+ |m: &mut SelectOption| { &mut m.id },
|
|
|
+ ));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
+ "name",
|
|
|
+ |m: &SelectOption| { &m.name },
|
|
|
+ |m: &mut SelectOption| { &mut m.name },
|
|
|
+ ));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<SelectOptionColor>>(
|
|
|
+ "color",
|
|
|
+ |m: &SelectOption| { &m.color },
|
|
|
+ |m: &mut SelectOption| { &mut m.color },
|
|
|
+ ));
|
|
|
+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<SelectOption>(
|
|
|
+ "SelectOption",
|
|
|
+ fields,
|
|
|
+ file_descriptor_proto()
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ fn default_instance() -> &'static SelectOption {
|
|
|
+ static instance: ::protobuf::rt::LazyV2<SelectOption> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+ instance.get(SelectOption::new)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::Clear for SelectOption {
|
|
|
+ fn clear(&mut self) {
|
|
|
+ self.id.clear();
|
|
|
+ self.name.clear();
|
|
|
+ self.color = SelectOptionColor::Purple;
|
|
|
+ self.unknown_fields.clear();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::std::fmt::Debug for SelectOption {
|
|
|
+ fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
+ ::protobuf::text_format::fmt(self, f)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::reflect::ProtobufValue for SelectOption {
|
|
|
+ fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
+ ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+#[derive(PartialEq,Clone,Default)]
|
|
|
+pub struct SelectOptionCellChangesetPayload {
|
|
|
+ // message fields
|
|
|
+ pub grid_id: ::std::string::String,
|
|
|
+ pub row_id: ::std::string::String,
|
|
|
+ pub field_id: ::std::string::String,
|
|
|
+ // message oneof groups
|
|
|
+ pub one_of_insert_option_id: ::std::option::Option<SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id>,
|
|
|
+ pub one_of_delete_option_id: ::std::option::Option<SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id>,
|
|
|
+ // special fields
|
|
|
+ pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
+ pub cached_size: ::protobuf::CachedSize,
|
|
|
+}
|
|
|
+
|
|
|
+impl<'a> ::std::default::Default for &'a SelectOptionCellChangesetPayload {
|
|
|
+ fn default() -> &'a SelectOptionCellChangesetPayload {
|
|
|
+ <SelectOptionCellChangesetPayload as ::protobuf::Message>::default_instance()
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+#[derive(Clone,PartialEq,Debug)]
|
|
|
+pub enum SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id {
|
|
|
+ insert_option_id(::std::string::String),
|
|
|
+}
|
|
|
+
|
|
|
+#[derive(Clone,PartialEq,Debug)]
|
|
|
+pub enum SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id {
|
|
|
+ delete_option_id(::std::string::String),
|
|
|
+}
|
|
|
+
|
|
|
+impl SelectOptionCellChangesetPayload {
|
|
|
+ pub fn new() -> SelectOptionCellChangesetPayload {
|
|
|
+ ::std::default::Default::default()
|
|
|
+ }
|
|
|
+
|
|
|
+ // string grid_id = 1;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_grid_id(&self) -> &str {
|
|
|
+ &self.grid_id
|
|
|
+ }
|
|
|
+ pub fn clear_grid_id(&mut self) {
|
|
|
+ self.grid_id.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_grid_id(&mut self, v: ::std::string::String) {
|
|
|
+ self.grid_id = v;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ // If field is not initialized, it is initialized with default value first.
|
|
|
+ pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
|
|
|
+ &mut self.grid_id
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_grid_id(&mut self) -> ::std::string::String {
|
|
|
+ ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
|
|
|
+ }
|
|
|
+
|
|
|
+ // string row_id = 2;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_row_id(&self) -> &str {
|
|
|
+ &self.row_id
|
|
|
+ }
|
|
|
+ pub fn clear_row_id(&mut self) {
|
|
|
+ self.row_id.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_row_id(&mut self, v: ::std::string::String) {
|
|
|
+ self.row_id = v;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ // If field is not initialized, it is initialized with default value first.
|
|
|
+ pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
|
|
|
+ &mut self.row_id
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_row_id(&mut self) -> ::std::string::String {
|
|
|
+ ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
|
|
|
+ }
|
|
|
+
|
|
|
+ // string field_id = 3;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_field_id(&self) -> &str {
|
|
|
+ &self.field_id
|
|
|
+ }
|
|
|
+ pub fn clear_field_id(&mut self) {
|
|
|
+ self.field_id.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_field_id(&mut self, v: ::std::string::String) {
|
|
|
+ self.field_id = v;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ // If field is not initialized, it is initialized with default value first.
|
|
|
+ pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
|
|
|
+ &mut self.field_id
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_field_id(&mut self) -> ::std::string::String {
|
|
|
+ ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
|
|
|
+ }
|
|
|
+
|
|
|
+ // string insert_option_id = 4;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_insert_option_id(&self) -> &str {
|
|
|
+ match self.one_of_insert_option_id {
|
|
|
+ ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(ref v)) => v,
|
|
|
+ _ => "",
|
|
|
+ }
|
|
|
+ }
|
|
|
+ pub fn clear_insert_option_id(&mut self) {
|
|
|
+ self.one_of_insert_option_id = ::std::option::Option::None;
|
|
|
+ }
|
|
|
+
|
|
|
+ pub fn has_insert_option_id(&self) -> bool {
|
|
|
+ match self.one_of_insert_option_id {
|
|
|
+ ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(..)) => true,
|
|
|
+ _ => false,
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_insert_option_id(&mut self, v: ::std::string::String) {
|
|
|
+ self.one_of_insert_option_id = ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(v))
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ pub fn mut_insert_option_id(&mut self) -> &mut ::std::string::String {
|
|
|
+ if let ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(_)) = self.one_of_insert_option_id {
|
|
|
+ } else {
|
|
|
+ self.one_of_insert_option_id = ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(::std::string::String::new()));
|
|
|
+ }
|
|
|
+ match self.one_of_insert_option_id {
|
|
|
+ ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(ref mut v)) => v,
|
|
|
+ _ => panic!(),
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_insert_option_id(&mut self) -> ::std::string::String {
|
|
|
+ if self.has_insert_option_id() {
|
|
|
+ match self.one_of_insert_option_id.take() {
|
|
|
+ ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(v)) => v,
|
|
|
+ _ => panic!(),
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ ::std::string::String::new()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // string delete_option_id = 5;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_delete_option_id(&self) -> &str {
|
|
|
+ match self.one_of_delete_option_id {
|
|
|
+ ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(ref v)) => v,
|
|
|
+ _ => "",
|
|
|
+ }
|
|
|
+ }
|
|
|
+ pub fn clear_delete_option_id(&mut self) {
|
|
|
+ self.one_of_delete_option_id = ::std::option::Option::None;
|
|
|
+ }
|
|
|
+
|
|
|
+ pub fn has_delete_option_id(&self) -> bool {
|
|
|
+ match self.one_of_delete_option_id {
|
|
|
+ ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(..)) => true,
|
|
|
+ _ => false,
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_delete_option_id(&mut self, v: ::std::string::String) {
|
|
|
+ self.one_of_delete_option_id = ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(v))
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ pub fn mut_delete_option_id(&mut self) -> &mut ::std::string::String {
|
|
|
+ if let ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(_)) = self.one_of_delete_option_id {
|
|
|
+ } else {
|
|
|
+ self.one_of_delete_option_id = ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(::std::string::String::new()));
|
|
|
+ }
|
|
|
+ match self.one_of_delete_option_id {
|
|
|
+ ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(ref mut v)) => v,
|
|
|
+ _ => panic!(),
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_delete_option_id(&mut self) -> ::std::string::String {
|
|
|
+ if self.has_delete_option_id() {
|
|
|
+ match self.one_of_delete_option_id.take() {
|
|
|
+ ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(v)) => v,
|
|
|
+ _ => panic!(),
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ ::std::string::String::new()
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::Message for SelectOptionCellChangesetPayload {
|
|
|
+ fn is_initialized(&self) -> bool {
|
|
|
+ true
|
|
|
+ }
|
|
|
+
|
|
|
+ fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
+ while !is.eof()? {
|
|
|
+ let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
+ match field_number {
|
|
|
+ 1 => {
|
|
|
+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
|
|
|
+ },
|
|
|
+ 2 => {
|
|
|
+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
|
|
|
+ },
|
|
|
+ 3 => {
|
|
|
+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
|
|
|
+ },
|
|
|
+ 4 => {
|
|
|
+ if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
|
|
|
+ return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
|
|
|
+ }
|
|
|
+ self.one_of_insert_option_id = ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(is.read_string()?));
|
|
|
+ },
|
|
|
+ 5 => {
|
|
|
+ if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
|
|
|
+ return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
|
|
|
+ }
|
|
|
+ self.one_of_delete_option_id = ::std::option::Option::Some(SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(is.read_string()?));
|
|
|
+ },
|
|
|
+ _ => {
|
|
|
+ ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
|
+ },
|
|
|
+ };
|
|
|
+ }
|
|
|
+ ::std::result::Result::Ok(())
|
|
|
+ }
|
|
|
+
|
|
|
+ // Compute sizes of nested messages
|
|
|
+ #[allow(unused_variables)]
|
|
|
+ fn compute_size(&self) -> u32 {
|
|
|
+ let mut my_size = 0;
|
|
|
+ if !self.grid_id.is_empty() {
|
|
|
+ my_size += ::protobuf::rt::string_size(1, &self.grid_id);
|
|
|
+ }
|
|
|
+ if !self.row_id.is_empty() {
|
|
|
+ my_size += ::protobuf::rt::string_size(2, &self.row_id);
|
|
|
+ }
|
|
|
+ if !self.field_id.is_empty() {
|
|
|
+ my_size += ::protobuf::rt::string_size(3, &self.field_id);
|
|
|
+ }
|
|
|
+ if let ::std::option::Option::Some(ref v) = self.one_of_insert_option_id {
|
|
|
+ match v {
|
|
|
+ &SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(ref v) => {
|
|
|
+ my_size += ::protobuf::rt::string_size(4, &v);
|
|
|
+ },
|
|
|
+ };
|
|
|
+ }
|
|
|
+ if let ::std::option::Option::Some(ref v) = self.one_of_delete_option_id {
|
|
|
+ match v {
|
|
|
+ &SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(ref v) => {
|
|
|
+ my_size += ::protobuf::rt::string_size(5, &v);
|
|
|
+ },
|
|
|
+ };
|
|
|
+ }
|
|
|
+ my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
|
|
|
+ self.cached_size.set(my_size);
|
|
|
+ my_size
|
|
|
+ }
|
|
|
+
|
|
|
+ fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
+ if !self.grid_id.is_empty() {
|
|
|
+ os.write_string(1, &self.grid_id)?;
|
|
|
+ }
|
|
|
+ if !self.row_id.is_empty() {
|
|
|
+ os.write_string(2, &self.row_id)?;
|
|
|
+ }
|
|
|
+ if !self.field_id.is_empty() {
|
|
|
+ os.write_string(3, &self.field_id)?;
|
|
|
+ }
|
|
|
+ if let ::std::option::Option::Some(ref v) = self.one_of_insert_option_id {
|
|
|
+ match v {
|
|
|
+ &SelectOptionCellChangesetPayload_oneof_one_of_insert_option_id::insert_option_id(ref v) => {
|
|
|
+ os.write_string(4, v)?;
|
|
|
+ },
|
|
|
+ };
|
|
|
+ }
|
|
|
+ if let ::std::option::Option::Some(ref v) = self.one_of_delete_option_id {
|
|
|
+ match v {
|
|
|
+ &SelectOptionCellChangesetPayload_oneof_one_of_delete_option_id::delete_option_id(ref v) => {
|
|
|
+ os.write_string(5, v)?;
|
|
|
+ },
|
|
|
+ };
|
|
|
+ }
|
|
|
+ os.write_unknown_fields(self.get_unknown_fields())?;
|
|
|
+ ::std::result::Result::Ok(())
|
|
|
+ }
|
|
|
+
|
|
|
+ fn get_cached_size(&self) -> u32 {
|
|
|
+ self.cached_size.get()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
|
|
|
+ &self.unknown_fields
|
|
|
+ }
|
|
|
+
|
|
|
+ fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
|
|
|
+ &mut self.unknown_fields
|
|
|
+ }
|
|
|
+
|
|
|
+ fn as_any(&self) -> &dyn (::std::any::Any) {
|
|
|
+ self as &dyn (::std::any::Any)
|
|
|
+ }
|
|
|
+ fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
|
|
|
+ self as &mut dyn (::std::any::Any)
|
|
|
+ }
|
|
|
+ fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
|
|
|
+ self
|
|
|
+ }
|
|
|
+
|
|
|
+ fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
+ Self::descriptor_static()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn new() -> SelectOptionCellChangesetPayload {
|
|
|
+ SelectOptionCellChangesetPayload::new()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
+ static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+ descriptor.get(|| {
|
|
|
+ let mut fields = ::std::vec::Vec::new();
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
+ "grid_id",
|
|
|
+ |m: &SelectOptionCellChangesetPayload| { &m.grid_id },
|
|
|
+ |m: &mut SelectOptionCellChangesetPayload| { &mut m.grid_id },
|
|
|
+ ));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
+ "row_id",
|
|
|
+ |m: &SelectOptionCellChangesetPayload| { &m.row_id },
|
|
|
+ |m: &mut SelectOptionCellChangesetPayload| { &mut m.row_id },
|
|
|
+ ));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
+ "field_id",
|
|
|
+ |m: &SelectOptionCellChangesetPayload| { &m.field_id },
|
|
|
+ |m: &mut SelectOptionCellChangesetPayload| { &mut m.field_id },
|
|
|
+ ));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
|
|
|
+ "insert_option_id",
|
|
|
+ SelectOptionCellChangesetPayload::has_insert_option_id,
|
|
|
+ SelectOptionCellChangesetPayload::get_insert_option_id,
|
|
|
+ ));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
|
|
|
+ "delete_option_id",
|
|
|
+ SelectOptionCellChangesetPayload::has_delete_option_id,
|
|
|
+ SelectOptionCellChangesetPayload::get_delete_option_id,
|
|
|
+ ));
|
|
|
+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<SelectOptionCellChangesetPayload>(
|
|
|
+ "SelectOptionCellChangesetPayload",
|
|
|
+ fields,
|
|
|
+ file_descriptor_proto()
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ fn default_instance() -> &'static SelectOptionCellChangesetPayload {
|
|
|
+ static instance: ::protobuf::rt::LazyV2<SelectOptionCellChangesetPayload> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+ instance.get(SelectOptionCellChangesetPayload::new)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::Clear for SelectOptionCellChangesetPayload {
|
|
|
+ fn clear(&mut self) {
|
|
|
+ self.grid_id.clear();
|
|
|
+ self.row_id.clear();
|
|
|
+ self.field_id.clear();
|
|
|
+ self.one_of_insert_option_id = ::std::option::Option::None;
|
|
|
+ self.one_of_delete_option_id = ::std::option::Option::None;
|
|
|
+ self.unknown_fields.clear();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::std::fmt::Debug for SelectOptionCellChangesetPayload {
|
|
|
+ fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
+ ::protobuf::text_format::fmt(self, f)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::reflect::ProtobufValue for SelectOptionCellChangesetPayload {
|
|
|
+ fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
+ ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+#[derive(PartialEq,Clone,Default)]
|
|
|
+pub struct SelectOptionContext {
|
|
|
+ // message fields
|
|
|
+ pub options: ::protobuf::RepeatedField<SelectOption>,
|
|
|
+ pub select_options: ::protobuf::RepeatedField<SelectOption>,
|
|
|
+ // special fields
|
|
|
+ pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
+ pub cached_size: ::protobuf::CachedSize,
|
|
|
+}
|
|
|
+
|
|
|
+impl<'a> ::std::default::Default for &'a SelectOptionContext {
|
|
|
+ fn default() -> &'a SelectOptionContext {
|
|
|
+ <SelectOptionContext as ::protobuf::Message>::default_instance()
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl SelectOptionContext {
|
|
|
+ pub fn new() -> SelectOptionContext {
|
|
|
+ ::std::default::Default::default()
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .SelectOption options = 1;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_options(&self) -> &[SelectOption] {
|
|
|
+ &self.options
|
|
|
+ }
|
|
|
+ pub fn clear_options(&mut self) {
|
|
|
+ self.options.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_options(&mut self, v: ::protobuf::RepeatedField<SelectOption>) {
|
|
|
+ self.options = v;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<SelectOption> {
|
|
|
+ &mut self.options
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_options(&mut self) -> ::protobuf::RepeatedField<SelectOption> {
|
|
|
+ ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new())
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .SelectOption select_options = 2;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_select_options(&self) -> &[SelectOption] {
|
|
|
+ &self.select_options
|
|
|
+ }
|
|
|
+ pub fn clear_select_options(&mut self) {
|
|
|
+ self.select_options.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_select_options(&mut self, v: ::protobuf::RepeatedField<SelectOption>) {
|
|
|
+ self.select_options = v;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Mutable pointer to the field.
|
|
|
+ pub fn mut_select_options(&mut self) -> &mut ::protobuf::RepeatedField<SelectOption> {
|
|
|
+ &mut self.select_options
|
|
|
+ }
|
|
|
+
|
|
|
+ // Take field
|
|
|
+ pub fn take_select_options(&mut self) -> ::protobuf::RepeatedField<SelectOption> {
|
|
|
+ ::std::mem::replace(&mut self.select_options, ::protobuf::RepeatedField::new())
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::Message for SelectOptionContext {
|
|
|
+ fn is_initialized(&self) -> bool {
|
|
|
+ for v in &self.options {
|
|
|
+ if !v.is_initialized() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ };
|
|
|
+ for v in &self.select_options {
|
|
|
+ if !v.is_initialized() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ };
|
|
|
+ true
|
|
|
+ }
|
|
|
+
|
|
|
+ fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
+ while !is.eof()? {
|
|
|
+ let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
+ match field_number {
|
|
|
+ 1 => {
|
|
|
+ ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
|
|
|
+ },
|
|
|
+ 2 => {
|
|
|
+ ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.select_options)?;
|
|
|
+ },
|
|
|
+ _ => {
|
|
|
+ ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
|
+ },
|
|
|
+ };
|
|
|
+ }
|
|
|
+ ::std::result::Result::Ok(())
|
|
|
+ }
|
|
|
+
|
|
|
+ // Compute sizes of nested messages
|
|
|
+ #[allow(unused_variables)]
|
|
|
+ fn compute_size(&self) -> u32 {
|
|
|
+ let mut my_size = 0;
|
|
|
+ for value in &self.options {
|
|
|
+ let len = value.compute_size();
|
|
|
+ my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
|
+ };
|
|
|
+ for value in &self.select_options {
|
|
|
+ let len = value.compute_size();
|
|
|
+ my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
|
+ };
|
|
|
+ my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
|
|
|
+ self.cached_size.set(my_size);
|
|
|
+ my_size
|
|
|
+ }
|
|
|
+
|
|
|
+ fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
+ for v in &self.options {
|
|
|
+ os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
|
+ os.write_raw_varint32(v.get_cached_size())?;
|
|
|
+ v.write_to_with_cached_sizes(os)?;
|
|
|
+ };
|
|
|
+ for v in &self.select_options {
|
|
|
+ os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
|
+ os.write_raw_varint32(v.get_cached_size())?;
|
|
|
+ v.write_to_with_cached_sizes(os)?;
|
|
|
+ };
|
|
|
+ os.write_unknown_fields(self.get_unknown_fields())?;
|
|
|
+ ::std::result::Result::Ok(())
|
|
|
+ }
|
|
|
+
|
|
|
+ fn get_cached_size(&self) -> u32 {
|
|
|
+ self.cached_size.get()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
|
|
|
+ &self.unknown_fields
|
|
|
+ }
|
|
|
+
|
|
|
+ fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
|
|
|
+ &mut self.unknown_fields
|
|
|
+ }
|
|
|
+
|
|
|
+ fn as_any(&self) -> &dyn (::std::any::Any) {
|
|
|
+ self as &dyn (::std::any::Any)
|
|
|
+ }
|
|
|
+ fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
|
|
|
+ self as &mut dyn (::std::any::Any)
|
|
|
+ }
|
|
|
+ fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
|
|
|
+ self
|
|
|
+ }
|
|
|
+
|
|
|
+ fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
+ Self::descriptor_static()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn new() -> SelectOptionContext {
|
|
|
+ SelectOptionContext::new()
|
|
|
+ }
|
|
|
+
|
|
|
+ fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
+ static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+ descriptor.get(|| {
|
|
|
+ let mut fields = ::std::vec::Vec::new();
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<SelectOption>>(
|
|
|
+ "options",
|
|
|
+ |m: &SelectOptionContext| { &m.options },
|
|
|
+ |m: &mut SelectOptionContext| { &mut m.options },
|
|
|
+ ));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<SelectOption>>(
|
|
|
+ "select_options",
|
|
|
+ |m: &SelectOptionContext| { &m.select_options },
|
|
|
+ |m: &mut SelectOptionContext| { &mut m.select_options },
|
|
|
+ ));
|
|
|
+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<SelectOptionContext>(
|
|
|
+ "SelectOptionContext",
|
|
|
+ fields,
|
|
|
+ file_descriptor_proto()
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ fn default_instance() -> &'static SelectOptionContext {
|
|
|
+ static instance: ::protobuf::rt::LazyV2<SelectOptionContext> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+ instance.get(SelectOptionContext::new)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::Clear for SelectOptionContext {
|
|
|
+ fn clear(&mut self) {
|
|
|
+ self.options.clear();
|
|
|
+ self.select_options.clear();
|
|
|
+ self.unknown_fields.clear();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::std::fmt::Debug for SelectOptionContext {
|
|
|
+ fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
+ ::protobuf::text_format::fmt(self, f)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::reflect::ProtobufValue for SelectOptionContext {
|
|
|
+ fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
+ ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+#[derive(Clone,PartialEq,Eq,Debug,Hash)]
|
|
|
+pub enum SelectOptionColor {
|
|
|
+ Purple = 0,
|
|
|
+ Pink = 1,
|
|
|
+ LightPink = 2,
|
|
|
+ Orange = 3,
|
|
|
+ Yellow = 4,
|
|
|
+ Lime = 5,
|
|
|
+ Green = 6,
|
|
|
+ Aqua = 7,
|
|
|
+ Blue = 8,
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::ProtobufEnum for SelectOptionColor {
|
|
|
+ fn value(&self) -> i32 {
|
|
|
+ *self as i32
|
|
|
+ }
|
|
|
+
|
|
|
+ fn from_i32(value: i32) -> ::std::option::Option<SelectOptionColor> {
|
|
|
+ match value {
|
|
|
+ 0 => ::std::option::Option::Some(SelectOptionColor::Purple),
|
|
|
+ 1 => ::std::option::Option::Some(SelectOptionColor::Pink),
|
|
|
+ 2 => ::std::option::Option::Some(SelectOptionColor::LightPink),
|
|
|
+ 3 => ::std::option::Option::Some(SelectOptionColor::Orange),
|
|
|
+ 4 => ::std::option::Option::Some(SelectOptionColor::Yellow),
|
|
|
+ 5 => ::std::option::Option::Some(SelectOptionColor::Lime),
|
|
|
+ 6 => ::std::option::Option::Some(SelectOptionColor::Green),
|
|
|
+ 7 => ::std::option::Option::Some(SelectOptionColor::Aqua),
|
|
|
+ 8 => ::std::option::Option::Some(SelectOptionColor::Blue),
|
|
|
+ _ => ::std::option::Option::None
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ fn values() -> &'static [Self] {
|
|
|
+ static values: &'static [SelectOptionColor] = &[
|
|
|
+ SelectOptionColor::Purple,
|
|
|
+ SelectOptionColor::Pink,
|
|
|
+ SelectOptionColor::LightPink,
|
|
|
+ SelectOptionColor::Orange,
|
|
|
+ SelectOptionColor::Yellow,
|
|
|
+ SelectOptionColor::Lime,
|
|
|
+ SelectOptionColor::Green,
|
|
|
+ SelectOptionColor::Aqua,
|
|
|
+ SelectOptionColor::Blue,
|
|
|
+ ];
|
|
|
+ values
|
|
|
+ }
|
|
|
+
|
|
|
+ fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
|
|
|
+ static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+ descriptor.get(|| {
|
|
|
+ ::protobuf::reflect::EnumDescriptor::new_pb_name::<SelectOptionColor>("SelectOptionColor", file_descriptor_proto())
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::std::marker::Copy for SelectOptionColor {
|
|
|
+}
|
|
|
+
|
|
|
+impl ::std::default::Default for SelectOptionColor {
|
|
|
+ fn default() -> Self {
|
|
|
+ SelectOptionColor::Purple
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+impl ::protobuf::reflect::ProtobufValue for SelectOptionColor {
|
|
|
+ fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
+ ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
+ \n\x11type_option.proto\"\\\n\x0cSelectOption\x12\x0e\n\x02id\x18\x01\
|
|
|
+ \x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x12(\n\
|
|
|
+ \x05color\x18\x03\x20\x01(\x0e2\x12.SelectOptionColorR\x05color\"\xfb\
|
|
|
+ \x01\n\x20SelectOptionCellChangesetPayload\x12\x17\n\x07grid_id\x18\x01\
|
|
|
+ \x20\x01(\tR\x06gridId\x12\x15\n\x06row_id\x18\x02\x20\x01(\tR\x05rowId\
|
|
|
+ \x12\x19\n\x08field_id\x18\x03\x20\x01(\tR\x07fieldId\x12*\n\x10insert_o\
|
|
|
+ ption_id\x18\x04\x20\x01(\tH\0R\x0einsertOptionId\x12*\n\x10delete_optio\
|
|
|
+ n_id\x18\x05\x20\x01(\tH\x01R\x0edeleteOptionIdB\x19\n\x17one_of_insert_\
|
|
|
+ option_idB\x19\n\x17one_of_delete_option_id\"t\n\x13SelectOptionContext\
|
|
|
+ \x12'\n\x07options\x18\x01\x20\x03(\x0b2\r.SelectOptionR\x07options\x124\
|
|
|
+ \n\x0eselect_options\x18\x02\x20\x03(\x0b2\r.SelectOptionR\rselectOption\
|
|
|
+ s*y\n\x11SelectOptionColor\x12\n\n\x06Purple\x10\0\x12\x08\n\x04Pink\x10\
|
|
|
+ \x01\x12\r\n\tLightPink\x10\x02\x12\n\n\x06Orange\x10\x03\x12\n\n\x06Yel\
|
|
|
+ low\x10\x04\x12\x08\n\x04Lime\x10\x05\x12\t\n\x05Green\x10\x06\x12\x08\n\
|
|
|
+ \x04Aqua\x10\x07\x12\x08\n\x04Blue\x10\x08b\x06proto3\
|
|
|
+";
|
|
|
+
|
|
|
+static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+
|
|
|
+fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
|
|
|
+ ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
|
+}
|
|
|
+
|
|
|
+pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
|
+ file_descriptor_proto_lazy.get(|| {
|
|
|
+ parse_descriptor_proto()
|
|
|
+ })
|
|
|
+}
|