github.com/decred/dcrlnd@v0.7.6/lnrpc/verrpc/verrpc.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.31.0
     4  // 	protoc        v3.4.0
     5  // source: verrpc/verrpc.proto
     6  
     7  package verrpc
     8  
     9  import (
    10  	context "context"
    11  	grpc "google.golang.org/grpc"
    12  	codes "google.golang.org/grpc/codes"
    13  	status "google.golang.org/grpc/status"
    14  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    16  	reflect "reflect"
    17  	sync "sync"
    18  )
    19  
    20  const (
    21  	// Verify that this generated code is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    23  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    24  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    25  )
    26  
    27  type VersionRequest struct {
    28  	state         protoimpl.MessageState
    29  	sizeCache     protoimpl.SizeCache
    30  	unknownFields protoimpl.UnknownFields
    31  }
    32  
    33  func (x *VersionRequest) Reset() {
    34  	*x = VersionRequest{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_verrpc_verrpc_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *VersionRequest) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*VersionRequest) ProtoMessage() {}
    47  
    48  func (x *VersionRequest) ProtoReflect() protoreflect.Message {
    49  	mi := &file_verrpc_verrpc_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
    61  func (*VersionRequest) Descriptor() ([]byte, []int) {
    62  	return file_verrpc_verrpc_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  type Version struct {
    66  	state         protoimpl.MessageState
    67  	sizeCache     protoimpl.SizeCache
    68  	unknownFields protoimpl.UnknownFields
    69  
    70  	// A verbose description of the daemon's commit.
    71  	Commit string `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
    72  	// The SHA1 commit hash that the daemon is compiled with.
    73  	CommitHash string `protobuf:"bytes,2,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
    74  	// The semantic version.
    75  	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
    76  	// The major application version.
    77  	AppMajor uint32 `protobuf:"varint,4,opt,name=app_major,json=appMajor,proto3" json:"app_major,omitempty"`
    78  	// The minor application version.
    79  	AppMinor uint32 `protobuf:"varint,5,opt,name=app_minor,json=appMinor,proto3" json:"app_minor,omitempty"`
    80  	// The application patch number.
    81  	AppPatch uint32 `protobuf:"varint,6,opt,name=app_patch,json=appPatch,proto3" json:"app_patch,omitempty"`
    82  	// The application pre-release modifier, possibly empty.
    83  	AppPreRelease string `protobuf:"bytes,7,opt,name=app_pre_release,json=appPreRelease,proto3" json:"app_pre_release,omitempty"`
    84  	// The list of build tags that were supplied during compilation.
    85  	BuildTags []string `protobuf:"bytes,8,rep,name=build_tags,json=buildTags,proto3" json:"build_tags,omitempty"`
    86  	// The version of go that compiled the executable.
    87  	GoVersion string `protobuf:"bytes,9,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
    88  }
    89  
    90  func (x *Version) Reset() {
    91  	*x = Version{}
    92  	if protoimpl.UnsafeEnabled {
    93  		mi := &file_verrpc_verrpc_proto_msgTypes[1]
    94  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    95  		ms.StoreMessageInfo(mi)
    96  	}
    97  }
    98  
    99  func (x *Version) String() string {
   100  	return protoimpl.X.MessageStringOf(x)
   101  }
   102  
   103  func (*Version) ProtoMessage() {}
   104  
   105  func (x *Version) ProtoReflect() protoreflect.Message {
   106  	mi := &file_verrpc_verrpc_proto_msgTypes[1]
   107  	if protoimpl.UnsafeEnabled && x != nil {
   108  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   109  		if ms.LoadMessageInfo() == nil {
   110  			ms.StoreMessageInfo(mi)
   111  		}
   112  		return ms
   113  	}
   114  	return mi.MessageOf(x)
   115  }
   116  
   117  // Deprecated: Use Version.ProtoReflect.Descriptor instead.
   118  func (*Version) Descriptor() ([]byte, []int) {
   119  	return file_verrpc_verrpc_proto_rawDescGZIP(), []int{1}
   120  }
   121  
   122  func (x *Version) GetCommit() string {
   123  	if x != nil {
   124  		return x.Commit
   125  	}
   126  	return ""
   127  }
   128  
   129  func (x *Version) GetCommitHash() string {
   130  	if x != nil {
   131  		return x.CommitHash
   132  	}
   133  	return ""
   134  }
   135  
   136  func (x *Version) GetVersion() string {
   137  	if x != nil {
   138  		return x.Version
   139  	}
   140  	return ""
   141  }
   142  
   143  func (x *Version) GetAppMajor() uint32 {
   144  	if x != nil {
   145  		return x.AppMajor
   146  	}
   147  	return 0
   148  }
   149  
   150  func (x *Version) GetAppMinor() uint32 {
   151  	if x != nil {
   152  		return x.AppMinor
   153  	}
   154  	return 0
   155  }
   156  
   157  func (x *Version) GetAppPatch() uint32 {
   158  	if x != nil {
   159  		return x.AppPatch
   160  	}
   161  	return 0
   162  }
   163  
   164  func (x *Version) GetAppPreRelease() string {
   165  	if x != nil {
   166  		return x.AppPreRelease
   167  	}
   168  	return ""
   169  }
   170  
   171  func (x *Version) GetBuildTags() []string {
   172  	if x != nil {
   173  		return x.BuildTags
   174  	}
   175  	return nil
   176  }
   177  
   178  func (x *Version) GetGoVersion() string {
   179  	if x != nil {
   180  		return x.GoVersion
   181  	}
   182  	return ""
   183  }
   184  
   185  var File_verrpc_verrpc_proto protoreflect.FileDescriptor
   186  
   187  var file_verrpc_verrpc_proto_rawDesc = []byte{
   188  	0x0a, 0x13, 0x76, 0x65, 0x72, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x65, 0x72, 0x72, 0x70, 0x63, 0x2e,
   189  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x76, 0x65, 0x72, 0x72, 0x70, 0x63, 0x22, 0x10, 0x0a,
   190  	0x0e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
   191  	0x99, 0x02, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63,
   192  	0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6d,
   193  	0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61,
   194  	0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
   195  	0x48, 0x61, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
   196  	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b,
   197  	0x0a, 0x09, 0x61, 0x70, 0x70, 0x5f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,
   198  	0x0d, 0x52, 0x08, 0x61, 0x70, 0x70, 0x4d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61,
   199  	0x70, 0x70, 0x5f, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08,
   200  	0x61, 0x70, 0x70, 0x4d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x5f,
   201  	0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x61, 0x70, 0x70,
   202  	0x50, 0x61, 0x74, 0x63, 0x68, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x5f, 0x70, 0x72, 0x65,
   203  	0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
   204  	0x61, 0x70, 0x70, 0x50, 0x72, 0x65, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a,
   205  	0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28,
   206  	0x09, 0x52, 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x61, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a,
   207  	0x67, 0x6f, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
   208  	0x52, 0x09, 0x67, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x32, 0x42, 0x0a, 0x09, 0x56,
   209  	0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56,
   210  	0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x76, 0x65, 0x72, 0x72, 0x70, 0x63, 0x2e,
   211  	0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f,
   212  	0x2e, 0x76, 0x65, 0x72, 0x72, 0x70, 0x63, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42,
   213  	0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x65,
   214  	0x63, 0x72, 0x65, 0x64, 0x2f, 0x64, 0x63, 0x72, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70,
   215  	0x63, 0x2f, 0x76, 0x65, 0x72, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   216  }
   217  
   218  var (
   219  	file_verrpc_verrpc_proto_rawDescOnce sync.Once
   220  	file_verrpc_verrpc_proto_rawDescData = file_verrpc_verrpc_proto_rawDesc
   221  )
   222  
   223  func file_verrpc_verrpc_proto_rawDescGZIP() []byte {
   224  	file_verrpc_verrpc_proto_rawDescOnce.Do(func() {
   225  		file_verrpc_verrpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_verrpc_verrpc_proto_rawDescData)
   226  	})
   227  	return file_verrpc_verrpc_proto_rawDescData
   228  }
   229  
   230  var file_verrpc_verrpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   231  var file_verrpc_verrpc_proto_goTypes = []interface{}{
   232  	(*VersionRequest)(nil), // 0: verrpc.VersionRequest
   233  	(*Version)(nil),        // 1: verrpc.Version
   234  }
   235  var file_verrpc_verrpc_proto_depIdxs = []int32{
   236  	0, // 0: verrpc.Versioner.GetVersion:input_type -> verrpc.VersionRequest
   237  	1, // 1: verrpc.Versioner.GetVersion:output_type -> verrpc.Version
   238  	1, // [1:2] is the sub-list for method output_type
   239  	0, // [0:1] is the sub-list for method input_type
   240  	0, // [0:0] is the sub-list for extension type_name
   241  	0, // [0:0] is the sub-list for extension extendee
   242  	0, // [0:0] is the sub-list for field type_name
   243  }
   244  
   245  func init() { file_verrpc_verrpc_proto_init() }
   246  func file_verrpc_verrpc_proto_init() {
   247  	if File_verrpc_verrpc_proto != nil {
   248  		return
   249  	}
   250  	if !protoimpl.UnsafeEnabled {
   251  		file_verrpc_verrpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   252  			switch v := v.(*VersionRequest); i {
   253  			case 0:
   254  				return &v.state
   255  			case 1:
   256  				return &v.sizeCache
   257  			case 2:
   258  				return &v.unknownFields
   259  			default:
   260  				return nil
   261  			}
   262  		}
   263  		file_verrpc_verrpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   264  			switch v := v.(*Version); i {
   265  			case 0:
   266  				return &v.state
   267  			case 1:
   268  				return &v.sizeCache
   269  			case 2:
   270  				return &v.unknownFields
   271  			default:
   272  				return nil
   273  			}
   274  		}
   275  	}
   276  	type x struct{}
   277  	out := protoimpl.TypeBuilder{
   278  		File: protoimpl.DescBuilder{
   279  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   280  			RawDescriptor: file_verrpc_verrpc_proto_rawDesc,
   281  			NumEnums:      0,
   282  			NumMessages:   2,
   283  			NumExtensions: 0,
   284  			NumServices:   1,
   285  		},
   286  		GoTypes:           file_verrpc_verrpc_proto_goTypes,
   287  		DependencyIndexes: file_verrpc_verrpc_proto_depIdxs,
   288  		MessageInfos:      file_verrpc_verrpc_proto_msgTypes,
   289  	}.Build()
   290  	File_verrpc_verrpc_proto = out.File
   291  	file_verrpc_verrpc_proto_rawDesc = nil
   292  	file_verrpc_verrpc_proto_goTypes = nil
   293  	file_verrpc_verrpc_proto_depIdxs = nil
   294  }
   295  
   296  // Reference imports to suppress errors if they are not otherwise used.
   297  var _ context.Context
   298  var _ grpc.ClientConnInterface
   299  
   300  // This is a compile-time assertion to ensure that this generated file
   301  // is compatible with the grpc package it is being compiled against.
   302  const _ = grpc.SupportPackageIsVersion6
   303  
   304  // VersionerClient is the client API for Versioner service.
   305  //
   306  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   307  type VersionerClient interface {
   308  	// lncli: `version`
   309  	// GetVersion returns the current version and build information of the running
   310  	// daemon.
   311  	GetVersion(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*Version, error)
   312  }
   313  
   314  type versionerClient struct {
   315  	cc grpc.ClientConnInterface
   316  }
   317  
   318  func NewVersionerClient(cc grpc.ClientConnInterface) VersionerClient {
   319  	return &versionerClient{cc}
   320  }
   321  
   322  func (c *versionerClient) GetVersion(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*Version, error) {
   323  	out := new(Version)
   324  	err := c.cc.Invoke(ctx, "/verrpc.Versioner/GetVersion", in, out, opts...)
   325  	if err != nil {
   326  		return nil, err
   327  	}
   328  	return out, nil
   329  }
   330  
   331  // VersionerServer is the server API for Versioner service.
   332  type VersionerServer interface {
   333  	// lncli: `version`
   334  	// GetVersion returns the current version and build information of the running
   335  	// daemon.
   336  	GetVersion(context.Context, *VersionRequest) (*Version, error)
   337  }
   338  
   339  // UnimplementedVersionerServer can be embedded to have forward compatible implementations.
   340  type UnimplementedVersionerServer struct {
   341  }
   342  
   343  func (*UnimplementedVersionerServer) GetVersion(context.Context, *VersionRequest) (*Version, error) {
   344  	return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented")
   345  }
   346  
   347  func RegisterVersionerServer(s *grpc.Server, srv VersionerServer) {
   348  	s.RegisterService(&_Versioner_serviceDesc, srv)
   349  }
   350  
   351  func _Versioner_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   352  	in := new(VersionRequest)
   353  	if err := dec(in); err != nil {
   354  		return nil, err
   355  	}
   356  	if interceptor == nil {
   357  		return srv.(VersionerServer).GetVersion(ctx, in)
   358  	}
   359  	info := &grpc.UnaryServerInfo{
   360  		Server:     srv,
   361  		FullMethod: "/verrpc.Versioner/GetVersion",
   362  	}
   363  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   364  		return srv.(VersionerServer).GetVersion(ctx, req.(*VersionRequest))
   365  	}
   366  	return interceptor(ctx, in, info, handler)
   367  }
   368  
   369  var _Versioner_serviceDesc = grpc.ServiceDesc{
   370  	ServiceName: "verrpc.Versioner",
   371  	HandlerType: (*VersionerServer)(nil),
   372  	Methods: []grpc.MethodDesc{
   373  		{
   374  			MethodName: "GetVersion",
   375  			Handler:    _Versioner_GetVersion_Handler,
   376  		},
   377  	},
   378  	Streams:  []grpc.StreamDesc{},
   379  	Metadata: "verrpc/verrpc.proto",
   380  }