| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package channelpb |
| 22 |
|
| 23 |
import ( |
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
context "context" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
) |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
CloudChannelReportsService_RunReportJob_FullMethodName = "/google.cloud.channel.v1.CloudChannelReportsService/RunReportJob" |
| 38 |
CloudChannelReportsService_FetchReportResults_FullMethodName = "/google.cloud.channel.v1.CloudChannelReportsService/FetchReportResults" |
| 39 |
CloudChannelReportsService_ListReports_FullMethodName = "/google.cloud.channel.v1.CloudChannelReportsService/ListReports" |
| 40 |
) |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
type CloudChannelReportsServiceClient interface { |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
RunReportJob(ctx context.Context, in *RunReportJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
FetchReportResults(ctx context.Context, in *FetchReportResultsRequest, opts ...grpc.CallOption) (*FetchReportResultsResponse, error) |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
ListReports(ctx context.Context, in *ListReportsRequest, opts ...grpc.CallOption) (*ListReportsResponse, error) |
| 95 |
} |
| 96 |
|
| 97 |
type cloudChannelReportsServiceClient struct { |
| 98 |
cc grpc.ClientConnInterface |
| 99 |
} |
| 100 |
|
| 101 |
|
| 102 |
func NewCloudChannelReportsServiceClient(cc grpc.ClientConnInterface) CloudChannelReportsServiceClient { |
| 103 |
return &cloudChannelReportsServiceClient{cc} |
| 104 |
} |
| 105 |
|
| 106 |
|
| 107 |
func (c *cloudChannelReportsServiceClient) RunReportJob(ctx context.Context, in *RunReportJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 108 |
out := new(longrunningpb.Operation) |
| 109 |
err := c.cc.Invoke(ctx, CloudChannelReportsService_RunReportJob_FullMethodName, in, out, opts...) |
| 110 |
if err != nil { |
| 111 |
return nil, err |
| 112 |
} |
| 113 |
return out, nil |
| 114 |
} |
| 115 |
|
| 116 |
|
| 117 |
func (c *cloudChannelReportsServiceClient) FetchReportResults(ctx context.Context, in *FetchReportResultsRequest, opts ...grpc.CallOption) (*FetchReportResultsResponse, error) { |
| 118 |
out := new(FetchReportResultsResponse) |
| 119 |
err := c.cc.Invoke(ctx, CloudChannelReportsService_FetchReportResults_FullMethodName, in, out, opts...) |
| 120 |
if err != nil { |
| 121 |
return nil, err |
| 122 |
} |
| 123 |
return out, nil |
| 124 |
} |
| 125 |
|
| 126 |
|
| 127 |
func (c *cloudChannelReportsServiceClient) ListReports(ctx context.Context, in *ListReportsRequest, opts ...grpc.CallOption) (*ListReportsResponse, error) { |
| 128 |
out := new(ListReportsResponse) |
| 129 |
err := c.cc.Invoke(ctx, CloudChannelReportsService_ListReports_FullMethodName, in, out, opts...) |
| 130 |
if err != nil { |
| 131 |
return nil, err |
| 132 |
} |
| 133 |
return out, nil |
| 134 |
} |
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
type CloudChannelReportsServiceServer interface { |
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
RunReportJob(context.Context, *RunReportJobRequest) (*longrunningpb.Operation, error) |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
FetchReportResults(context.Context, *FetchReportResultsRequest) (*FetchReportResultsResponse, error) |
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
ListReports(context.Context, *ListReportsRequest) (*ListReportsResponse, error) |
| 189 |
} |
| 190 |
|
| 191 |
|
| 192 |
type UnimplementedCloudChannelReportsServiceServer struct { |
| 193 |
} |
| 194 |
|
| 195 |
func (UnimplementedCloudChannelReportsServiceServer) RunReportJob(context.Context, *RunReportJobRequest) (*longrunningpb.Operation, error) { |
| 196 |
return nil, status.Errorf(codes.Unimplemented, "method RunReportJob not implemented") |
| 197 |
} |
| 198 |
func (UnimplementedCloudChannelReportsServiceServer) FetchReportResults(context.Context, *FetchReportResultsRequest) (*FetchReportResultsResponse, error) { |
| 199 |
return nil, status.Errorf(codes.Unimplemented, "method FetchReportResults not implemented") |
| 200 |
} |
| 201 |
func (UnimplementedCloudChannelReportsServiceServer) ListReports(context.Context, *ListReportsRequest) (*ListReportsResponse, error) { |
| 202 |
return nil, status.Errorf(codes.Unimplemented, "method ListReports not implemented") |
| 203 |
} |
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
type UnsafeCloudChannelReportsServiceServer interface { |
| 209 |
mustEmbedUnimplementedCloudChannelReportsServiceServer() |
| 210 |
} |
| 211 |
|
| 212 |
|
| 213 |
func RegisterCloudChannelReportsServiceServer(s grpc.ServiceRegistrar, srv CloudChannelReportsServiceServer) { |
| 214 |
s.RegisterService(&CloudChannelReportsService_ServiceDesc, srv) |
| 215 |
} |
| 216 |
|
| 217 |
func _CloudChannelReportsService_RunReportJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 218 |
in := new(RunReportJobRequest) |
| 219 |
if err := dec(in); err != nil { |
| 220 |
return nil, err |
| 221 |
} |
| 222 |
if interceptor == nil { |
| 223 |
return srv.(CloudChannelReportsServiceServer).RunReportJob(ctx, in) |
| 224 |
} |
| 225 |
info := &grpc.UnaryServerInfo{ |
| 226 |
Server: srv, |
| 227 |
FullMethod: CloudChannelReportsService_RunReportJob_FullMethodName, |
| 228 |
} |
| 229 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 230 |
return srv.(CloudChannelReportsServiceServer).RunReportJob(ctx, req.(*RunReportJobRequest)) |
| 231 |
} |
| 232 |
return interceptor(ctx, in, info, handler) |
| 233 |
} |
| 234 |
|
| 235 |
func _CloudChannelReportsService_FetchReportResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 236 |
in := new(FetchReportResultsRequest) |
| 237 |
if err := dec(in); err != nil { |
| 238 |
return nil, err |
| 239 |
} |
| 240 |
if interceptor == nil { |
| 241 |
return srv.(CloudChannelReportsServiceServer).FetchReportResults(ctx, in) |
| 242 |
} |
| 243 |
info := &grpc.UnaryServerInfo{ |
| 244 |
Server: srv, |
| 245 |
FullMethod: CloudChannelReportsService_FetchReportResults_FullMethodName, |
| 246 |
} |
| 247 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 248 |
return srv.(CloudChannelReportsServiceServer).FetchReportResults(ctx, req.(*FetchReportResultsRequest)) |
| 249 |
} |
| 250 |
return interceptor(ctx, in, info, handler) |
| 251 |
} |
| 252 |
|
| 253 |
func _CloudChannelReportsService_ListReports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 254 |
in := new(ListReportsRequest) |
| 255 |
if err := dec(in); err != nil { |
| 256 |
return nil, err |
| 257 |
} |
| 258 |
if interceptor == nil { |
| 259 |
return srv.(CloudChannelReportsServiceServer).ListReports(ctx, in) |
| 260 |
} |
| 261 |
info := &grpc.UnaryServerInfo{ |
| 262 |
Server: srv, |
| 263 |
FullMethod: CloudChannelReportsService_ListReports_FullMethodName, |
| 264 |
} |
| 265 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 266 |
return srv.(CloudChannelReportsServiceServer).ListReports(ctx, req.(*ListReportsRequest)) |
| 267 |
} |
| 268 |
return interceptor(ctx, in, info, handler) |
| 269 |
} |
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
var CloudChannelReportsService_ServiceDesc = grpc.ServiceDesc{ |
| 275 |
ServiceName: "google.cloud.channel.v1.CloudChannelReportsService", |
| 276 |
HandlerType: (*CloudChannelReportsServiceServer)(nil), |
| 277 |
Methods: []grpc.MethodDesc{ |
| 278 |
{ |
| 279 |
MethodName: "RunReportJob", |
| 280 |
Handler: _CloudChannelReportsService_RunReportJob_Handler, |
| 281 |
}, |
| 282 |
{ |
| 283 |
MethodName: "FetchReportResults", |
| 284 |
Handler: _CloudChannelReportsService_FetchReportResults_Handler, |
| 285 |
}, |
| 286 |
{ |
| 287 |
MethodName: "ListReports", |
| 288 |
Handler: _CloudChannelReportsService_ListReports_Handler, |
| 289 |
}, |
| 290 |
}, |
| 291 |
Streams: []grpc.StreamDesc{}, |
| 292 |
Metadata: "google/cloud/channel/v1/reports_service.proto", |
| 293 |
} |