// Copyright IBM Corp. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.29.1
// 	protoc        v3.21.12
// source: logrecord.proto

package smartbftprotos

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 LogRecord_Type int32

const (
	LogRecord_ENTRY      LogRecord_Type = 0 // Contains data
	LogRecord_CONTROL    LogRecord_Type = 1 // Does not contain data, only control fields
	LogRecord_CRC_ANCHOR LogRecord_Type = 2 // A CRC anchor point
)

// Enum value maps for LogRecord_Type.
var (
	LogRecord_Type_name = map[int32]string{
		0: "ENTRY",
		1: "CONTROL",
		2: "CRC_ANCHOR",
	}
	LogRecord_Type_value = map[string]int32{
		"ENTRY":      0,
		"CONTROL":    1,
		"CRC_ANCHOR": 2,
	}
)

func (x LogRecord_Type) Enum() *LogRecord_Type {
	p := new(LogRecord_Type)
	*p = x
	return p
}

func (x LogRecord_Type) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (LogRecord_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_logrecord_proto_enumTypes[0].Descriptor()
}

func (LogRecord_Type) Type() protoreflect.EnumType {
	return &file_logrecord_proto_enumTypes[0]
}

func (x LogRecord_Type) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use LogRecord_Type.Descriptor instead.
func (LogRecord_Type) EnumDescriptor() ([]byte, []int) {
	return file_logrecord_proto_rawDescGZIP(), []int{0, 0}
}

type LogRecord struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Type       LogRecord_Type `protobuf:"varint,1,opt,name=type,proto3,enum=smartbftprotos.LogRecord_Type" json:"type,omitempty"`
	TruncateTo bool           `protobuf:"varint,2,opt,name=truncate_to,json=truncateTo,proto3" json:"truncate_to,omitempty"`
	Data       []byte         `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

func (x *LogRecord) Reset() {
	*x = LogRecord{}
	if protoimpl.UnsafeEnabled {
		mi := &file_logrecord_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *LogRecord) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LogRecord) ProtoMessage() {}

func (x *LogRecord) ProtoReflect() protoreflect.Message {
	mi := &file_logrecord_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 LogRecord.ProtoReflect.Descriptor instead.
func (*LogRecord) Descriptor() ([]byte, []int) {
	return file_logrecord_proto_rawDescGZIP(), []int{0}
}

func (x *LogRecord) GetType() LogRecord_Type {
	if x != nil {
		return x.Type
	}
	return LogRecord_ENTRY
}

func (x *LogRecord) GetTruncateTo() bool {
	if x != nil {
		return x.TruncateTo
	}
	return false
}

func (x *LogRecord) GetData() []byte {
	if x != nil {
		return x.Data
	}
	return nil
}

var File_logrecord_proto protoreflect.FileDescriptor

var file_logrecord_proto_rawDesc = []byte{
	0x0a, 0x0f, 0x6c, 0x6f, 0x67, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74,
	0x6f, 0x12, 0x0e, 0x73, 0x6d, 0x61, 0x72, 0x74, 0x62, 0x66, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
	0x73, 0x22, 0xa4, 0x01, 0x0a, 0x09, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12,
	0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e,
	0x73, 0x6d, 0x61, 0x72, 0x74, 0x62, 0x66, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4c,
	0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
	0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f,
	0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61,
	0x74, 0x65, 0x54, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01,
	0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2e, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65,
	0x12, 0x09, 0x0a, 0x05, 0x45, 0x4e, 0x54, 0x52, 0x59, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43,
	0x4f, 0x4e, 0x54, 0x52, 0x4f, 0x4c, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x52, 0x43, 0x5f,
	0x41, 0x4e, 0x43, 0x48, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68,
	0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6d, 0x61, 0x72, 0x74, 0x42, 0x46, 0x54, 0x2d,
	0x47, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x73, 0x6d, 0x61,
	0x72, 0x74, 0x62, 0x66, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x33,
}

var (
	file_logrecord_proto_rawDescOnce sync.Once
	file_logrecord_proto_rawDescData = file_logrecord_proto_rawDesc
)

func file_logrecord_proto_rawDescGZIP() []byte {
	file_logrecord_proto_rawDescOnce.Do(func() {
		file_logrecord_proto_rawDescData = protoimpl.X.CompressGZIP(file_logrecord_proto_rawDescData)
	})
	return file_logrecord_proto_rawDescData
}

var file_logrecord_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_logrecord_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_logrecord_proto_goTypes = []interface{}{
	(LogRecord_Type)(0), // 0: smartbftprotos.LogRecord.Type
	(*LogRecord)(nil),   // 1: smartbftprotos.LogRecord
}
var file_logrecord_proto_depIdxs = []int32{
	0, // 0: smartbftprotos.LogRecord.type:type_name -> smartbftprotos.LogRecord.Type
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_logrecord_proto_init() }
func file_logrecord_proto_init() {
	if File_logrecord_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_logrecord_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*LogRecord); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_logrecord_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_logrecord_proto_goTypes,
		DependencyIndexes: file_logrecord_proto_depIdxs,
		EnumInfos:         file_logrecord_proto_enumTypes,
		MessageInfos:      file_logrecord_proto_msgTypes,
	}.Build()
	File_logrecord_proto = out.File
	file_logrecord_proto_rawDesc = nil
	file_logrecord_proto_goTypes = nil
	file_logrecord_proto_depIdxs = nil
}
