OR-Tools  9.0
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 constexpr ::PROTOBUF_NAMESPACE_ID::Metadata* file_level_metadata_ortools_2futil_2foptional_5fboolean_2eproto = nullptr;
22 static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_ortools_2futil_2foptional_5fboolean_2eproto[1];
23 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_ortools_2futil_2foptional_5fboolean_2eproto = nullptr;
24 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ortools_2futil_2foptional_5fboolean_2eproto::offsets[1] = {};
25 static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr;
26 static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr;
27 
28 const char descriptor_table_protodef_ortools_2futil_2foptional_5fboolean_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
29  "\n#ortools/util/optional_boolean.proto\022\023o"
30  "perations_research*F\n\017OptionalBoolean\022\024\n"
31  "\020BOOL_UNSPECIFIED\020\000\022\016\n\nBOOL_FALSE\020\002\022\r\n\tB"
32  "OOL_TRUE\020\003B1\n\027com.google.ortools.utilP\001\252"
33  "\002\023Google.OrTools.Utilb\006proto3"
34  ;
35 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto_once;
36 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto = {
37  false, false, 189, descriptor_table_protodef_ortools_2futil_2foptional_5fboolean_2eproto, "ortools/util/optional_boolean.proto",
41 };
42 PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
44  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto);
46 }
47 
48 // Force running AddDescriptors() at dynamic initialization time.
49 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);
50 namespace operations_research {
51 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OptionalBoolean_descriptor() {
52  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto);
54 }
56  switch (value) {
57  case 0:
58  case 2:
59  case 3:
60  return true;
61  default:
62  return false;
63  }
64 }
65 
66 
67 // @@protoc_insertion_point(namespace_scope)
68 } // namespace operations_research
69 PROTOBUF_NAMESPACE_OPEN
70 PROTOBUF_NAMESPACE_CLOSE
71 
72 // @@protoc_insertion_point(global_scope)
73 #include <google/protobuf/port_undef.inc>
int64_t value
Collection of objects used to extend the Constraint Solver library.
bool OptionalBoolean_IsValid(int value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * OptionalBoolean_descriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto
const char descriptor_table_protodef_ortools_2futil_2foptional_5fboolean_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static constexpr ::PROTOBUF_NAMESPACE_ID::Message *const * file_default_instances
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_ortools_2futil_2foptional_5fboolean_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema * schemas
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto_once
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * file_level_enum_descriptors_ortools_2futil_2foptional_5fboolean_2eproto[1]
static constexpr ::PROTOBUF_NAMESPACE_ID::Metadata * file_level_metadata_ortools_2futil_2foptional_5fboolean_2eproto
PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto_metadata_getter(int index)
int index
Definition: pack.cc:509
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]