|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.34.2
- // protoc v4.22.3
- // source: pkgs/rpc/rpc.proto
-
- package rpc
-
- 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 ChunkedDataType int32
-
- const (
- ChunkedDataType_Error ChunkedDataType = 0
- ChunkedDataType_EOF ChunkedDataType = 1
- ChunkedDataType_NewPart ChunkedDataType = 2
- ChunkedDataType_Data ChunkedDataType = 3
- )
-
- // Enum value maps for ChunkedDataType.
- var (
- ChunkedDataType_name = map[int32]string{
- 0: "Error",
- 1: "EOF",
- 2: "NewPart",
- 3: "Data",
- }
- ChunkedDataType_value = map[string]int32{
- "Error": 0,
- "EOF": 1,
- "NewPart": 2,
- "Data": 3,
- }
- )
-
- func (x ChunkedDataType) Enum() *ChunkedDataType {
- p := new(ChunkedDataType)
- *p = x
- return p
- }
-
- func (x ChunkedDataType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
-
- func (ChunkedDataType) Descriptor() protoreflect.EnumDescriptor {
- return file_pkgs_rpc_rpc_proto_enumTypes[0].Descriptor()
- }
-
- func (ChunkedDataType) Type() protoreflect.EnumType {
- return &file_pkgs_rpc_rpc_proto_enumTypes[0]
- }
-
- func (x ChunkedDataType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
-
- // Deprecated: Use ChunkedDataType.Descriptor instead.
- func (ChunkedDataType) EnumDescriptor() ([]byte, []int) {
- return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{0}
- }
-
- type Request struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Payload []byte `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"`
- }
-
- func (x *Request) Reset() {
- *x = Request{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_rpc_rpc_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *Request) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*Request) ProtoMessage() {}
-
- func (x *Request) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_rpc_rpc_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 Request.ProtoReflect.Descriptor instead.
- func (*Request) Descriptor() ([]byte, []int) {
- return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{0}
- }
-
- func (x *Request) GetPayload() []byte {
- if x != nil {
- return x.Payload
- }
- return nil
- }
-
- type Response struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Payload []byte `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"`
- }
-
- func (x *Response) Reset() {
- *x = Response{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_rpc_rpc_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *Response) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*Response) ProtoMessage() {}
-
- func (x *Response) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_rpc_rpc_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 Response.ProtoReflect.Descriptor instead.
- func (*Response) Descriptor() ([]byte, []int) {
- return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{1}
- }
-
- func (x *Response) GetPayload() []byte {
- if x != nil {
- return x.Payload
- }
- return nil
- }
-
- type ChunkedData struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Type ChunkedDataType `protobuf:"varint,1,opt,name=Type,proto3,enum=rpc.ChunkedDataType" json:"Type,omitempty"`
- Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
- }
-
- func (x *ChunkedData) Reset() {
- *x = ChunkedData{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_rpc_rpc_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *ChunkedData) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*ChunkedData) ProtoMessage() {}
-
- func (x *ChunkedData) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_rpc_rpc_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 ChunkedData.ProtoReflect.Descriptor instead.
- func (*ChunkedData) Descriptor() ([]byte, []int) {
- return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{2}
- }
-
- func (x *ChunkedData) GetType() ChunkedDataType {
- if x != nil {
- return x.Type
- }
- return ChunkedDataType_Error
- }
-
- func (x *ChunkedData) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
- }
-
- type CodeError struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Code string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"`
- Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
- }
-
- func (x *CodeError) Reset() {
- *x = CodeError{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_rpc_rpc_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *CodeError) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*CodeError) ProtoMessage() {}
-
- func (x *CodeError) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_rpc_rpc_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 CodeError.ProtoReflect.Descriptor instead.
- func (*CodeError) Descriptor() ([]byte, []int) {
- return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{3}
- }
-
- func (x *CodeError) GetCode() string {
- if x != nil {
- return x.Code
- }
- return ""
- }
-
- func (x *CodeError) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
-
- var File_pkgs_rpc_rpc_proto protoreflect.FileDescriptor
-
- var file_pkgs_rpc_rpc_proto_rawDesc = []byte{
- 0x0a, 0x12, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x72, 0x70, 0x63, 0x22, 0x23, 0x0a, 0x07, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x24,
- 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x50, 0x61,
- 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x50, 0x61, 0x79,
- 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x4b, 0x0a, 0x0b, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x44,
- 0x61, 0x74, 0x61, 0x12, 0x28, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x14, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x44,
- 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a,
- 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, 0x61, 0x74,
- 0x61, 0x22, 0x39, 0x0a, 0x09, 0x43, 0x6f, 0x64, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12,
- 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x43, 0x6f,
- 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x3c, 0x0a, 0x0f,
- 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12,
- 0x09, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x4f,
- 0x46, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x65, 0x77, 0x50, 0x61, 0x72, 0x74, 0x10, 0x02,
- 0x12, 0x08, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x10, 0x03, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69,
- 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x63, 0x6e, 0x2f, 0x63, 0x6c, 0x6f,
- 0x75, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x6a, 0x63, 0x73, 0x2d, 0x70, 0x75, 0x62, 0x2f, 0x63,
- 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x3b, 0x72,
- 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
-
- var (
- file_pkgs_rpc_rpc_proto_rawDescOnce sync.Once
- file_pkgs_rpc_rpc_proto_rawDescData = file_pkgs_rpc_rpc_proto_rawDesc
- )
-
- func file_pkgs_rpc_rpc_proto_rawDescGZIP() []byte {
- file_pkgs_rpc_rpc_proto_rawDescOnce.Do(func() {
- file_pkgs_rpc_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkgs_rpc_rpc_proto_rawDescData)
- })
- return file_pkgs_rpc_rpc_proto_rawDescData
- }
-
- var file_pkgs_rpc_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_pkgs_rpc_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
- var file_pkgs_rpc_rpc_proto_goTypes = []any{
- (ChunkedDataType)(0), // 0: rpc.ChunkedDataType
- (*Request)(nil), // 1: rpc.Request
- (*Response)(nil), // 2: rpc.Response
- (*ChunkedData)(nil), // 3: rpc.ChunkedData
- (*CodeError)(nil), // 4: rpc.CodeError
- }
- var file_pkgs_rpc_rpc_proto_depIdxs = []int32{
- 0, // 0: rpc.ChunkedData.Type:type_name -> rpc.ChunkedDataType
- 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_pkgs_rpc_rpc_proto_init() }
- func file_pkgs_rpc_rpc_proto_init() {
- if File_pkgs_rpc_rpc_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_pkgs_rpc_rpc_proto_msgTypes[0].Exporter = func(v any, i int) any {
- switch v := v.(*Request); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_rpc_rpc_proto_msgTypes[1].Exporter = func(v any, i int) any {
- switch v := v.(*Response); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_rpc_rpc_proto_msgTypes[2].Exporter = func(v any, i int) any {
- switch v := v.(*ChunkedData); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_rpc_rpc_proto_msgTypes[3].Exporter = func(v any, i int) any {
- switch v := v.(*CodeError); 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_pkgs_rpc_rpc_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 4,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_pkgs_rpc_rpc_proto_goTypes,
- DependencyIndexes: file_pkgs_rpc_rpc_proto_depIdxs,
- EnumInfos: file_pkgs_rpc_rpc_proto_enumTypes,
- MessageInfos: file_pkgs_rpc_rpc_proto_msgTypes,
- }.Build()
- File_pkgs_rpc_rpc_proto = out.File
- file_pkgs_rpc_rpc_proto_rawDesc = nil
- file_pkgs_rpc_rpc_proto_goTypes = nil
- file_pkgs_rpc_rpc_proto_depIdxs = nil
- }
|