You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/oplog/oplog_test/oplog_test.pb.go

398 lines
12 KiB

// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: BUSL-1.1
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: controller/storage/oplog/test/v1/oplog_test.proto
// define a test proto package
package oplog_test
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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)
)
// TestUser for gorm test user model
type TestUser struct {
state protoimpl.MessageState `protogen:"open.v1"`
// @inject_tag: gorm:"primary_key"
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
PhoneNumber string `protobuf:"bytes,5,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
// @inject_tag: gorm:"default:null"
Version uint32 `protobuf:"varint,9,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"`
// @inject_tag: gorm:"-" json:"-"
Table string `protobuf:"bytes,7,opt,name=table,proto3" json:"-" gorm:"-"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestUser) Reset() {
*x = TestUser{}
mi := &file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestUser) ProtoMessage() {}
func (x *TestUser) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestUser.ProtoReflect.Descriptor instead.
func (*TestUser) Descriptor() ([]byte, []int) {
return file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescGZIP(), []int{0}
}
func (x *TestUser) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
func (x *TestUser) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TestUser) GetPhoneNumber() string {
if x != nil {
return x.PhoneNumber
}
return ""
}
func (x *TestUser) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *TestUser) GetVersion() uint32 {
if x != nil {
return x.Version
}
return 0
}
func (x *TestUser) GetTable() string {
if x != nil {
return x.Table
}
return ""
}
// TestCar for gorm test car model
type TestCar struct {
state protoimpl.MessageState `protogen:"open.v1"`
// @inject_tag: gorm:"primary_key"
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"`
Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"`
Mpg int32 `protobuf:"varint,5,opt,name=mpg,proto3" json:"mpg,omitempty"`
// @inject_tag: gorm:"-" json:"-"
Table string `protobuf:"bytes,6,opt,name=table,proto3" json:"-" gorm:"-"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestCar) Reset() {
*x = TestCar{}
mi := &file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestCar) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCar) ProtoMessage() {}
func (x *TestCar) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestCar.ProtoReflect.Descriptor instead.
func (*TestCar) Descriptor() ([]byte, []int) {
return file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescGZIP(), []int{1}
}
func (x *TestCar) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
func (x *TestCar) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
func (x *TestCar) GetMpg() int32 {
if x != nil {
return x.Mpg
}
return 0
}
func (x *TestCar) GetTable() string {
if x != nil {
return x.Table
}
return ""
}
// TestRental for gorm test rental model
type TestRental struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
CarId uint32 `protobuf:"varint,2,opt,name=car_id,json=carId,proto3" json:"car_id,omitempty"`
// @inject_tag: gorm:"-" json:"-"
Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"-" gorm:"-"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestRental) Reset() {
*x = TestRental{}
mi := &file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestRental) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestRental) ProtoMessage() {}
func (x *TestRental) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestRental.ProtoReflect.Descriptor instead.
func (*TestRental) Descriptor() ([]byte, []int) {
return file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescGZIP(), []int{2}
}
func (x *TestRental) GetUserId() uint32 {
if x != nil {
return x.UserId
}
return 0
}
func (x *TestRental) GetCarId() uint32 {
if x != nil {
return x.CarId
}
return 0
}
func (x *TestRental) GetTable() string {
if x != nil {
return x.Table
}
return ""
}
// TestNonReplayableUser for negative test
type TestNonReplayableUser struct {
state protoimpl.MessageState `protogen:"open.v1"`
// @inject_tag: gorm:"primary_key"
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
PhoneNumber string `protobuf:"bytes,5,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestNonReplayableUser) Reset() {
*x = TestNonReplayableUser{}
mi := &file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TestNonReplayableUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestNonReplayableUser) ProtoMessage() {}
func (x *TestNonReplayableUser) ProtoReflect() protoreflect.Message {
mi := &file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestNonReplayableUser.ProtoReflect.Descriptor instead.
func (*TestNonReplayableUser) Descriptor() ([]byte, []int) {
return file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescGZIP(), []int{3}
}
func (x *TestNonReplayableUser) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
func (x *TestNonReplayableUser) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TestNonReplayableUser) GetPhoneNumber() string {
if x != nil {
return x.PhoneNumber
}
return ""
}
func (x *TestNonReplayableUser) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
var File_controller_storage_oplog_test_v1_oplog_test_proto protoreflect.FileDescriptor
const file_controller_storage_oplog_test_v1_oplog_test_proto_rawDesc = "" +
"\n" +
"1controller/storage/oplog/test/v1/oplog_test.proto\x12 controller.storage.oplog.test.v1\"\x97\x01\n" +
"\bTestUser\x12\x0e\n" +
"\x02id\x18\x01 \x01(\rR\x02id\x12\x12\n" +
"\x04name\x18\x04 \x01(\tR\x04name\x12!\n" +
"\fphone_number\x18\x05 \x01(\tR\vphoneNumber\x12\x14\n" +
"\x05email\x18\x06 \x01(\tR\x05email\x12\x18\n" +
"\aversion\x18\t \x01(\rR\aversion\x12\x14\n" +
"\x05table\x18\a \x01(\tR\x05table\"W\n" +
"\aTestCar\x12\x0e\n" +
"\x02id\x18\x01 \x01(\rR\x02id\x12\x14\n" +
"\x05model\x18\x04 \x01(\tR\x05model\x12\x10\n" +
"\x03mpg\x18\x05 \x01(\x05R\x03mpg\x12\x14\n" +
"\x05table\x18\x06 \x01(\tR\x05table\"R\n" +
"\n" +
"TestRental\x12\x17\n" +
"\auser_id\x18\x01 \x01(\rR\x06userId\x12\x15\n" +
"\x06car_id\x18\x02 \x01(\rR\x05carId\x12\x14\n" +
"\x05table\x18\x03 \x01(\tR\x05table\"t\n" +
"\x15TestNonReplayableUser\x12\x0e\n" +
"\x02id\x18\x01 \x01(\rR\x02id\x12\x12\n" +
"\x04name\x18\x04 \x01(\tR\x04name\x12!\n" +
"\fphone_number\x18\x05 \x01(\tR\vphoneNumber\x12\x14\n" +
"\x05email\x18\x06 \x01(\tR\x05emailBDZBgithub.com/hashicorp/boundary/internal/oplog/oplog_test;oplog_testb\x06proto3"
var (
file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescOnce sync.Once
file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescData []byte
)
func file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescGZIP() []byte {
file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescOnce.Do(func() {
file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_storage_oplog_test_v1_oplog_test_proto_rawDesc), len(file_controller_storage_oplog_test_v1_oplog_test_proto_rawDesc)))
})
return file_controller_storage_oplog_test_v1_oplog_test_proto_rawDescData
}
var file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_storage_oplog_test_v1_oplog_test_proto_goTypes = []any{
(*TestUser)(nil), // 0: controller.storage.oplog.test.v1.TestUser
(*TestCar)(nil), // 1: controller.storage.oplog.test.v1.TestCar
(*TestRental)(nil), // 2: controller.storage.oplog.test.v1.TestRental
(*TestNonReplayableUser)(nil), // 3: controller.storage.oplog.test.v1.TestNonReplayableUser
}
var file_controller_storage_oplog_test_v1_oplog_test_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_controller_storage_oplog_test_v1_oplog_test_proto_init() }
func file_controller_storage_oplog_test_v1_oplog_test_proto_init() {
if File_controller_storage_oplog_test_v1_oplog_test_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_storage_oplog_test_v1_oplog_test_proto_rawDesc), len(file_controller_storage_oplog_test_v1_oplog_test_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_controller_storage_oplog_test_v1_oplog_test_proto_goTypes,
DependencyIndexes: file_controller_storage_oplog_test_v1_oplog_test_proto_depIdxs,
MessageInfos: file_controller_storage_oplog_test_v1_oplog_test_proto_msgTypes,
}.Build()
File_controller_storage_oplog_test_v1_oplog_test_proto = out.File
file_controller_storage_oplog_test_v1_oplog_test_proto_goTypes = nil
file_controller_storage_oplog_test_v1_oplog_test_proto_depIdxs = nil
}