github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/kv/kvserver/concurrency/lock/locking.pb.cc (about)

     1  // Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  // source: kv/kvserver/concurrency/lock/locking.proto
     3  
     4  #include "kv/kvserver/concurrency/lock/locking.pb.h"
     5  
     6  #include <algorithm>
     7  
     8  #include <google/protobuf/stubs/common.h>
     9  #include <google/protobuf/stubs/port.h>
    10  #include <google/protobuf/io/coded_stream.h>
    11  #include <google/protobuf/wire_format_lite_inl.h>
    12  // This is a temporary google only hack
    13  #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
    14  #include "third_party/protobuf/version.h"
    15  #endif
    16  // @@protoc_insertion_point(includes)
    17  
    18  namespace cockroach {
    19  namespace kv {
    20  namespace kvserver {
    21  namespace concurrency {
    22  namespace lock {
    23  }  // namespace lock
    24  }  // namespace concurrency
    25  }  // namespace kvserver
    26  }  // namespace kv
    27  }  // namespace cockroach
    28  namespace protobuf_kv_2fkvserver_2fconcurrency_2flock_2flocking_2eproto {
    29  void InitDefaults() {
    30  }
    31  
    32  }  // namespace protobuf_kv_2fkvserver_2fconcurrency_2flock_2flocking_2eproto
    33  namespace cockroach {
    34  namespace kv {
    35  namespace kvserver {
    36  namespace concurrency {
    37  namespace lock {
    38  bool Strength_IsValid(int value) {
    39    switch (value) {
    40      case 0:
    41      case 1:
    42      case 2:
    43      case 3:
    44        return true;
    45      default:
    46        return false;
    47    }
    48  }
    49  
    50  bool Durability_IsValid(int value) {
    51    switch (value) {
    52      case 0:
    53      case 1:
    54        return true;
    55      default:
    56        return false;
    57    }
    58  }
    59  
    60  
    61  // @@protoc_insertion_point(namespace_scope)
    62  }  // namespace lock
    63  }  // namespace concurrency
    64  }  // namespace kvserver
    65  }  // namespace kv
    66  }  // namespace cockroach
    67  namespace google {
    68  namespace protobuf {
    69  }  // namespace protobuf
    70  }  // namespace google
    71  
    72  // @@protoc_insertion_point(global_scope)