this repo has no description
at main 197 lines 8.0 kB view raw
1// Code generated by protoc-gen-go-grpc. DO NOT EDIT. 2// versions: 3// - protoc-gen-go-grpc v1.6.0 4// - protoc (unknown) 5// source: blob_ref.proto 6 7package vyletdatabase 8 9import ( 10 context "context" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14) 15 16// This is a compile-time assertion to ensure that this generated file 17// is compatible with the grpc package it is being compiled against. 18// Requires gRPC-Go v1.64.0 or later. 19const _ = grpc.SupportPackageIsVersion9 20 21const ( 22 BlobRefService_GetBlobRef_FullMethodName = "/vyletdatabase.BlobRefService/GetBlobRef" 23 BlobRefService_CreateBlobRef_FullMethodName = "/vyletdatabase.BlobRefService/CreateBlobRef" 24 BlobRefService_UpdateBlobRef_FullMethodName = "/vyletdatabase.BlobRefService/UpdateBlobRef" 25) 26 27// BlobRefServiceClient is the client API for BlobRefService service. 28// 29// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. 30type BlobRefServiceClient interface { 31 GetBlobRef(ctx context.Context, in *GetBlobRefRequest, opts ...grpc.CallOption) (*GetBlobRefResponse, error) 32 CreateBlobRef(ctx context.Context, in *CreateBlobRefRequest, opts ...grpc.CallOption) (*CreateBlobRefResponse, error) 33 UpdateBlobRef(ctx context.Context, in *UpdateBlobRefRequest, opts ...grpc.CallOption) (*UpdateBlobRefResponse, error) 34} 35 36type blobRefServiceClient struct { 37 cc grpc.ClientConnInterface 38} 39 40func NewBlobRefServiceClient(cc grpc.ClientConnInterface) BlobRefServiceClient { 41 return &blobRefServiceClient{cc} 42} 43 44func (c *blobRefServiceClient) GetBlobRef(ctx context.Context, in *GetBlobRefRequest, opts ...grpc.CallOption) (*GetBlobRefResponse, error) { 45 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) 46 out := new(GetBlobRefResponse) 47 err := c.cc.Invoke(ctx, BlobRefService_GetBlobRef_FullMethodName, in, out, cOpts...) 48 if err != nil { 49 return nil, err 50 } 51 return out, nil 52} 53 54func (c *blobRefServiceClient) CreateBlobRef(ctx context.Context, in *CreateBlobRefRequest, opts ...grpc.CallOption) (*CreateBlobRefResponse, error) { 55 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) 56 out := new(CreateBlobRefResponse) 57 err := c.cc.Invoke(ctx, BlobRefService_CreateBlobRef_FullMethodName, in, out, cOpts...) 58 if err != nil { 59 return nil, err 60 } 61 return out, nil 62} 63 64func (c *blobRefServiceClient) UpdateBlobRef(ctx context.Context, in *UpdateBlobRefRequest, opts ...grpc.CallOption) (*UpdateBlobRefResponse, error) { 65 cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) 66 out := new(UpdateBlobRefResponse) 67 err := c.cc.Invoke(ctx, BlobRefService_UpdateBlobRef_FullMethodName, in, out, cOpts...) 68 if err != nil { 69 return nil, err 70 } 71 return out, nil 72} 73 74// BlobRefServiceServer is the server API for BlobRefService service. 75// All implementations must embed UnimplementedBlobRefServiceServer 76// for forward compatibility. 77type BlobRefServiceServer interface { 78 GetBlobRef(context.Context, *GetBlobRefRequest) (*GetBlobRefResponse, error) 79 CreateBlobRef(context.Context, *CreateBlobRefRequest) (*CreateBlobRefResponse, error) 80 UpdateBlobRef(context.Context, *UpdateBlobRefRequest) (*UpdateBlobRefResponse, error) 81 mustEmbedUnimplementedBlobRefServiceServer() 82} 83 84// UnimplementedBlobRefServiceServer must be embedded to have 85// forward compatible implementations. 86// 87// NOTE: this should be embedded by value instead of pointer to avoid a nil 88// pointer dereference when methods are called. 89type UnimplementedBlobRefServiceServer struct{} 90 91func (UnimplementedBlobRefServiceServer) GetBlobRef(context.Context, *GetBlobRefRequest) (*GetBlobRefResponse, error) { 92 return nil, status.Error(codes.Unimplemented, "method GetBlobRef not implemented") 93} 94func (UnimplementedBlobRefServiceServer) CreateBlobRef(context.Context, *CreateBlobRefRequest) (*CreateBlobRefResponse, error) { 95 return nil, status.Error(codes.Unimplemented, "method CreateBlobRef not implemented") 96} 97func (UnimplementedBlobRefServiceServer) UpdateBlobRef(context.Context, *UpdateBlobRefRequest) (*UpdateBlobRefResponse, error) { 98 return nil, status.Error(codes.Unimplemented, "method UpdateBlobRef not implemented") 99} 100func (UnimplementedBlobRefServiceServer) mustEmbedUnimplementedBlobRefServiceServer() {} 101func (UnimplementedBlobRefServiceServer) testEmbeddedByValue() {} 102 103// UnsafeBlobRefServiceServer may be embedded to opt out of forward compatibility for this service. 104// Use of this interface is not recommended, as added methods to BlobRefServiceServer will 105// result in compilation errors. 106type UnsafeBlobRefServiceServer interface { 107 mustEmbedUnimplementedBlobRefServiceServer() 108} 109 110func RegisterBlobRefServiceServer(s grpc.ServiceRegistrar, srv BlobRefServiceServer) { 111 // If the following call panics, it indicates UnimplementedBlobRefServiceServer was 112 // embedded by pointer and is nil. This will cause panics if an 113 // unimplemented method is ever invoked, so we test this at initialization 114 // time to prevent it from happening at runtime later due to I/O. 115 if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { 116 t.testEmbeddedByValue() 117 } 118 s.RegisterService(&BlobRefService_ServiceDesc, srv) 119} 120 121func _BlobRefService_GetBlobRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 122 in := new(GetBlobRefRequest) 123 if err := dec(in); err != nil { 124 return nil, err 125 } 126 if interceptor == nil { 127 return srv.(BlobRefServiceServer).GetBlobRef(ctx, in) 128 } 129 info := &grpc.UnaryServerInfo{ 130 Server: srv, 131 FullMethod: BlobRefService_GetBlobRef_FullMethodName, 132 } 133 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 134 return srv.(BlobRefServiceServer).GetBlobRef(ctx, req.(*GetBlobRefRequest)) 135 } 136 return interceptor(ctx, in, info, handler) 137} 138 139func _BlobRefService_CreateBlobRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 140 in := new(CreateBlobRefRequest) 141 if err := dec(in); err != nil { 142 return nil, err 143 } 144 if interceptor == nil { 145 return srv.(BlobRefServiceServer).CreateBlobRef(ctx, in) 146 } 147 info := &grpc.UnaryServerInfo{ 148 Server: srv, 149 FullMethod: BlobRefService_CreateBlobRef_FullMethodName, 150 } 151 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 152 return srv.(BlobRefServiceServer).CreateBlobRef(ctx, req.(*CreateBlobRefRequest)) 153 } 154 return interceptor(ctx, in, info, handler) 155} 156 157func _BlobRefService_UpdateBlobRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 158 in := new(UpdateBlobRefRequest) 159 if err := dec(in); err != nil { 160 return nil, err 161 } 162 if interceptor == nil { 163 return srv.(BlobRefServiceServer).UpdateBlobRef(ctx, in) 164 } 165 info := &grpc.UnaryServerInfo{ 166 Server: srv, 167 FullMethod: BlobRefService_UpdateBlobRef_FullMethodName, 168 } 169 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 170 return srv.(BlobRefServiceServer).UpdateBlobRef(ctx, req.(*UpdateBlobRefRequest)) 171 } 172 return interceptor(ctx, in, info, handler) 173} 174 175// BlobRefService_ServiceDesc is the grpc.ServiceDesc for BlobRefService service. 176// It's only intended for direct use with grpc.RegisterService, 177// and not to be introspected or modified (even as a copy) 178var BlobRefService_ServiceDesc = grpc.ServiceDesc{ 179 ServiceName: "vyletdatabase.BlobRefService", 180 HandlerType: (*BlobRefServiceServer)(nil), 181 Methods: []grpc.MethodDesc{ 182 { 183 MethodName: "GetBlobRef", 184 Handler: _BlobRefService_GetBlobRef_Handler, 185 }, 186 { 187 MethodName: "CreateBlobRef", 188 Handler: _BlobRefService_CreateBlobRef_Handler, 189 }, 190 { 191 MethodName: "UpdateBlobRef", 192 Handler: _BlobRefService_UpdateBlobRef_Handler, 193 }, 194 }, 195 Streams: []grpc.StreamDesc{}, 196 Metadata: "blob_ref.proto", 197}