github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/enginepb/test.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.0
     4  // 	protoc        v3.20.1
     5  // source: engine/proto/test.proto
     6  
     7  package enginepb
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Record_RecordType int32
    24  
    25  const (
    26  	Record_Data Record_RecordType = 0
    27  	Record_DDL  Record_RecordType = 1
    28  )
    29  
    30  // Enum value maps for Record_RecordType.
    31  var (
    32  	Record_RecordType_name = map[int32]string{
    33  		0: "Data",
    34  		1: "DDL",
    35  	}
    36  	Record_RecordType_value = map[string]int32{
    37  		"Data": 0,
    38  		"DDL":  1,
    39  	}
    40  )
    41  
    42  func (x Record_RecordType) Enum() *Record_RecordType {
    43  	p := new(Record_RecordType)
    44  	*p = x
    45  	return p
    46  }
    47  
    48  func (x Record_RecordType) String() string {
    49  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    50  }
    51  
    52  func (Record_RecordType) Descriptor() protoreflect.EnumDescriptor {
    53  	return file_engine_proto_test_proto_enumTypes[0].Descriptor()
    54  }
    55  
    56  func (Record_RecordType) Type() protoreflect.EnumType {
    57  	return &file_engine_proto_test_proto_enumTypes[0]
    58  }
    59  
    60  func (x Record_RecordType) Number() protoreflect.EnumNumber {
    61  	return protoreflect.EnumNumber(x)
    62  }
    63  
    64  // Deprecated: Use Record_RecordType.Descriptor instead.
    65  func (Record_RecordType) EnumDescriptor() ([]byte, []int) {
    66  	return file_engine_proto_test_proto_rawDescGZIP(), []int{0, 0}
    67  }
    68  
    69  type Record struct {
    70  	state         protoimpl.MessageState
    71  	sizeCache     protoimpl.SizeCache
    72  	unknownFields protoimpl.UnknownFields
    73  
    74  	Tp        Record_RecordType `protobuf:"varint,1,opt,name=tp,proto3,enum=enginepb.Record_RecordType" json:"tp,omitempty"`
    75  	SchemaVer int32             `protobuf:"varint,2,opt,name=schema_ver,json=schemaVer,proto3" json:"schema_ver,omitempty"`
    76  	Tid       int32             `protobuf:"varint,3,opt,name=tid,proto3" json:"tid,omitempty"`
    77  	Gtid      int32             `protobuf:"varint,4,opt,name=gtid,proto3" json:"gtid,omitempty"`
    78  	Pk        int32             `protobuf:"varint,5,opt,name=pk,proto3" json:"pk,omitempty"`
    79  	// for record time
    80  	TimeTracer []int64 `protobuf:"varint,6,rep,packed,name=time_tracer,json=timeTracer,proto3" json:"time_tracer,omitempty"`
    81  }
    82  
    83  func (x *Record) Reset() {
    84  	*x = Record{}
    85  	if protoimpl.UnsafeEnabled {
    86  		mi := &file_engine_proto_test_proto_msgTypes[0]
    87  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    88  		ms.StoreMessageInfo(mi)
    89  	}
    90  }
    91  
    92  func (x *Record) String() string {
    93  	return protoimpl.X.MessageStringOf(x)
    94  }
    95  
    96  func (*Record) ProtoMessage() {}
    97  
    98  func (x *Record) ProtoReflect() protoreflect.Message {
    99  	mi := &file_engine_proto_test_proto_msgTypes[0]
   100  	if protoimpl.UnsafeEnabled && x != nil {
   101  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   102  		if ms.LoadMessageInfo() == nil {
   103  			ms.StoreMessageInfo(mi)
   104  		}
   105  		return ms
   106  	}
   107  	return mi.MessageOf(x)
   108  }
   109  
   110  // Deprecated: Use Record.ProtoReflect.Descriptor instead.
   111  func (*Record) Descriptor() ([]byte, []int) {
   112  	return file_engine_proto_test_proto_rawDescGZIP(), []int{0}
   113  }
   114  
   115  func (x *Record) GetTp() Record_RecordType {
   116  	if x != nil {
   117  		return x.Tp
   118  	}
   119  	return Record_Data
   120  }
   121  
   122  func (x *Record) GetSchemaVer() int32 {
   123  	if x != nil {
   124  		return x.SchemaVer
   125  	}
   126  	return 0
   127  }
   128  
   129  func (x *Record) GetTid() int32 {
   130  	if x != nil {
   131  		return x.Tid
   132  	}
   133  	return 0
   134  }
   135  
   136  func (x *Record) GetGtid() int32 {
   137  	if x != nil {
   138  		return x.Gtid
   139  	}
   140  	return 0
   141  }
   142  
   143  func (x *Record) GetPk() int32 {
   144  	if x != nil {
   145  		return x.Pk
   146  	}
   147  	return 0
   148  }
   149  
   150  func (x *Record) GetTimeTracer() []int64 {
   151  	if x != nil {
   152  		return x.TimeTracer
   153  	}
   154  	return nil
   155  }
   156  
   157  type TestBinlogRequest struct {
   158  	state         protoimpl.MessageState
   159  	sizeCache     protoimpl.SizeCache
   160  	unknownFields protoimpl.UnknownFields
   161  
   162  	Gtid int32 `protobuf:"varint,1,opt,name=gtid,proto3" json:"gtid,omitempty"`
   163  }
   164  
   165  func (x *TestBinlogRequest) Reset() {
   166  	*x = TestBinlogRequest{}
   167  	if protoimpl.UnsafeEnabled {
   168  		mi := &file_engine_proto_test_proto_msgTypes[1]
   169  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   170  		ms.StoreMessageInfo(mi)
   171  	}
   172  }
   173  
   174  func (x *TestBinlogRequest) String() string {
   175  	return protoimpl.X.MessageStringOf(x)
   176  }
   177  
   178  func (*TestBinlogRequest) ProtoMessage() {}
   179  
   180  func (x *TestBinlogRequest) ProtoReflect() protoreflect.Message {
   181  	mi := &file_engine_proto_test_proto_msgTypes[1]
   182  	if protoimpl.UnsafeEnabled && x != nil {
   183  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   184  		if ms.LoadMessageInfo() == nil {
   185  			ms.StoreMessageInfo(mi)
   186  		}
   187  		return ms
   188  	}
   189  	return mi.MessageOf(x)
   190  }
   191  
   192  // Deprecated: Use TestBinlogRequest.ProtoReflect.Descriptor instead.
   193  func (*TestBinlogRequest) Descriptor() ([]byte, []int) {
   194  	return file_engine_proto_test_proto_rawDescGZIP(), []int{1}
   195  }
   196  
   197  func (x *TestBinlogRequest) GetGtid() int32 {
   198  	if x != nil {
   199  		return x.Gtid
   200  	}
   201  	return 0
   202  }
   203  
   204  var File_engine_proto_test_proto protoreflect.FileDescriptor
   205  
   206  var file_engine_proto_test_proto_rawDesc = []byte{
   207  	0x0a, 0x17, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74,
   208  	0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e,
   209  	0x65, 0x70, 0x62, 0x22, 0xcc, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2b,
   210  	0x0a, 0x02, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x65, 0x6e, 0x67,
   211  	0x69, 0x6e, 0x65, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x52, 0x65, 0x63,
   212  	0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x02, 0x74, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73,
   213  	0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
   214  	0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x69,
   215  	0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
   216  	0x67, 0x74, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x67, 0x74, 0x69, 0x64,
   217  	0x12, 0x0e, 0x0a, 0x02, 0x70, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x70, 0x6b,
   218  	0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x18,
   219  	0x06, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x72, 0x61, 0x63, 0x65,
   220  	0x72, 0x22, 0x1f, 0x0a, 0x0a, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12,
   221  	0x08, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x44, 0x4c,
   222  	0x10, 0x01, 0x22, 0x27, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x42, 0x69, 0x6e, 0x6c, 0x6f, 0x67,
   223  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x74, 0x69, 0x64, 0x18,
   224  	0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x67, 0x74, 0x69, 0x64, 0x32, 0x4c, 0x0a, 0x0b, 0x54,
   225  	0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x46, 0x65,
   226  	0x65, 0x64, 0x42, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e,
   227  	0x65, 0x70, 0x62, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x42, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x52, 0x65,
   228  	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x70, 0x62,
   229  	0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x30, 0x01, 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x69, 0x74,
   230  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x69, 0x6e, 0x67, 0x63, 0x61, 0x70, 0x2f,
   231  	0x74, 0x69, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x65, 0x6e,
   232  	0x67, 0x69, 0x6e, 0x65, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   233  }
   234  
   235  var (
   236  	file_engine_proto_test_proto_rawDescOnce sync.Once
   237  	file_engine_proto_test_proto_rawDescData = file_engine_proto_test_proto_rawDesc
   238  )
   239  
   240  func file_engine_proto_test_proto_rawDescGZIP() []byte {
   241  	file_engine_proto_test_proto_rawDescOnce.Do(func() {
   242  		file_engine_proto_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_engine_proto_test_proto_rawDescData)
   243  	})
   244  	return file_engine_proto_test_proto_rawDescData
   245  }
   246  
   247  var file_engine_proto_test_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   248  var file_engine_proto_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   249  var file_engine_proto_test_proto_goTypes = []interface{}{
   250  	(Record_RecordType)(0),    // 0: enginepb.Record.RecordType
   251  	(*Record)(nil),            // 1: enginepb.Record
   252  	(*TestBinlogRequest)(nil), // 2: enginepb.TestBinlogRequest
   253  }
   254  var file_engine_proto_test_proto_depIdxs = []int32{
   255  	0, // 0: enginepb.Record.tp:type_name -> enginepb.Record.RecordType
   256  	2, // 1: enginepb.TestService.FeedBinlog:input_type -> enginepb.TestBinlogRequest
   257  	1, // 2: enginepb.TestService.FeedBinlog:output_type -> enginepb.Record
   258  	2, // [2:3] is the sub-list for method output_type
   259  	1, // [1:2] is the sub-list for method input_type
   260  	1, // [1:1] is the sub-list for extension type_name
   261  	1, // [1:1] is the sub-list for extension extendee
   262  	0, // [0:1] is the sub-list for field type_name
   263  }
   264  
   265  func init() { file_engine_proto_test_proto_init() }
   266  func file_engine_proto_test_proto_init() {
   267  	if File_engine_proto_test_proto != nil {
   268  		return
   269  	}
   270  	if !protoimpl.UnsafeEnabled {
   271  		file_engine_proto_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   272  			switch v := v.(*Record); i {
   273  			case 0:
   274  				return &v.state
   275  			case 1:
   276  				return &v.sizeCache
   277  			case 2:
   278  				return &v.unknownFields
   279  			default:
   280  				return nil
   281  			}
   282  		}
   283  		file_engine_proto_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   284  			switch v := v.(*TestBinlogRequest); i {
   285  			case 0:
   286  				return &v.state
   287  			case 1:
   288  				return &v.sizeCache
   289  			case 2:
   290  				return &v.unknownFields
   291  			default:
   292  				return nil
   293  			}
   294  		}
   295  	}
   296  	type x struct{}
   297  	out := protoimpl.TypeBuilder{
   298  		File: protoimpl.DescBuilder{
   299  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   300  			RawDescriptor: file_engine_proto_test_proto_rawDesc,
   301  			NumEnums:      1,
   302  			NumMessages:   2,
   303  			NumExtensions: 0,
   304  			NumServices:   1,
   305  		},
   306  		GoTypes:           file_engine_proto_test_proto_goTypes,
   307  		DependencyIndexes: file_engine_proto_test_proto_depIdxs,
   308  		EnumInfos:         file_engine_proto_test_proto_enumTypes,
   309  		MessageInfos:      file_engine_proto_test_proto_msgTypes,
   310  	}.Build()
   311  	File_engine_proto_test_proto = out.File
   312  	file_engine_proto_test_proto_rawDesc = nil
   313  	file_engine_proto_test_proto_goTypes = nil
   314  	file_engine_proto_test_proto_depIdxs = nil
   315  }