Files
orion_greptime_proto/go/greptime/v1/wal.pb.go
fys 855dff1b87 chore: format proto file (#254)
* chore: proto file format using buf

* generate go file
2025-07-16 11:25:57 +08:00

594 lines
19 KiB
Go

// Copyright 2023 Greptime Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.21.6
// source: greptime/v1/wal.proto
package v1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Type of operation to rows.
type OpType int32
const (
// Delete rows.
OpType_DELETE OpType = 0
// Put rows.
OpType_PUT OpType = 1
)
// Enum value maps for OpType.
var (
OpType_name = map[int32]string{
0: "DELETE",
1: "PUT",
}
OpType_value = map[string]int32{
"DELETE": 0,
"PUT": 1,
}
)
func (x OpType) Enum() *OpType {
p := new(OpType)
*p = x
return p
}
func (x OpType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (OpType) Descriptor() protoreflect.EnumDescriptor {
return file_greptime_v1_wal_proto_enumTypes[0].Descriptor()
}
func (OpType) Type() protoreflect.EnumType {
return &file_greptime_v1_wal_proto_enumTypes[0]
}
func (x OpType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use OpType.Descriptor instead.
func (OpType) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_wal_proto_rawDescGZIP(), []int{0}
}
// Encoding of primary key.
type PrimaryKeyEncoding int32
const (
PrimaryKeyEncoding_DENSE PrimaryKeyEncoding = 0
PrimaryKeyEncoding_SPARSE PrimaryKeyEncoding = 1
)
// Enum value maps for PrimaryKeyEncoding.
var (
PrimaryKeyEncoding_name = map[int32]string{
0: "DENSE",
1: "SPARSE",
}
PrimaryKeyEncoding_value = map[string]int32{
"DENSE": 0,
"SPARSE": 1,
}
)
func (x PrimaryKeyEncoding) Enum() *PrimaryKeyEncoding {
p := new(PrimaryKeyEncoding)
*p = x
return p
}
func (x PrimaryKeyEncoding) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PrimaryKeyEncoding) Descriptor() protoreflect.EnumDescriptor {
return file_greptime_v1_wal_proto_enumTypes[1].Descriptor()
}
func (PrimaryKeyEncoding) Type() protoreflect.EnumType {
return &file_greptime_v1_wal_proto_enumTypes[1]
}
func (x PrimaryKeyEncoding) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PrimaryKeyEncoding.Descriptor instead.
func (PrimaryKeyEncoding) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_wal_proto_rawDescGZIP(), []int{1}
}
// Write hint of the mutation.
type WriteHint struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PrimaryKeyEncoding PrimaryKeyEncoding `protobuf:"varint,1,opt,name=primary_key_encoding,json=primaryKeyEncoding,proto3,enum=greptime.v1.PrimaryKeyEncoding" json:"primary_key_encoding,omitempty"`
}
func (x *WriteHint) Reset() {
*x = WriteHint{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_wal_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WriteHint) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WriteHint) ProtoMessage() {}
func (x *WriteHint) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_wal_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WriteHint.ProtoReflect.Descriptor instead.
func (*WriteHint) Descriptor() ([]byte, []int) {
return file_greptime_v1_wal_proto_rawDescGZIP(), []int{0}
}
func (x *WriteHint) GetPrimaryKeyEncoding() PrimaryKeyEncoding {
if x != nil {
return x.PrimaryKeyEncoding
}
return PrimaryKeyEncoding_DENSE
}
// Mutation contains updates to a set of rows.
type Mutation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of this mutation.
OpType OpType `protobuf:"varint,1,opt,name=op_type,json=opType,proto3,enum=greptime.v1.OpType" json:"op_type,omitempty"`
// Start WAL sequence of this mutation.
Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
// Row updates to write to the WAL.
Rows *Rows `protobuf:"bytes,3,opt,name=rows,proto3" json:"rows,omitempty"`
// Write hint of the mutation.
WriteHint *WriteHint `protobuf:"bytes,4,opt,name=write_hint,json=writeHint,proto3" json:"write_hint,omitempty"`
}
func (x *Mutation) Reset() {
*x = Mutation{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_wal_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Mutation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Mutation) ProtoMessage() {}
func (x *Mutation) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_wal_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Mutation.ProtoReflect.Descriptor instead.
func (*Mutation) Descriptor() ([]byte, []int) {
return file_greptime_v1_wal_proto_rawDescGZIP(), []int{1}
}
func (x *Mutation) GetOpType() OpType {
if x != nil {
return x.OpType
}
return OpType_DELETE
}
func (x *Mutation) GetSequence() uint64 {
if x != nil {
return x.Sequence
}
return 0
}
func (x *Mutation) GetRows() *Rows {
if x != nil {
return x.Rows
}
return nil
}
func (x *Mutation) GetWriteHint() *WriteHint {
if x != nil {
return x.WriteHint
}
return nil
}
// A WAL entry contains a list of mutations for a region to write.
type WalEntry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of mutations for a region.
Mutations []*Mutation `protobuf:"bytes,1,rep,name=mutations,proto3" json:"mutations,omitempty"`
// List of bulk insert requests.
BulkEntries []*BulkWalEntry `protobuf:"bytes,2,rep,name=bulk_entries,json=bulkEntries,proto3" json:"bulk_entries,omitempty"`
}
func (x *WalEntry) Reset() {
*x = WalEntry{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_wal_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WalEntry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WalEntry) ProtoMessage() {}
func (x *WalEntry) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_wal_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WalEntry.ProtoReflect.Descriptor instead.
func (*WalEntry) Descriptor() ([]byte, []int) {
return file_greptime_v1_wal_proto_rawDescGZIP(), []int{2}
}
func (x *WalEntry) GetMutations() []*Mutation {
if x != nil {
return x.Mutations
}
return nil
}
func (x *WalEntry) GetBulkEntries() []*BulkWalEntry {
if x != nil {
return x.BulkEntries
}
return nil
}
type BulkWalEntry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Start WAL sequence of this entry.
Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
// Max timestamp value.
MaxTs int64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"`
// Min timestamp value.
MinTs int64 `protobuf:"varint,3,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"`
// Timestamp column index.
TimestampIndex uint32 `protobuf:"varint,4,opt,name=timestamp_index,json=timestampIndex,proto3" json:"timestamp_index,omitempty"`
// Types that are assignable to Body:
//
// *BulkWalEntry_ArrowIpc
Body isBulkWalEntry_Body `protobuf_oneof:"body"`
}
func (x *BulkWalEntry) Reset() {
*x = BulkWalEntry{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_wal_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BulkWalEntry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BulkWalEntry) ProtoMessage() {}
func (x *BulkWalEntry) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_wal_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BulkWalEntry.ProtoReflect.Descriptor instead.
func (*BulkWalEntry) Descriptor() ([]byte, []int) {
return file_greptime_v1_wal_proto_rawDescGZIP(), []int{3}
}
func (x *BulkWalEntry) GetSequence() uint64 {
if x != nil {
return x.Sequence
}
return 0
}
func (x *BulkWalEntry) GetMaxTs() int64 {
if x != nil {
return x.MaxTs
}
return 0
}
func (x *BulkWalEntry) GetMinTs() int64 {
if x != nil {
return x.MinTs
}
return 0
}
func (x *BulkWalEntry) GetTimestampIndex() uint32 {
if x != nil {
return x.TimestampIndex
}
return 0
}
func (m *BulkWalEntry) GetBody() isBulkWalEntry_Body {
if m != nil {
return m.Body
}
return nil
}
func (x *BulkWalEntry) GetArrowIpc() *ArrowIpc {
if x, ok := x.GetBody().(*BulkWalEntry_ArrowIpc); ok {
return x.ArrowIpc
}
return nil
}
type isBulkWalEntry_Body interface {
isBulkWalEntry_Body()
}
type BulkWalEntry_ArrowIpc struct {
ArrowIpc *ArrowIpc `protobuf:"bytes,5,opt,name=arrow_ipc,json=arrowIpc,proto3,oneof"`
}
func (*BulkWalEntry_ArrowIpc) isBulkWalEntry_Body() {}
var File_greptime_v1_wal_proto protoreflect.FileDescriptor
var file_greptime_v1_wal_proto_rawDesc = []byte{
0x0a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x61,
0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x77, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5e, 0x0a, 0x09, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x69,
0x6e, 0x74, 0x12, 0x51, 0x0a, 0x14, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65,
0x79, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50,
0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e,
0x67, 0x52, 0x12, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x63,
0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0xb2, 0x01, 0x0a, 0x08, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x07, 0x6f, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x4f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x54, 0x79, 0x70, 0x65,
0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x04,
0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72,
0x6f, 0x77, 0x73, 0x12, 0x35, 0x0a, 0x0a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x68, 0x69, 0x6e,
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x52,
0x09, 0x77, 0x72, 0x69, 0x74, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x08, 0x57, 0x61,
0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x33, 0x0a, 0x09, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x52, 0x09, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x62,
0x75, 0x6c, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x42, 0x75, 0x6c, 0x6b, 0x57, 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x62, 0x75,
0x6c, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0xbf, 0x01, 0x0a, 0x0c, 0x42, 0x75,
0x6c, 0x6b, 0x57, 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65,
0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65,
0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x73,
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6d, 0x61, 0x78, 0x54, 0x73, 0x12, 0x15, 0x0a,
0x06, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6d,
0x69, 0x6e, 0x54, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x34, 0x0a,
0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69, 0x70, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48, 0x00, 0x52, 0x08, 0x61, 0x72, 0x72, 0x6f, 0x77,
0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x2a, 0x1d, 0x0a, 0x06, 0x4f,
0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10,
0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x55, 0x54, 0x10, 0x01, 0x2a, 0x2b, 0x0a, 0x12, 0x50, 0x72,
0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
0x12, 0x09, 0x0a, 0x05, 0x44, 0x45, 0x4e, 0x53, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53,
0x50, 0x41, 0x52, 0x53, 0x45, 0x10, 0x01, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65,
0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_greptime_v1_wal_proto_rawDescOnce sync.Once
file_greptime_v1_wal_proto_rawDescData = file_greptime_v1_wal_proto_rawDesc
)
func file_greptime_v1_wal_proto_rawDescGZIP() []byte {
file_greptime_v1_wal_proto_rawDescOnce.Do(func() {
file_greptime_v1_wal_proto_rawDescData = protoimpl.X.CompressGZIP(file_greptime_v1_wal_proto_rawDescData)
})
return file_greptime_v1_wal_proto_rawDescData
}
var file_greptime_v1_wal_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_greptime_v1_wal_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_greptime_v1_wal_proto_goTypes = []interface{}{
(OpType)(0), // 0: greptime.v1.OpType
(PrimaryKeyEncoding)(0), // 1: greptime.v1.PrimaryKeyEncoding
(*WriteHint)(nil), // 2: greptime.v1.WriteHint
(*Mutation)(nil), // 3: greptime.v1.Mutation
(*WalEntry)(nil), // 4: greptime.v1.WalEntry
(*BulkWalEntry)(nil), // 5: greptime.v1.BulkWalEntry
(*Rows)(nil), // 6: greptime.v1.Rows
(*ArrowIpc)(nil), // 7: greptime.v1.ArrowIpc
}
var file_greptime_v1_wal_proto_depIdxs = []int32{
1, // 0: greptime.v1.WriteHint.primary_key_encoding:type_name -> greptime.v1.PrimaryKeyEncoding
0, // 1: greptime.v1.Mutation.op_type:type_name -> greptime.v1.OpType
6, // 2: greptime.v1.Mutation.rows:type_name -> greptime.v1.Rows
2, // 3: greptime.v1.Mutation.write_hint:type_name -> greptime.v1.WriteHint
3, // 4: greptime.v1.WalEntry.mutations:type_name -> greptime.v1.Mutation
5, // 5: greptime.v1.WalEntry.bulk_entries:type_name -> greptime.v1.BulkWalEntry
7, // 6: greptime.v1.BulkWalEntry.arrow_ipc:type_name -> greptime.v1.ArrowIpc
7, // [7:7] is the sub-list for method output_type
7, // [7:7] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
}
func init() { file_greptime_v1_wal_proto_init() }
func file_greptime_v1_wal_proto_init() {
if File_greptime_v1_wal_proto != nil {
return
}
file_greptime_v1_common_proto_init()
file_greptime_v1_row_proto_init()
if !protoimpl.UnsafeEnabled {
file_greptime_v1_wal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*WriteHint); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_wal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Mutation); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_wal_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*WalEntry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_wal_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BulkWalEntry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_greptime_v1_wal_proto_msgTypes[3].OneofWrappers = []interface{}{
(*BulkWalEntry_ArrowIpc)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_wal_proto_rawDesc,
NumEnums: 2,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_greptime_v1_wal_proto_goTypes,
DependencyIndexes: file_greptime_v1_wal_proto_depIdxs,
EnumInfos: file_greptime_v1_wal_proto_enumTypes,
MessageInfos: file_greptime_v1_wal_proto_msgTypes,
}.Build()
File_greptime_v1_wal_proto = out.File
file_greptime_v1_wal_proto_rawDesc = nil
file_greptime_v1_wal_proto_goTypes = nil
file_greptime_v1_wal_proto_depIdxs = nil
}