|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: google/api/servicecontrol/v1/service_controller.proto
-
- package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
-
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
- import status "google.golang.org/genproto/googleapis/rpc/status"
-
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
-
- // Request message for the Check method.
- type CheckRequest struct {
- // The service name as specified in its service configuration. For example,
- // `"pubsub.googleapis.com"`.
- //
- // See
- // [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
- // for the definition of a service name.
- ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
- // The operation to be checked.
- Operation *Operation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
- // Specifies which version of service configuration should be used to process
- // the request.
- //
- // If unspecified or no matching version can be found, the
- // latest one will be used.
- ServiceConfigId string `protobuf:"bytes,4,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *CheckRequest) Reset() { *m = CheckRequest{} }
- func (m *CheckRequest) String() string { return proto.CompactTextString(m) }
- func (*CheckRequest) ProtoMessage() {}
- func (*CheckRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_service_controller_63b84d9abfbd86ce, []int{0}
- }
- func (m *CheckRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_CheckRequest.Unmarshal(m, b)
- }
- func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic)
- }
- func (dst *CheckRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CheckRequest.Merge(dst, src)
- }
- func (m *CheckRequest) XXX_Size() int {
- return xxx_messageInfo_CheckRequest.Size(m)
- }
- func (m *CheckRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_CheckRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_CheckRequest proto.InternalMessageInfo
-
- func (m *CheckRequest) GetServiceName() string {
- if m != nil {
- return m.ServiceName
- }
- return ""
- }
-
- func (m *CheckRequest) GetOperation() *Operation {
- if m != nil {
- return m.Operation
- }
- return nil
- }
-
- func (m *CheckRequest) GetServiceConfigId() string {
- if m != nil {
- return m.ServiceConfigId
- }
- return ""
- }
-
- // Response message for the Check method.
- type CheckResponse struct {
- // The same operation_id value used in the
- // [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
- // and diagnostics purposes.
- OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
- // Indicate the decision of the check.
- //
- // If no check errors are present, the service should process the operation.
- // Otherwise the service should use the list of errors to determine the
- // appropriate action.
- CheckErrors []*CheckError `protobuf:"bytes,2,rep,name=check_errors,json=checkErrors,proto3" json:"check_errors,omitempty"`
- // The actual config id used to process the request.
- ServiceConfigId string `protobuf:"bytes,5,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
- // Feedback data returned from the server during processing a Check request.
- CheckInfo *CheckResponse_CheckInfo `protobuf:"bytes,6,opt,name=check_info,json=checkInfo,proto3" json:"check_info,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *CheckResponse) Reset() { *m = CheckResponse{} }
- func (m *CheckResponse) String() string { return proto.CompactTextString(m) }
- func (*CheckResponse) ProtoMessage() {}
- func (*CheckResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_service_controller_63b84d9abfbd86ce, []int{1}
- }
- func (m *CheckResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_CheckResponse.Unmarshal(m, b)
- }
- func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic)
- }
- func (dst *CheckResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CheckResponse.Merge(dst, src)
- }
- func (m *CheckResponse) XXX_Size() int {
- return xxx_messageInfo_CheckResponse.Size(m)
- }
- func (m *CheckResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_CheckResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_CheckResponse proto.InternalMessageInfo
-
- func (m *CheckResponse) GetOperationId() string {
- if m != nil {
- return m.OperationId
- }
- return ""
- }
-
- func (m *CheckResponse) GetCheckErrors() []*CheckError {
- if m != nil {
- return m.CheckErrors
- }
- return nil
- }
-
- func (m *CheckResponse) GetServiceConfigId() string {
- if m != nil {
- return m.ServiceConfigId
- }
- return ""
- }
-
- func (m *CheckResponse) GetCheckInfo() *CheckResponse_CheckInfo {
- if m != nil {
- return m.CheckInfo
- }
- return nil
- }
-
- type CheckResponse_CheckInfo struct {
- // Consumer info of this check.
- ConsumerInfo *CheckResponse_ConsumerInfo `protobuf:"bytes,2,opt,name=consumer_info,json=consumerInfo,proto3" json:"consumer_info,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *CheckResponse_CheckInfo) Reset() { *m = CheckResponse_CheckInfo{} }
- func (m *CheckResponse_CheckInfo) String() string { return proto.CompactTextString(m) }
- func (*CheckResponse_CheckInfo) ProtoMessage() {}
- func (*CheckResponse_CheckInfo) Descriptor() ([]byte, []int) {
- return fileDescriptor_service_controller_63b84d9abfbd86ce, []int{1, 0}
- }
- func (m *CheckResponse_CheckInfo) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_CheckResponse_CheckInfo.Unmarshal(m, b)
- }
- func (m *CheckResponse_CheckInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_CheckResponse_CheckInfo.Marshal(b, m, deterministic)
- }
- func (dst *CheckResponse_CheckInfo) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CheckResponse_CheckInfo.Merge(dst, src)
- }
- func (m *CheckResponse_CheckInfo) XXX_Size() int {
- return xxx_messageInfo_CheckResponse_CheckInfo.Size(m)
- }
- func (m *CheckResponse_CheckInfo) XXX_DiscardUnknown() {
- xxx_messageInfo_CheckResponse_CheckInfo.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_CheckResponse_CheckInfo proto.InternalMessageInfo
-
- func (m *CheckResponse_CheckInfo) GetConsumerInfo() *CheckResponse_ConsumerInfo {
- if m != nil {
- return m.ConsumerInfo
- }
- return nil
- }
-
- // `ConsumerInfo` provides information about the consumer project.
- type CheckResponse_ConsumerInfo struct {
- // The Google cloud project number, e.g. 1234567890. A value of 0 indicates
- // no project number is found.
- ProjectNumber int64 `protobuf:"varint,1,opt,name=project_number,json=projectNumber,proto3" json:"project_number,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *CheckResponse_ConsumerInfo) Reset() { *m = CheckResponse_ConsumerInfo{} }
- func (m *CheckResponse_ConsumerInfo) String() string { return proto.CompactTextString(m) }
- func (*CheckResponse_ConsumerInfo) ProtoMessage() {}
- func (*CheckResponse_ConsumerInfo) Descriptor() ([]byte, []int) {
- return fileDescriptor_service_controller_63b84d9abfbd86ce, []int{1, 1}
- }
- func (m *CheckResponse_ConsumerInfo) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_CheckResponse_ConsumerInfo.Unmarshal(m, b)
- }
- func (m *CheckResponse_ConsumerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_CheckResponse_ConsumerInfo.Marshal(b, m, deterministic)
- }
- func (dst *CheckResponse_ConsumerInfo) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CheckResponse_ConsumerInfo.Merge(dst, src)
- }
- func (m *CheckResponse_ConsumerInfo) XXX_Size() int {
- return xxx_messageInfo_CheckResponse_ConsumerInfo.Size(m)
- }
- func (m *CheckResponse_ConsumerInfo) XXX_DiscardUnknown() {
- xxx_messageInfo_CheckResponse_ConsumerInfo.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_CheckResponse_ConsumerInfo proto.InternalMessageInfo
-
- func (m *CheckResponse_ConsumerInfo) GetProjectNumber() int64 {
- if m != nil {
- return m.ProjectNumber
- }
- return 0
- }
-
- // Request message for the Report method.
- type ReportRequest struct {
- // The service name as specified in its service configuration. For example,
- // `"pubsub.googleapis.com"`.
- //
- // See
- // [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
- // for the definition of a service name.
- ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
- // Operations to be reported.
- //
- // Typically the service should report one operation per request.
- // Putting multiple operations into a single request is allowed, but should
- // be used only when multiple operations are natually available at the time
- // of the report.
- //
- // If multiple operations are in a single request, the total request size
- // should be no larger than 1MB. See
- // [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
- // for partial failure behavior.
- Operations []*Operation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
- // Specifies which version of service config should be used to process the
- // request.
- //
- // If unspecified or no matching version can be found, the
- // latest one will be used.
- ServiceConfigId string `protobuf:"bytes,3,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *ReportRequest) Reset() { *m = ReportRequest{} }
- func (m *ReportRequest) String() string { return proto.CompactTextString(m) }
- func (*ReportRequest) ProtoMessage() {}
- func (*ReportRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_service_controller_63b84d9abfbd86ce, []int{2}
- }
- func (m *ReportRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ReportRequest.Unmarshal(m, b)
- }
- func (m *ReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ReportRequest.Marshal(b, m, deterministic)
- }
- func (dst *ReportRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ReportRequest.Merge(dst, src)
- }
- func (m *ReportRequest) XXX_Size() int {
- return xxx_messageInfo_ReportRequest.Size(m)
- }
- func (m *ReportRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_ReportRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_ReportRequest proto.InternalMessageInfo
-
- func (m *ReportRequest) GetServiceName() string {
- if m != nil {
- return m.ServiceName
- }
- return ""
- }
-
- func (m *ReportRequest) GetOperations() []*Operation {
- if m != nil {
- return m.Operations
- }
- return nil
- }
-
- func (m *ReportRequest) GetServiceConfigId() string {
- if m != nil {
- return m.ServiceConfigId
- }
- return ""
- }
-
- // Response message for the Report method.
- type ReportResponse struct {
- // Partial failures, one for each `Operation` in the request that failed
- // processing. There are three possible combinations of the RPC status:
- //
- // 1. The combination of a successful RPC status and an empty `report_errors`
- // list indicates a complete success where all `Operations` in the
- // request are processed successfully.
- // 2. The combination of a successful RPC status and a non-empty
- // `report_errors` list indicates a partial success where some
- // `Operations` in the request succeeded. Each
- // `Operation` that failed processing has a corresponding item
- // in this list.
- // 3. A failed RPC status indicates a general non-deterministic failure.
- // When this happens, it's impossible to know which of the
- // 'Operations' in the request succeeded or failed.
- ReportErrors []*ReportResponse_ReportError `protobuf:"bytes,1,rep,name=report_errors,json=reportErrors,proto3" json:"report_errors,omitempty"`
- // The actual config id used to process the request.
- ServiceConfigId string `protobuf:"bytes,2,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *ReportResponse) Reset() { *m = ReportResponse{} }
- func (m *ReportResponse) String() string { return proto.CompactTextString(m) }
- func (*ReportResponse) ProtoMessage() {}
- func (*ReportResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_service_controller_63b84d9abfbd86ce, []int{3}
- }
- func (m *ReportResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ReportResponse.Unmarshal(m, b)
- }
- func (m *ReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ReportResponse.Marshal(b, m, deterministic)
- }
- func (dst *ReportResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ReportResponse.Merge(dst, src)
- }
- func (m *ReportResponse) XXX_Size() int {
- return xxx_messageInfo_ReportResponse.Size(m)
- }
- func (m *ReportResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_ReportResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_ReportResponse proto.InternalMessageInfo
-
- func (m *ReportResponse) GetReportErrors() []*ReportResponse_ReportError {
- if m != nil {
- return m.ReportErrors
- }
- return nil
- }
-
- func (m *ReportResponse) GetServiceConfigId() string {
- if m != nil {
- return m.ServiceConfigId
- }
- return ""
- }
-
- // Represents the processing error of one
- // [Operation][google.api.servicecontrol.v1.Operation] in the request.
- type ReportResponse_ReportError struct {
- // The
- // [Operation.operation_id][google.api.servicecontrol.v1.Operation.operation_id]
- // value from the request.
- OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
- // Details of the error when processing the
- // [Operation][google.api.servicecontrol.v1.Operation].
- Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *ReportResponse_ReportError) Reset() { *m = ReportResponse_ReportError{} }
- func (m *ReportResponse_ReportError) String() string { return proto.CompactTextString(m) }
- func (*ReportResponse_ReportError) ProtoMessage() {}
- func (*ReportResponse_ReportError) Descriptor() ([]byte, []int) {
- return fileDescriptor_service_controller_63b84d9abfbd86ce, []int{3, 0}
- }
- func (m *ReportResponse_ReportError) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ReportResponse_ReportError.Unmarshal(m, b)
- }
- func (m *ReportResponse_ReportError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ReportResponse_ReportError.Marshal(b, m, deterministic)
- }
- func (dst *ReportResponse_ReportError) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ReportResponse_ReportError.Merge(dst, src)
- }
- func (m *ReportResponse_ReportError) XXX_Size() int {
- return xxx_messageInfo_ReportResponse_ReportError.Size(m)
- }
- func (m *ReportResponse_ReportError) XXX_DiscardUnknown() {
- xxx_messageInfo_ReportResponse_ReportError.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_ReportResponse_ReportError proto.InternalMessageInfo
-
- func (m *ReportResponse_ReportError) GetOperationId() string {
- if m != nil {
- return m.OperationId
- }
- return ""
- }
-
- func (m *ReportResponse_ReportError) GetStatus() *status.Status {
- if m != nil {
- return m.Status
- }
- return nil
- }
-
- func init() {
- proto.RegisterType((*CheckRequest)(nil), "google.api.servicecontrol.v1.CheckRequest")
- proto.RegisterType((*CheckResponse)(nil), "google.api.servicecontrol.v1.CheckResponse")
- proto.RegisterType((*CheckResponse_CheckInfo)(nil), "google.api.servicecontrol.v1.CheckResponse.CheckInfo")
- proto.RegisterType((*CheckResponse_ConsumerInfo)(nil), "google.api.servicecontrol.v1.CheckResponse.ConsumerInfo")
- proto.RegisterType((*ReportRequest)(nil), "google.api.servicecontrol.v1.ReportRequest")
- proto.RegisterType((*ReportResponse)(nil), "google.api.servicecontrol.v1.ReportResponse")
- proto.RegisterType((*ReportResponse_ReportError)(nil), "google.api.servicecontrol.v1.ReportResponse.ReportError")
- }
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
-
- // ServiceControllerClient is the client API for ServiceController service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type ServiceControllerClient interface {
- // Checks an operation with Google Service Control to decide whether
- // the given operation should proceed. It should be called before the
- // operation is executed.
- //
- // If feasible, the client should cache the check results and reuse them for
- // 60 seconds. In case of server errors, the client can rely on the cached
- // results for longer time.
- //
- // NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the
- // size limit of 64KB.
- //
- // This method requires the `servicemanagement.services.check` permission
- // on the specified service. For more information, see
- // [Google Cloud IAM](https://cloud.google.com/iam).
- Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
- // Reports operation results to Google Service Control, such as logs and
- // metrics. It should be called after an operation is completed.
- //
- // If feasible, the client should aggregate reporting data for up to 5
- // seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
- // reduce data loss during client crashes. Clients should carefully choose
- // the aggregation time window to avoid data loss risk more than 0.01%
- // for business and compliance reasons.
- //
- // NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has
- // the size limit of 1MB.
- //
- // This method requires the `servicemanagement.services.report` permission
- // on the specified service. For more information, see
- // [Google Cloud IAM](https://cloud.google.com/iam).
- Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error)
- }
-
- type serviceControllerClient struct {
- cc *grpc.ClientConn
- }
-
- func NewServiceControllerClient(cc *grpc.ClientConn) ServiceControllerClient {
- return &serviceControllerClient{cc}
- }
-
- func (c *serviceControllerClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
- out := new(CheckResponse)
- err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v1.ServiceController/Check", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *serviceControllerClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) {
- out := new(ReportResponse)
- err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v1.ServiceController/Report", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- // ServiceControllerServer is the server API for ServiceController service.
- type ServiceControllerServer interface {
- // Checks an operation with Google Service Control to decide whether
- // the given operation should proceed. It should be called before the
- // operation is executed.
- //
- // If feasible, the client should cache the check results and reuse them for
- // 60 seconds. In case of server errors, the client can rely on the cached
- // results for longer time.
- //
- // NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the
- // size limit of 64KB.
- //
- // This method requires the `servicemanagement.services.check` permission
- // on the specified service. For more information, see
- // [Google Cloud IAM](https://cloud.google.com/iam).
- Check(context.Context, *CheckRequest) (*CheckResponse, error)
- // Reports operation results to Google Service Control, such as logs and
- // metrics. It should be called after an operation is completed.
- //
- // If feasible, the client should aggregate reporting data for up to 5
- // seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
- // reduce data loss during client crashes. Clients should carefully choose
- // the aggregation time window to avoid data loss risk more than 0.01%
- // for business and compliance reasons.
- //
- // NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has
- // the size limit of 1MB.
- //
- // This method requires the `servicemanagement.services.report` permission
- // on the specified service. For more information, see
- // [Google Cloud IAM](https://cloud.google.com/iam).
- Report(context.Context, *ReportRequest) (*ReportResponse, error)
- }
-
- func RegisterServiceControllerServer(s *grpc.Server, srv ServiceControllerServer) {
- s.RegisterService(&_ServiceController_serviceDesc, srv)
- }
-
- func _ServiceController_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CheckRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ServiceControllerServer).Check(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.api.servicecontrol.v1.ServiceController/Check",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ServiceControllerServer).Check(ctx, req.(*CheckRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _ServiceController_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ReportRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ServiceControllerServer).Report(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.api.servicecontrol.v1.ServiceController/Report",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ServiceControllerServer).Report(ctx, req.(*ReportRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- var _ServiceController_serviceDesc = grpc.ServiceDesc{
- ServiceName: "google.api.servicecontrol.v1.ServiceController",
- HandlerType: (*ServiceControllerServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Check",
- Handler: _ServiceController_Check_Handler,
- },
- {
- MethodName: "Report",
- Handler: _ServiceController_Report_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "google/api/servicecontrol/v1/service_controller.proto",
- }
-
- func init() {
- proto.RegisterFile("google/api/servicecontrol/v1/service_controller.proto", fileDescriptor_service_controller_63b84d9abfbd86ce)
- }
-
- var fileDescriptor_service_controller_63b84d9abfbd86ce = []byte{
- // 619 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x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