github.com/cloudwego/kitex@v0.9.0/pkg/remote/codec/protobuf/test.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.15.6
     5  // source: test.proto
     6  
     7  package protobuf
     8  
     9  import (
    10  	reflect "reflect"
    11  	sync "sync"
    12  
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type MockReq struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Msg     string            `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
    30  	StrMap  map[string]string `protobuf:"bytes,2,rep,name=strMap,proto3" json:"strMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    31  	StrList []string          `protobuf:"bytes,3,rep,name=strList,proto3" json:"strList,omitempty"`
    32  }
    33  
    34  func (x *MockReq) Reset() {
    35  	*x = MockReq{}
    36  	if protoimpl.UnsafeEnabled {
    37  		mi := &file_test_proto_msgTypes[0]
    38  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    39  		ms.StoreMessageInfo(mi)
    40  	}
    41  }
    42  
    43  func (x *MockReq) String() string {
    44  	return protoimpl.X.MessageStringOf(x)
    45  }
    46  
    47  func (*MockReq) ProtoMessage() {}
    48  
    49  func (x *MockReq) ProtoReflect() protoreflect.Message {
    50  	mi := &file_test_proto_msgTypes[0]
    51  	if protoimpl.UnsafeEnabled && x != nil {
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		if ms.LoadMessageInfo() == nil {
    54  			ms.StoreMessageInfo(mi)
    55  		}
    56  		return ms
    57  	}
    58  	return mi.MessageOf(x)
    59  }
    60  
    61  // Deprecated: Use MockReq.ProtoReflect.Descriptor instead.
    62  func (*MockReq) Descriptor() ([]byte, []int) {
    63  	return file_test_proto_rawDescGZIP(), []int{0}
    64  }
    65  
    66  func (x *MockReq) GetMsg() string {
    67  	if x != nil {
    68  		return x.Msg
    69  	}
    70  	return ""
    71  }
    72  
    73  func (x *MockReq) GetStrMap() map[string]string {
    74  	if x != nil {
    75  		return x.StrMap
    76  	}
    77  	return nil
    78  }
    79  
    80  func (x *MockReq) GetStrList() []string {
    81  	if x != nil {
    82  		return x.StrList
    83  	}
    84  	return nil
    85  }
    86  
    87  var File_test_proto protoreflect.FileDescriptor
    88  
    89  var file_test_proto_rawDesc = []byte{
    90  	0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72,
    91  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0xa7, 0x01, 0x0a, 0x07, 0x4d, 0x6f, 0x63, 0x6b, 0x52,
    92  	0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
    93  	0x03, 0x6d, 0x73, 0x67, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x4d, 0x61, 0x70, 0x18, 0x02,
    94  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
    95  	0x4d, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x2e, 0x53, 0x74, 0x72, 0x4d, 0x61, 0x70, 0x45, 0x6e,
    96  	0x74, 0x72, 0x79, 0x52, 0x06, 0x73, 0x74, 0x72, 0x4d, 0x61, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73,
    97  	0x74, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x74,
    98  	0x72, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x39, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x4d, 0x61, 0x70, 0x45,
    99  	0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
   100  	0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
   101  	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
   102  	0x42, 0x35, 0x5a, 0x33, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x64, 0x2e, 0x6f,
   103  	0x72, 0x67, 0x2f, 0x6b, 0x69, 0x74, 0x65, 0x2f, 0x6b, 0x69, 0x74, 0x65, 0x78, 0x2f, 0x70, 0x6b,
   104  	0x67, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2f, 0x70,
   105  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   106  }
   107  
   108  var (
   109  	file_test_proto_rawDescOnce sync.Once
   110  	file_test_proto_rawDescData = file_test_proto_rawDesc
   111  )
   112  
   113  func file_test_proto_rawDescGZIP() []byte {
   114  	file_test_proto_rawDescOnce.Do(func() {
   115  		file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData)
   116  	})
   117  	return file_test_proto_rawDescData
   118  }
   119  
   120  var (
   121  	file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   122  	file_test_proto_goTypes  = []interface{}{
   123  		(*MockReq)(nil), // 0: protobuf.MockReq
   124  		nil,             // 1: protobuf.MockReq.StrMapEntry
   125  	}
   126  )
   127  
   128  var file_test_proto_depIdxs = []int32{
   129  	1, // 0: protobuf.MockReq.strMap:type_name -> protobuf.MockReq.StrMapEntry
   130  	1, // [1:1] is the sub-list for method output_type
   131  	1, // [1:1] is the sub-list for method input_type
   132  	1, // [1:1] is the sub-list for extension type_name
   133  	1, // [1:1] is the sub-list for extension extendee
   134  	0, // [0:1] is the sub-list for field type_name
   135  }
   136  
   137  func init() { file_test_proto_init() }
   138  func file_test_proto_init() {
   139  	if File_test_proto != nil {
   140  		return
   141  	}
   142  	if !protoimpl.UnsafeEnabled {
   143  		file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   144  			switch v := v.(*MockReq); i {
   145  			case 0:
   146  				return &v.state
   147  			case 1:
   148  				return &v.sizeCache
   149  			case 2:
   150  				return &v.unknownFields
   151  			default:
   152  				return nil
   153  			}
   154  		}
   155  	}
   156  	type x struct{}
   157  	out := protoimpl.TypeBuilder{
   158  		File: protoimpl.DescBuilder{
   159  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   160  			RawDescriptor: file_test_proto_rawDesc,
   161  			NumEnums:      0,
   162  			NumMessages:   2,
   163  			NumExtensions: 0,
   164  			NumServices:   0,
   165  		},
   166  		GoTypes:           file_test_proto_goTypes,
   167  		DependencyIndexes: file_test_proto_depIdxs,
   168  		MessageInfos:      file_test_proto_msgTypes,
   169  	}.Build()
   170  	File_test_proto = out.File
   171  	file_test_proto_rawDesc = nil
   172  	file_test_proto_goTypes = nil
   173  	file_test_proto_depIdxs = nil
   174  }