OR-Tools  9.1
optional_boolean.pb.cc
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/util/optional_boolean.proto
3 
5 
6 #include <algorithm>
7 
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
15 // @@protoc_insertion_point(includes)
16 #include <google/protobuf/port_def.inc>
17 
18 PROTOBUF_PRAGMA_INIT_SEG
19 namespace operations_research {
20 } // namespace operations_research
21 static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_ortools_2futil_2foptional_5fboolean_2eproto[1];
22 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_ortools_2futil_2foptional_5fboolean_2eproto = nullptr;
23 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2futil_2foptional_5fboolean_2eproto::offsets[1] = {};
24 static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr;
25 static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr;
26 
27 const char descriptor_table_protodef_ortools_2futil_2foptional_5fboolean_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
28  "\n#ortools/util/optional_boolean.proto\022\023o"
29  "perations_research*F\n\017OptionalBoolean\022\024\n"
30  "\020BOOL_UNSPECIFIED\020\000\022\016\n\nBOOL_FALSE\020\002\022\r\n\tB"
31  "OOL_TRUE\020\003B1\n\027com.google.ortools.utilP\001\252"
32  "\002\023Google.OrTools.Utilb\006proto3"
33  ;
34 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto_once;
35 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto = {
36  false, false, 189, descriptor_table_protodef_ortools_2futil_2foptional_5fboolean_2eproto, "ortools/util/optional_boolean.proto",
40 };
41 PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto_getter() {
43 }
44 
45 // Force running AddDescriptors() at dynamic initialization time.
46 PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_ortools_2futil_2foptional_5fboolean_2eproto(&descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto);
47 namespace operations_research {
48 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OptionalBoolean_descriptor() {
49  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto);
51 }
53  switch (value) {
54  case 0:
55  case 2:
56  case 3:
57  return true;
58  default:
59  return false;
60  }
61 }
62 
63 
64 // @@protoc_insertion_point(namespace_scope)
65 } // namespace operations_research
66 PROTOBUF_NAMESPACE_OPEN
67 PROTOBUF_NAMESPACE_CLOSE
68 
69 // @@protoc_insertion_point(global_scope)
70 #include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2futil_2foptional_5fboolean_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::Message *const * file_default_instances
PROTOBUF_ATTRIBUTE_WEAKconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable * descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto_getter()
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
bool OptionalBoolean_IsValid(int value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * OptionalBoolean_descriptor()
const char descriptor_table_protodef_ortools_2futil_2foptional_5fboolean_2eproto [] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * file_level_enum_descriptors_ortools_2futil_2foptional_5fboolean_2eproto[1]
Collection of objects used to extend the Constraint Solver library.
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto_once
int64_t value