| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.26.0 |
| 4 |
// protoc v3.16.0 |
| 5 |
// source: test.proto |
| 6 |
|
| 7 |
package pb |
| 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 TestRequest struct { |
| 24 |
state protoimpl.MessageState |
| 25 |
sizeCache protoimpl.SizeCache |
| 26 |
unknownFields protoimpl.UnknownFields |
| 27 |
|
| 28 |
A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` |
| 29 |
B int64 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` |
| 30 |
} |
| 31 |
|
| 32 |
func (x *TestRequest) Reset() { |
| 33 |
*x = TestRequest{} |
| 34 |
if protoimpl.UnsafeEnabled { |
| 35 |
mi := &file_test_proto_msgTypes[0] |
| 36 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 37 |
ms.StoreMessageInfo(mi) |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
func (x *TestRequest) String() string { |
| 42 |
return protoimpl.X.MessageStringOf(x) |
| 43 |
} |
| 44 |
|
| 45 |
func (*TestRequest) ProtoMessage() {} |
| 46 |
|
| 47 |
func (x *TestRequest) ProtoReflect() protoreflect.Message { |
| 48 |
mi := &file_test_proto_msgTypes[0] |
| 49 |
if protoimpl.UnsafeEnabled && x != nil { |
| 50 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 51 |
if ms.LoadMessageInfo() == nil { |
| 52 |
ms.StoreMessageInfo(mi) |
| 53 |
} |
| 54 |
return ms |
| 55 |
} |
| 56 |
return mi.MessageOf(x) |
| 57 |
} |
| 58 |
|
| 59 |
// Deprecated: Use TestRequest.ProtoReflect.Descriptor instead. |
| 60 |
func (*TestRequest) Descriptor() ([]byte, []int) { |
| 61 |
return file_test_proto_rawDescGZIP(), []int{0} |
| 62 |
} |
| 63 |
|
| 64 |
func (x *TestRequest) GetA() string { |
| 65 |
if x != nil { |
| 66 |
return x.A |
| 67 |
} |
| 68 |
return "" |
| 69 |
} |
| 70 |
|
| 71 |
func (x *TestRequest) GetB() int64 { |
| 72 |
if x != nil { |
| 73 |
return x.B |
| 74 |
} |
| 75 |
return 0 |
| 76 |
} |
| 77 |
|
| 78 |
type TestResponse struct { |
| 79 |
state protoimpl.MessageState |
| 80 |
sizeCache protoimpl.SizeCache |
| 81 |
unknownFields protoimpl.UnknownFields |
| 82 |
|
| 83 |
V string `protobuf:"bytes,1,opt,name=v,proto3" json:"v,omitempty"` |
| 84 |
} |
| 85 |
|
| 86 |
func (x *TestResponse) Reset() { |
| 87 |
*x = TestResponse{} |
| 88 |
if protoimpl.UnsafeEnabled { |
| 89 |
mi := &file_test_proto_msgTypes[1] |
| 90 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 91 |
ms.StoreMessageInfo(mi) |
| 92 |
} |
| 93 |
} |
| 94 |
|
| 95 |
func (x *TestResponse) String() string { |
| 96 |
return protoimpl.X.MessageStringOf(x) |
| 97 |
} |
| 98 |
|
| 99 |
func (*TestResponse) ProtoMessage() {} |
| 100 |
|
| 101 |
func (x *TestResponse) ProtoReflect() protoreflect.Message { |
| 102 |
mi := &file_test_proto_msgTypes[1] |
| 103 |
if protoimpl.UnsafeEnabled && x != nil { |
| 104 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 105 |
if ms.LoadMessageInfo() == nil { |
| 106 |
ms.StoreMessageInfo(mi) |
| 107 |
} |
| 108 |
return ms |
| 109 |
} |
| 110 |
return mi.MessageOf(x) |
| 111 |
} |
| 112 |
|
| 113 |
// Deprecated: Use TestResponse.ProtoReflect.Descriptor instead. |
| 114 |
func (*TestResponse) Descriptor() ([]byte, []int) { |
| 115 |
return file_test_proto_rawDescGZIP(), []int{1} |
| 116 |
} |
| 117 |
|
| 118 |
func (x *TestResponse) GetV() string { |
| 119 |
if x != nil { |
| 120 |
return x.V |
| 121 |
} |
| 122 |
return "" |
| 123 |
} |
| 124 |
|
| 125 |
var File_test_proto protoreflect.FileDescriptor |
| 126 |
|
| 127 |
var file_test_proto_rawDesc = []byte{ |
| 128 |
0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, |
| 129 |
0x22, 0x29, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, |
| 130 |
0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x61, 0x12, 0x0c, 0x0a, |
| 131 |
0x01, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x62, 0x22, 0x1c, 0x0a, 0x0c, 0x54, |
| 132 |
0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x76, |
| 133 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x76, 0x32, 0x33, 0x0a, 0x04, 0x54, 0x65, 0x73, |
| 134 |
0x74, 0x12, 0x2b, 0x0a, 0x04, 0x54, 0x65, 0x73, 0x74, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x54, |
| 135 |
0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, |
| 136 |
0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, 0x06, |
| 137 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 138 |
} |
| 139 |
|
| 140 |
var ( |
| 141 |
file_test_proto_rawDescOnce sync.Once |
| 142 |
file_test_proto_rawDescData = file_test_proto_rawDesc |
| 143 |
) |
| 144 |
|
| 145 |
func file_test_proto_rawDescGZIP() []byte { |
| 146 |
file_test_proto_rawDescOnce.Do(func() { |
| 147 |
file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData) |
| 148 |
}) |
| 149 |
return file_test_proto_rawDescData |
| 150 |
} |
| 151 |
|
| 152 |
var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 153 |
var file_test_proto_goTypes = []interface{}{ |
| 154 |
(*TestRequest)(nil), // 0: pb.TestRequest |
| 155 |
(*TestResponse)(nil), // 1: pb.TestResponse |
| 156 |
} |
| 157 |
var file_test_proto_depIdxs = []int32{ |
| 158 |
0, // 0: pb.Test.Test:input_type -> pb.TestRequest |
| 159 |
1, // 1: pb.Test.Test:output_type -> pb.TestResponse |
| 160 |
1, // [1:2] is the sub-list for method output_type |
| 161 |
0, // [0:1] is the sub-list for method input_type |
| 162 |
0, // [0:0] is the sub-list for extension type_name |
| 163 |
0, // [0:0] is the sub-list for extension extendee |
| 164 |
0, // [0:0] is the sub-list for field type_name |
| 165 |
} |
| 166 |
|
| 167 |
func init() { file_test_proto_init() } |
| 168 |
func file_test_proto_init() { |
| 169 |
if File_test_proto != nil { |
| 170 |
return |
| 171 |
} |
| 172 |
if !protoimpl.UnsafeEnabled { |
| 173 |
file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 174 |
switch v := v.(*TestRequest); i { |
| 175 |
case 0: |
| 176 |
return &v.state |
| 177 |
case 1: |
| 178 |
return &v.sizeCache |
| 179 |
case 2: |
| 180 |
return &v.unknownFields |
| 181 |
default: |
| 182 |
return nil |
| 183 |
} |
| 184 |
} |
| 185 |
file_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 186 |
switch v := v.(*TestResponse); i { |
| 187 |
case 0: |
| 188 |
return &v.state |
| 189 |
case 1: |
| 190 |
return &v.sizeCache |
| 191 |
case 2: |
| 192 |
return &v.unknownFields |
| 193 |
default: |
| 194 |
return nil |
| 195 |
} |
| 196 |
} |
| 197 |
} |
| 198 |
type x struct{} |
| 199 |
out := protoimpl.TypeBuilder{ |
| 200 |
File: protoimpl.DescBuilder{ |
| 201 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 202 |
RawDescriptor: file_test_proto_rawDesc, |
| 203 |
NumEnums: 0, |
| 204 |
NumMessages: 2, |
| 205 |
NumExtensions: 0, |
| 206 |
NumServices: 1, |
| 207 |
}, |
| 208 |
GoTypes: file_test_proto_goTypes, |
| 209 |
DependencyIndexes: file_test_proto_depIdxs, |
| 210 |
MessageInfos: file_test_proto_msgTypes, |
| 211 |
}.Build() |
| 212 |
File_test_proto = out.File |
| 213 |
file_test_proto_rawDesc = nil |
| 214 |
file_test_proto_goTypes = nil |
| 215 |
file_test_proto_depIdxs = nil |
| 216 |
} |