github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/protos/node/subscribe/subscribe.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.34.0 4 // protoc v4.25.3 5 // source: node/subscribe/subscribe.proto 6 7 package subscribe 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 Type int32 24 25 const ( 26 Type_reserve Type = 0 27 Type_trojan Type = 1 28 Type_vmess Type = 2 29 Type_shadowsocks Type = 3 30 Type_shadowsocksr Type = 4 31 ) 32 33 // Enum value maps for Type. 34 var ( 35 Type_name = map[int32]string{ 36 0: "reserve", 37 1: "trojan", 38 2: "vmess", 39 3: "shadowsocks", 40 4: "shadowsocksr", 41 } 42 Type_value = map[string]int32{ 43 "reserve": 0, 44 "trojan": 1, 45 "vmess": 2, 46 "shadowsocks": 3, 47 "shadowsocksr": 4, 48 } 49 ) 50 51 func (x Type) Enum() *Type { 52 p := new(Type) 53 *p = x 54 return p 55 } 56 57 func (x Type) String() string { 58 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 59 } 60 61 func (Type) Descriptor() protoreflect.EnumDescriptor { 62 return file_node_subscribe_subscribe_proto_enumTypes[0].Descriptor() 63 } 64 65 func (Type) Type() protoreflect.EnumType { 66 return &file_node_subscribe_subscribe_proto_enumTypes[0] 67 } 68 69 func (x Type) Number() protoreflect.EnumNumber { 70 return protoreflect.EnumNumber(x) 71 } 72 73 // Deprecated: Use Type.Descriptor instead. 74 func (Type) EnumDescriptor() ([]byte, []int) { 75 return file_node_subscribe_subscribe_proto_rawDescGZIP(), []int{0} 76 } 77 78 type Link struct { 79 state protoimpl.MessageState 80 sizeCache protoimpl.SizeCache 81 unknownFields protoimpl.UnknownFields 82 83 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 84 Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=yuhaiin.subscribe.Type" json:"type,omitempty"` 85 Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` 86 } 87 88 func (x *Link) Reset() { 89 *x = Link{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_node_subscribe_subscribe_proto_msgTypes[0] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (x *Link) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*Link) ProtoMessage() {} 102 103 func (x *Link) ProtoReflect() protoreflect.Message { 104 mi := &file_node_subscribe_subscribe_proto_msgTypes[0] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113 } 114 115 // Deprecated: Use Link.ProtoReflect.Descriptor instead. 116 func (*Link) Descriptor() ([]byte, []int) { 117 return file_node_subscribe_subscribe_proto_rawDescGZIP(), []int{0} 118 } 119 120 func (x *Link) GetName() string { 121 if x != nil { 122 return x.Name 123 } 124 return "" 125 } 126 127 func (x *Link) GetType() Type { 128 if x != nil { 129 return x.Type 130 } 131 return Type_reserve 132 } 133 134 func (x *Link) GetUrl() string { 135 if x != nil { 136 return x.Url 137 } 138 return "" 139 } 140 141 var File_node_subscribe_subscribe_proto protoreflect.FileDescriptor 142 143 var file_node_subscribe_subscribe_proto_rawDesc = []byte{ 144 0x0a, 0x1e, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 145 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 146 0x12, 0x11, 0x79, 0x75, 0x68, 0x61, 0x69, 0x69, 0x6e, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 147 0x69, 0x62, 0x65, 0x22, 0x59, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 148 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 149 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 150 0x79, 0x75, 0x68, 0x61, 0x69, 0x69, 0x6e, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 151 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 152 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x2a, 0x4d, 153 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 154 0x65, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x10, 0x01, 0x12, 155 0x09, 0x0a, 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x73, 0x68, 156 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x73, 157 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x72, 0x10, 0x04, 0x42, 0x38, 0x5a, 158 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x73, 0x75, 0x74, 159 0x6f, 0x72, 0x75, 0x66, 0x61, 0x2f, 0x79, 0x75, 0x68, 0x61, 0x69, 0x69, 0x6e, 0x2f, 0x70, 0x6b, 160 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x73, 0x75, 161 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 162 } 163 164 var ( 165 file_node_subscribe_subscribe_proto_rawDescOnce sync.Once 166 file_node_subscribe_subscribe_proto_rawDescData = file_node_subscribe_subscribe_proto_rawDesc 167 ) 168 169 func file_node_subscribe_subscribe_proto_rawDescGZIP() []byte { 170 file_node_subscribe_subscribe_proto_rawDescOnce.Do(func() { 171 file_node_subscribe_subscribe_proto_rawDescData = protoimpl.X.CompressGZIP(file_node_subscribe_subscribe_proto_rawDescData) 172 }) 173 return file_node_subscribe_subscribe_proto_rawDescData 174 } 175 176 var file_node_subscribe_subscribe_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 177 var file_node_subscribe_subscribe_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 178 var file_node_subscribe_subscribe_proto_goTypes = []interface{}{ 179 (Type)(0), // 0: yuhaiin.subscribe.type 180 (*Link)(nil), // 1: yuhaiin.subscribe.link 181 } 182 var file_node_subscribe_subscribe_proto_depIdxs = []int32{ 183 0, // 0: yuhaiin.subscribe.link.type:type_name -> yuhaiin.subscribe.type 184 1, // [1:1] is the sub-list for method output_type 185 1, // [1:1] is the sub-list for method input_type 186 1, // [1:1] is the sub-list for extension type_name 187 1, // [1:1] is the sub-list for extension extendee 188 0, // [0:1] is the sub-list for field type_name 189 } 190 191 func init() { file_node_subscribe_subscribe_proto_init() } 192 func file_node_subscribe_subscribe_proto_init() { 193 if File_node_subscribe_subscribe_proto != nil { 194 return 195 } 196 if !protoimpl.UnsafeEnabled { 197 file_node_subscribe_subscribe_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 198 switch v := v.(*Link); i { 199 case 0: 200 return &v.state 201 case 1: 202 return &v.sizeCache 203 case 2: 204 return &v.unknownFields 205 default: 206 return nil 207 } 208 } 209 } 210 type x struct{} 211 out := protoimpl.TypeBuilder{ 212 File: protoimpl.DescBuilder{ 213 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 214 RawDescriptor: file_node_subscribe_subscribe_proto_rawDesc, 215 NumEnums: 1, 216 NumMessages: 1, 217 NumExtensions: 0, 218 NumServices: 0, 219 }, 220 GoTypes: file_node_subscribe_subscribe_proto_goTypes, 221 DependencyIndexes: file_node_subscribe_subscribe_proto_depIdxs, 222 EnumInfos: file_node_subscribe_subscribe_proto_enumTypes, 223 MessageInfos: file_node_subscribe_subscribe_proto_msgTypes, 224 }.Build() 225 File_node_subscribe_subscribe_proto = out.File 226 file_node_subscribe_subscribe_proto_rawDesc = nil 227 file_node_subscribe_subscribe_proto_goTypes = nil 228 file_node_subscribe_subscribe_proto_depIdxs = nil 229 }