github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/sqlbase/encoded_datum.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: sql/sqlbase/encoded_datum.proto
     3  
     4  package sqlbase
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  // Reference imports to suppress errors if they are not otherwise used.
    11  var _ = proto.Marshal
    12  var _ = fmt.Errorf
    13  var _ = math.Inf
    14  
    15  // This is a compile-time assertion to ensure that this generated file
    16  // is compatible with the proto package it is being compiled against.
    17  // A compilation error at this line likely means your copy of the
    18  // proto package needs to be updated.
    19  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    20  
    21  // DatumEncoding identifies the encoding used for an EncDatum.
    22  type DatumEncoding int32
    23  
    24  const (
    25  	// Indicates that the datum is encoded using the order-preserving encoding
    26  	// used for keys (ascending order).
    27  	DatumEncoding_ASCENDING_KEY DatumEncoding = 0
    28  	// Indicates that the datum is encoded using the order-preserving encoding
    29  	// used for keys (descending order).
    30  	DatumEncoding_DESCENDING_KEY DatumEncoding = 1
    31  	// Indicates that the datum is encoded using the encoding used for values.
    32  	DatumEncoding_VALUE DatumEncoding = 2
    33  )
    34  
    35  var DatumEncoding_name = map[int32]string{
    36  	0: "ASCENDING_KEY",
    37  	1: "DESCENDING_KEY",
    38  	2: "VALUE",
    39  }
    40  var DatumEncoding_value = map[string]int32{
    41  	"ASCENDING_KEY":  0,
    42  	"DESCENDING_KEY": 1,
    43  	"VALUE":          2,
    44  }
    45  
    46  func (x DatumEncoding) Enum() *DatumEncoding {
    47  	p := new(DatumEncoding)
    48  	*p = x
    49  	return p
    50  }
    51  func (x DatumEncoding) String() string {
    52  	return proto.EnumName(DatumEncoding_name, int32(x))
    53  }
    54  func (x *DatumEncoding) UnmarshalJSON(data []byte) error {
    55  	value, err := proto.UnmarshalJSONEnum(DatumEncoding_value, data, "DatumEncoding")
    56  	if err != nil {
    57  		return err
    58  	}
    59  	*x = DatumEncoding(value)
    60  	return nil
    61  }
    62  func (DatumEncoding) EnumDescriptor() ([]byte, []int) {
    63  	return fileDescriptor_encoded_datum_9b16f2225426c2eb, []int{0}
    64  }
    65  
    66  func init() {
    67  	proto.RegisterEnum("cockroach.sql.sqlbase.DatumEncoding", DatumEncoding_name, DatumEncoding_value)
    68  }
    69  
    70  func init() {
    71  	proto.RegisterFile("sql/sqlbase/encoded_datum.proto", fileDescriptor_encoded_datum_9b16f2225426c2eb)
    72  }
    73  
    74  var fileDescriptor_encoded_datum_9b16f2225426c2eb = []byte{
    75  	// 180 bytes of a gzipped FileDescriptorProto
    76  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2f, 0x2e, 0xcc, 0xd1,
    77  	0x2f, 0x2e, 0xcc, 0x49, 0x4a, 0x2c, 0x4e, 0xd5, 0x4f, 0xcd, 0x4b, 0xce, 0x4f, 0x49, 0x4d, 0x89,
    78  	0x4f, 0x49, 0x2c, 0x29, 0xcd, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x4d, 0xce, 0x4f,
    79  	0xce, 0x2e, 0xca, 0x4f, 0x4c, 0xce, 0xd0, 0x2b, 0x2e, 0xcc, 0xd1, 0x83, 0x2a, 0x95, 0x12, 0x49,
    80  	0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd0, 0x07, 0xb1, 0x20, 0x8a, 0xb5, 0x1c, 0xb9, 0x78, 0x5d, 0x40,
    81  	0x7a, 0x5d, 0x41, 0x06, 0x65, 0xe6, 0xa5, 0x0b, 0x09, 0x72, 0xf1, 0x3a, 0x06, 0x3b, 0xbb, 0xfa,
    82  	0xb9, 0x78, 0xfa, 0xb9, 0xc7, 0x7b, 0xbb, 0x46, 0x0a, 0x30, 0x08, 0x09, 0x71, 0xf1, 0xb9, 0xb8,
    83  	0xa2, 0x88, 0x31, 0x0a, 0x71, 0x72, 0xb1, 0x86, 0x39, 0xfa, 0x84, 0xba, 0x0a, 0x30, 0x39, 0x69,
    84  	0x9e, 0x78, 0x28, 0xc7, 0x70, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x37, 0x1e, 0xc9,
    85  	0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e,
    86  	0xcb, 0x31, 0x44, 0xb1, 0x43, 0xdd, 0x00, 0x08, 0x00, 0x00, 0xff, 0xff, 0x73, 0x18, 0xca, 0x25,
    87  	0xbc, 0x00, 0x00, 0x00,
    88  }