github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/protos/node/point/point.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/point/point.proto
     6  
     7  package point
     8  
     9  import (
    10  	protocol "github.com/Asutorufa/yuhaiin/pkg/protos/node/protocol"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    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 Origin int32
    25  
    26  const (
    27  	Origin_reserve Origin = 0
    28  	Origin_remote  Origin = 101
    29  	Origin_manual  Origin = 102
    30  )
    31  
    32  // Enum value maps for Origin.
    33  var (
    34  	Origin_name = map[int32]string{
    35  		0:   "reserve",
    36  		101: "remote",
    37  		102: "manual",
    38  	}
    39  	Origin_value = map[string]int32{
    40  		"reserve": 0,
    41  		"remote":  101,
    42  		"manual":  102,
    43  	}
    44  )
    45  
    46  func (x Origin) Enum() *Origin {
    47  	p := new(Origin)
    48  	*p = x
    49  	return p
    50  }
    51  
    52  func (x Origin) String() string {
    53  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    54  }
    55  
    56  func (Origin) Descriptor() protoreflect.EnumDescriptor {
    57  	return file_node_point_point_proto_enumTypes[0].Descriptor()
    58  }
    59  
    60  func (Origin) Type() protoreflect.EnumType {
    61  	return &file_node_point_point_proto_enumTypes[0]
    62  }
    63  
    64  func (x Origin) Number() protoreflect.EnumNumber {
    65  	return protoreflect.EnumNumber(x)
    66  }
    67  
    68  // Deprecated: Use Origin.Descriptor instead.
    69  func (Origin) EnumDescriptor() ([]byte, []int) {
    70  	return file_node_point_point_proto_rawDescGZIP(), []int{0}
    71  }
    72  
    73  type Point struct {
    74  	state         protoimpl.MessageState
    75  	sizeCache     protoimpl.SizeCache
    76  	unknownFields protoimpl.UnknownFields
    77  
    78  	Hash   string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
    79  	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    80  	Group  string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
    81  	Origin Origin `protobuf:"varint,4,opt,name=origin,proto3,enum=yuhaiin.point.Origin" json:"origin,omitempty"`
    82  	// will use protocols' order to create dialer
    83  	Protocols []*protocol.Protocol `protobuf:"bytes,5,rep,name=protocols,proto3" json:"protocols,omitempty"`
    84  }
    85  
    86  func (x *Point) Reset() {
    87  	*x = Point{}
    88  	if protoimpl.UnsafeEnabled {
    89  		mi := &file_node_point_point_proto_msgTypes[0]
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		ms.StoreMessageInfo(mi)
    92  	}
    93  }
    94  
    95  func (x *Point) String() string {
    96  	return protoimpl.X.MessageStringOf(x)
    97  }
    98  
    99  func (*Point) ProtoMessage() {}
   100  
   101  func (x *Point) ProtoReflect() protoreflect.Message {
   102  	mi := &file_node_point_point_proto_msgTypes[0]
   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 Point.ProtoReflect.Descriptor instead.
   114  func (*Point) Descriptor() ([]byte, []int) {
   115  	return file_node_point_point_proto_rawDescGZIP(), []int{0}
   116  }
   117  
   118  func (x *Point) GetHash() string {
   119  	if x != nil {
   120  		return x.Hash
   121  	}
   122  	return ""
   123  }
   124  
   125  func (x *Point) GetName() string {
   126  	if x != nil {
   127  		return x.Name
   128  	}
   129  	return ""
   130  }
   131  
   132  func (x *Point) GetGroup() string {
   133  	if x != nil {
   134  		return x.Group
   135  	}
   136  	return ""
   137  }
   138  
   139  func (x *Point) GetOrigin() Origin {
   140  	if x != nil {
   141  		return x.Origin
   142  	}
   143  	return Origin_reserve
   144  }
   145  
   146  func (x *Point) GetProtocols() []*protocol.Protocol {
   147  	if x != nil {
   148  		return x.Protocols
   149  	}
   150  	return nil
   151  }
   152  
   153  var File_node_point_point_proto protoreflect.FileDescriptor
   154  
   155  var file_node_point_point_proto_rawDesc = []byte{
   156  	0x0a, 0x16, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x70, 0x6f, 0x69,
   157  	0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x79, 0x75, 0x68, 0x61, 0x69, 0x69,
   158  	0x6e, 0x2e, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x1a, 0x1c, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x72,
   159  	0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e,
   160  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x01, 0x0a, 0x05, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12,
   161  	0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68,
   162  	0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
   163  	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70,
   164  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2d, 0x0a,
   165  	0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e,
   166  	0x79, 0x75, 0x68, 0x61, 0x69, 0x69, 0x6e, 0x2e, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x6f, 0x72,
   167  	0x69, 0x67, 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x38, 0x0a, 0x09,
   168  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
   169  	0x1a, 0x2e, 0x79, 0x75, 0x68, 0x61, 0x69, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
   170  	0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f,
   171  	0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x2a, 0x2d, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e,
   172  	0x12, 0x0b, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x10, 0x00, 0x12, 0x0a, 0x0a,
   173  	0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x10, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x6d, 0x61, 0x6e,
   174  	0x75, 0x61, 0x6c, 0x10, 0x66, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   175  	0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x73, 0x75, 0x74, 0x6f, 0x72, 0x75, 0x66, 0x61, 0x2f, 0x79, 0x75,
   176  	0x68, 0x61, 0x69, 0x69, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
   177  	0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f,
   178  	0x74, 0x6f, 0x33,
   179  }
   180  
   181  var (
   182  	file_node_point_point_proto_rawDescOnce sync.Once
   183  	file_node_point_point_proto_rawDescData = file_node_point_point_proto_rawDesc
   184  )
   185  
   186  func file_node_point_point_proto_rawDescGZIP() []byte {
   187  	file_node_point_point_proto_rawDescOnce.Do(func() {
   188  		file_node_point_point_proto_rawDescData = protoimpl.X.CompressGZIP(file_node_point_point_proto_rawDescData)
   189  	})
   190  	return file_node_point_point_proto_rawDescData
   191  }
   192  
   193  var file_node_point_point_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   194  var file_node_point_point_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   195  var file_node_point_point_proto_goTypes = []interface{}{
   196  	(Origin)(0),               // 0: yuhaiin.point.origin
   197  	(*Point)(nil),             // 1: yuhaiin.point.point
   198  	(*protocol.Protocol)(nil), // 2: yuhaiin.protocol.protocol
   199  }
   200  var file_node_point_point_proto_depIdxs = []int32{
   201  	0, // 0: yuhaiin.point.point.origin:type_name -> yuhaiin.point.origin
   202  	2, // 1: yuhaiin.point.point.protocols:type_name -> yuhaiin.protocol.protocol
   203  	2, // [2:2] is the sub-list for method output_type
   204  	2, // [2:2] is the sub-list for method input_type
   205  	2, // [2:2] is the sub-list for extension type_name
   206  	2, // [2:2] is the sub-list for extension extendee
   207  	0, // [0:2] is the sub-list for field type_name
   208  }
   209  
   210  func init() { file_node_point_point_proto_init() }
   211  func file_node_point_point_proto_init() {
   212  	if File_node_point_point_proto != nil {
   213  		return
   214  	}
   215  	if !protoimpl.UnsafeEnabled {
   216  		file_node_point_point_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   217  			switch v := v.(*Point); i {
   218  			case 0:
   219  				return &v.state
   220  			case 1:
   221  				return &v.sizeCache
   222  			case 2:
   223  				return &v.unknownFields
   224  			default:
   225  				return nil
   226  			}
   227  		}
   228  	}
   229  	type x struct{}
   230  	out := protoimpl.TypeBuilder{
   231  		File: protoimpl.DescBuilder{
   232  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   233  			RawDescriptor: file_node_point_point_proto_rawDesc,
   234  			NumEnums:      1,
   235  			NumMessages:   1,
   236  			NumExtensions: 0,
   237  			NumServices:   0,
   238  		},
   239  		GoTypes:           file_node_point_point_proto_goTypes,
   240  		DependencyIndexes: file_node_point_point_proto_depIdxs,
   241  		EnumInfos:         file_node_point_point_proto_enumTypes,
   242  		MessageInfos:      file_node_point_point_proto_msgTypes,
   243  	}.Build()
   244  	File_node_point_point_proto = out.File
   245  	file_node_point_point_proto_rawDesc = nil
   246  	file_node_point_point_proto_goTypes = nil
   247  	file_node_point_point_proto_depIdxs = nil
   248  }