github.com/cockroachdb/cockroachdb-parser@v0.23.3-0.20240213214944-911057d40c9a/pkg/sql/sem/semenumpb/constraint.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: sql/sem/semenumpb/constraint.proto
     3  
     4  package semenumpb
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	math "math"
    11  )
    12  
    13  // Reference imports to suppress errors if they are not otherwise used.
    14  var _ = proto.Marshal
    15  var _ = fmt.Errorf
    16  var _ = math.Inf
    17  
    18  // This is a compile-time assertion to ensure that this generated file
    19  // is compatible with the proto package it is being compiled against.
    20  // A compilation error at this line likely means your copy of the
    21  // proto package needs to be updated.
    22  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    23  
    24  // ForeignKeyAction describes the action which should be taken when a foreign
    25  // key constraint reference is acted upon.
    26  type ForeignKeyAction int32
    27  
    28  const (
    29  	ForeignKeyAction_NO_ACTION   ForeignKeyAction = 0
    30  	ForeignKeyAction_RESTRICT    ForeignKeyAction = 1
    31  	ForeignKeyAction_SET_NULL    ForeignKeyAction = 2
    32  	ForeignKeyAction_SET_DEFAULT ForeignKeyAction = 3
    33  	ForeignKeyAction_CASCADE     ForeignKeyAction = 4
    34  )
    35  
    36  var ForeignKeyAction_name = map[int32]string{
    37  	0: "NO_ACTION",
    38  	1: "RESTRICT",
    39  	2: "SET_NULL",
    40  	3: "SET_DEFAULT",
    41  	4: "CASCADE",
    42  }
    43  
    44  var ForeignKeyAction_value = map[string]int32{
    45  	"NO_ACTION":   0,
    46  	"RESTRICT":    1,
    47  	"SET_NULL":    2,
    48  	"SET_DEFAULT": 3,
    49  	"CASCADE":     4,
    50  }
    51  
    52  func (x ForeignKeyAction) String() string {
    53  	return proto.EnumName(ForeignKeyAction_name, int32(x))
    54  }
    55  
    56  func (ForeignKeyAction) EnumDescriptor() ([]byte, []int) {
    57  	return fileDescriptor_8e3e948e264df145, []int{0}
    58  }
    59  
    60  // Match is the algorithm used to compare composite keys.
    61  type Match int32
    62  
    63  const (
    64  	Match_SIMPLE  Match = 0
    65  	Match_FULL    Match = 1
    66  	Match_PARTIAL Match = 2
    67  )
    68  
    69  var Match_name = map[int32]string{
    70  	0: "SIMPLE",
    71  	1: "FULL",
    72  	2: "PARTIAL",
    73  }
    74  
    75  var Match_value = map[string]int32{
    76  	"SIMPLE":  0,
    77  	"FULL":    1,
    78  	"PARTIAL": 2,
    79  }
    80  
    81  func (x Match) String() string {
    82  	return proto.EnumName(Match_name, int32(x))
    83  }
    84  
    85  func (Match) EnumDescriptor() ([]byte, []int) {
    86  	return fileDescriptor_8e3e948e264df145, []int{1}
    87  }
    88  
    89  func init() {
    90  	proto.RegisterEnum("cockroach.parser.sql.sem.semenumpb.ForeignKeyAction", ForeignKeyAction_name, ForeignKeyAction_value)
    91  	proto.RegisterEnum("cockroach.parser.sql.sem.semenumpb.Match", Match_name, Match_value)
    92  }
    93  
    94  func init() {
    95  	proto.RegisterFile("sql/sem/semenumpb/constraint.proto", fileDescriptor_8e3e948e264df145)
    96  }
    97  
    98  var fileDescriptor_8e3e948e264df145 = []byte{
    99  	// 289 bytes of a gzipped FileDescriptorProto
   100  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x2e, 0xcc, 0xd1,
   101  	0x2f, 0x4e, 0xcd, 0x05, 0xe1, 0xd4, 0xbc, 0xd2, 0xdc, 0x82, 0x24, 0xfd, 0xe4, 0xfc, 0xbc, 0xe2,
   102  	0x92, 0xa2, 0xc4, 0xcc, 0xbc, 0x12, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0xe9, 0xe4, 0xfc,
   103  	0xe4, 0xec, 0xa2, 0xfc, 0xc4, 0xe4, 0x0c, 0xbd, 0xe2, 0xc2, 0x1c, 0xbd, 0xe2, 0xd4, 0x5c, 0x3d,
   104  	0xb8, 0x6a, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, 0xb0, 0x3a, 0x7d, 0x10, 0x0b, 0xa2, 0x45, 0x2b,
   105  	0x9a, 0x4b, 0xc0, 0x2d, 0xbf, 0x28, 0x35, 0x33, 0x3d, 0xcf, 0x3b, 0xb5, 0xd2, 0x31, 0xb9, 0x24,
   106  	0x33, 0x3f, 0x4f, 0x88, 0x97, 0x8b, 0xd3, 0xcf, 0x3f, 0xde, 0xd1, 0x39, 0xc4, 0xd3, 0xdf, 0x4f,
   107  	0x80, 0x41, 0x88, 0x87, 0x8b, 0x23, 0xc8, 0x35, 0x38, 0x24, 0xc8, 0xd3, 0x39, 0x44, 0x80, 0x11,
   108  	0xc4, 0x0b, 0x76, 0x0d, 0x89, 0xf7, 0x0b, 0xf5, 0xf1, 0x11, 0x60, 0x12, 0xe2, 0xe7, 0xe2, 0x06,
   109  	0xf1, 0x5c, 0x5c, 0xdd, 0x1c, 0x43, 0x7d, 0x42, 0x04, 0x98, 0x85, 0xb8, 0xb9, 0xd8, 0x9d, 0x1d,
   110  	0x83, 0x9d, 0x1d, 0x5d, 0x5c, 0x05, 0x58, 0xb4, 0xb4, 0xb8, 0x58, 0x7d, 0x13, 0x4b, 0x92, 0x33,
   111  	0x84, 0xb8, 0xb8, 0xd8, 0x82, 0x3d, 0x7d, 0x03, 0x7c, 0x5c, 0x05, 0x18, 0x84, 0x38, 0xb8, 0x58,
   112  	0xdc, 0x40, 0x9a, 0x19, 0x41, 0x6a, 0x03, 0x1c, 0x83, 0x42, 0x3c, 0x1d, 0x7d, 0x04, 0x98, 0x9c,
   113  	0x22, 0x4e, 0x3c, 0x94, 0x63, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x1b, 0x8f,
   114  	0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b,
   115  	0x8f, 0xe5, 0x18, 0xa2, 0xcc, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5,
   116  	0xe1, 0x1e, 0x4d, 0x49, 0x42, 0xb0, 0xf5, 0x0b, 0xb2, 0xd3, 0xf5, 0x31, 0x82, 0x29, 0x89, 0x0d,
   117  	0xec, 0x53, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x07, 0x88, 0xb6, 0x42, 0x01, 0x00,
   118  	0x00,
   119  }
   120