#![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)]
#[derive(PartialEq,Clone,Default)]
pub struct Interval {
pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Interval {
fn default() -> &'a Interval {
<Interval as ::protobuf::Message>::default_instance()
}
}
impl Interval {
pub fn new() -> Interval {
::std::default::Default::default()
}
pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp {
self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
}
pub fn clear_start_time(&mut self) {
self.start_time.clear();
}
pub fn has_start_time(&self) -> bool {
self.start_time.is_some()
}
pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.start_time = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if self.start_time.is_none() {
self.start_time.set_default();
}
self.start_time.as_mut().unwrap()
}
pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp {
self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
}
pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp {
self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
}
pub fn clear_end_time(&mut self) {
self.end_time.clear();
}
pub fn has_end_time(&self) -> bool {
self.end_time.is_some()
}
pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.end_time = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if self.end_time.is_none() {
self.end_time.set_default();
}
self.end_time.as_mut().unwrap()
}
pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp {
self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
}
}
impl ::protobuf::Message for Interval {
fn is_initialized(&self) -> bool {
for v in &self.start_time {
if !v.is_initialized() {
return false;
}
};
for v in &self.end_time {
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_singular_message_into(wire_type, is, &mut self.start_time)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.start_time.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.end_time.as_ref() {
let len = v.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<()> {
if let Some(ref v) = self.start_time.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.end_time.as_ref() {
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() -> Interval {
Interval::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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
"start_time",
|m: &Interval| { &m.start_time },
|m: &mut Interval| { &mut m.start_time },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
"end_time",
|m: &Interval| { &m.end_time },
|m: &mut Interval| { &mut m.end_time },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Interval>(
"Interval",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Interval {
static instance: ::protobuf::rt::LazyV2<Interval> = ::protobuf::rt::LazyV2::INIT;
instance.get(Interval::new)
}
}
impl ::protobuf::Clear for Interval {
fn clear(&mut self) {
self.start_time.clear();
self.end_time.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Interval {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Interval {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x1agoogle/type/interval.proto\x12\x0bgoogle.type\x1a\x1fgoogle/protob\
uf/timestamp.proto\"|\n\x08Interval\x129\n\nstart_time\x18\x01\x20\x01(\
\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_time\x18\
\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTimeBi\n\x0fcom.\
google.typeB\rIntervalProtoP\x01Z<google.golang.org/genproto/googleapis/\
type/interval;interval\xf8\x01\x01\xa2\x02\x03GTPJ\xa3\x0b\n\x06\x12\x04\
\x0e\0-\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\
\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20L\
icense,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20no\
t\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\
\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20Lice\
nse\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-\
2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\
\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\
\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\
\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\
ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\
the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\
tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\
\n\t\n\x02\x03\0\x12\x03\x12\0)\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\
\x02\x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0S\n\t\n\x02\
\x08\x0b\x12\x03\x15\0S\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\
\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0.\n\t\n\x02\x08\x08\x12\
\x03\x17\0.\n\x08\n\x01\x08\x12\x03\x18\0(\n\t\n\x02\x08\x01\x12\x03\x18\
\0(\n\x08\n\x01\x08\x12\x03\x19\0!\n\t\n\x02\x08$\x12\x03\x19\0!\n\xba\
\x02\n\x02\x04\0\x12\x04!\0-\x01\x1a\xad\x02\x20Represents\x20a\x20time\
\x20interval,\x20encoded\x20as\x20a\x20Timestamp\x20start\x20(inclusive)\
\x20and\x20a\n\x20Timestamp\x20end\x20(exclusive).\n\n\x20The\x20start\
\x20must\x20be\x20less\x20than\x20or\x20equal\x20to\x20the\x20end.\n\x20\
When\x20the\x20start\x20equals\x20the\x20end,\x20the\x20interval\x20is\
\x20empty\x20(matches\x20no\x20time).\n\x20When\x20both\x20start\x20and\
\x20end\x20are\x20unspecified,\x20the\x20interval\x20matches\x20any\x20t\
ime.\n\n\n\n\x03\x04\0\x01\x12\x03!\x08\x10\n\x9b\x01\n\x04\x04\0\x02\0\
\x12\x03&\x02+\x1a\x8d\x01\x20Optional.\x20Inclusive\x20start\x20of\x20t\
he\x20interval.\n\n\x20If\x20specified,\x20a\x20Timestamp\x20matching\
\x20this\x20interval\x20will\x20have\x20to\x20be\x20the\x20same\n\x20or\
\x20after\x20the\x20start.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03&\x02\
\x1b\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03&\x1c&\n\x0c\n\x05\x04\0\x02\0\
\x03\x12\x03&)*\n\x8b\x01\n\x04\x04\0\x02\x01\x12\x03,\x02)\x1a~\x20Opti\
onal.\x20Exclusive\x20end\x20of\x20the\x20interval.\n\n\x20If\x20specifi\
ed,\x20a\x20Timestamp\x20matching\x20this\x20interval\x20will\x20have\
\x20to\x20be\x20before\x20the\n\x20end.\n\n\x0c\n\x05\x04\0\x02\x01\x06\
\x12\x03,\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03,\x1c$\n\x0c\n\
\x05\x04\0\x02\x01\x03\x12\x03,'(b\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()
})
}