github.com/cloudwan/edgelq-sdk@v1.15.4/devices/client/v1alpha2/public/public_service.pb.client.go (about) 1 // Code generated by protoc-gen-goten-client 2 // API: PublicService 3 // DO NOT EDIT!!! 4 5 package public_client 6 7 import ( 8 "context" 9 10 "google.golang.org/grpc" 11 "google.golang.org/protobuf/runtime/protoimpl" 12 ) 13 14 // proto imports 15 import ( 16 device "github.com/cloudwan/edgelq-sdk/devices/resources/v1alpha2/device" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var ( 21 _ = protoimpl.DescBuilder{} 22 _ = new(context.Context) 23 _ = grpc.ClientConn{} 24 ) 25 26 // make sure we're using proto imports 27 var ( 28 _ = &device.Device{} 29 ) 30 31 // This is a compile-time assertion to ensure that this generated file 32 // is compatible with the proto package it is being compiled against. 33 // A compilation error at this line likely means your copy of the 34 // proto package needs to be updated. 35 const ( 36 // Verify that this generated code is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 38 // Verify that runtime/protoimpl is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 40 ) 41 42 // This is a compile-time assertion to ensure that this generated file 43 // is compatible with the grpc package it is being compiled against. 44 const _ = grpc.SupportPackageIsVersion6 45 46 // PublicServiceClient is the client API for PublicService. 47 // 48 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 49 type PublicServiceClient interface { 50 ListPublicDevices(ctx context.Context, in *ListPublicDevicesRequest, opts ...grpc.CallOption) (*ListPublicDevicesResponse, error) 51 } 52 53 type client struct { 54 cc grpc.ClientConnInterface 55 } 56 57 func NewPublicServiceClient(cc grpc.ClientConnInterface) PublicServiceClient { 58 return &client{cc} 59 } 60 61 func (c *client) ListPublicDevices(ctx context.Context, in *ListPublicDevicesRequest, opts ...grpc.CallOption) (*ListPublicDevicesResponse, error) { 62 out := new(ListPublicDevicesResponse) 63 err := c.cc.Invoke(ctx, "/ntt.devices.v1alpha2.PublicService/ListPublicDevices", in, out, opts...) 64 if err != nil { 65 return nil, err 66 } 67 return out, nil 68 }