| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto |
| |
| package recommendationengine |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| empty "github.com/golang/protobuf/ptypes/empty" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| ) |
| |
| // 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Registered Api Key. |
| type PredictionApiKeyRegistration struct { |
| // The API key. |
| ApiKey string `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *PredictionApiKeyRegistration) Reset() { *m = PredictionApiKeyRegistration{} } |
| func (m *PredictionApiKeyRegistration) String() string { return proto.CompactTextString(m) } |
| func (*PredictionApiKeyRegistration) ProtoMessage() {} |
| func (*PredictionApiKeyRegistration) Descriptor() ([]byte, []int) { |
| return fileDescriptor_dc7c074fb118b00d, []int{0} |
| } |
| |
| func (m *PredictionApiKeyRegistration) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_PredictionApiKeyRegistration.Unmarshal(m, b) |
| } |
| func (m *PredictionApiKeyRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_PredictionApiKeyRegistration.Marshal(b, m, deterministic) |
| } |
| func (m *PredictionApiKeyRegistration) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_PredictionApiKeyRegistration.Merge(m, src) |
| } |
| func (m *PredictionApiKeyRegistration) XXX_Size() int { |
| return xxx_messageInfo_PredictionApiKeyRegistration.Size(m) |
| } |
| func (m *PredictionApiKeyRegistration) XXX_DiscardUnknown() { |
| xxx_messageInfo_PredictionApiKeyRegistration.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_PredictionApiKeyRegistration proto.InternalMessageInfo |
| |
| func (m *PredictionApiKeyRegistration) GetApiKey() string { |
| if m != nil { |
| return m.ApiKey |
| } |
| return "" |
| } |
| |
| // Request message for the `CreatePredictionApiKeyRegistration` method. |
| type CreatePredictionApiKeyRegistrationRequest struct { |
| // Required. The parent resource path. |
| // "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store". |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Required. The prediction API key registration. |
| PredictionApiKeyRegistration *PredictionApiKeyRegistration `protobuf:"bytes,2,opt,name=prediction_api_key_registration,json=predictionApiKeyRegistration,proto3" json:"prediction_api_key_registration,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CreatePredictionApiKeyRegistrationRequest) Reset() { |
| *m = CreatePredictionApiKeyRegistrationRequest{} |
| } |
| func (m *CreatePredictionApiKeyRegistrationRequest) String() string { return proto.CompactTextString(m) } |
| func (*CreatePredictionApiKeyRegistrationRequest) ProtoMessage() {} |
| func (*CreatePredictionApiKeyRegistrationRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_dc7c074fb118b00d, []int{1} |
| } |
| |
| func (m *CreatePredictionApiKeyRegistrationRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CreatePredictionApiKeyRegistrationRequest.Unmarshal(m, b) |
| } |
| func (m *CreatePredictionApiKeyRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CreatePredictionApiKeyRegistrationRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CreatePredictionApiKeyRegistrationRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CreatePredictionApiKeyRegistrationRequest.Merge(m, src) |
| } |
| func (m *CreatePredictionApiKeyRegistrationRequest) XXX_Size() int { |
| return xxx_messageInfo_CreatePredictionApiKeyRegistrationRequest.Size(m) |
| } |
| func (m *CreatePredictionApiKeyRegistrationRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CreatePredictionApiKeyRegistrationRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CreatePredictionApiKeyRegistrationRequest proto.InternalMessageInfo |
| |
| func (m *CreatePredictionApiKeyRegistrationRequest) GetParent() string { |
| if m != nil { |
| return m.Parent |
| } |
| return "" |
| } |
| |
| func (m *CreatePredictionApiKeyRegistrationRequest) GetPredictionApiKeyRegistration() *PredictionApiKeyRegistration { |
| if m != nil { |
| return m.PredictionApiKeyRegistration |
| } |
| return nil |
| } |
| |
| // Request message for the `ListPredictionApiKeyRegistrations`. |
| type ListPredictionApiKeyRegistrationsRequest struct { |
| // Required. The parent placement resource name such as |
| // "projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store" |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Optional. Maximum number of results to return per page. If unset, the |
| // service will choose a reasonable default. |
| PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| // Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`. |
| PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListPredictionApiKeyRegistrationsRequest) Reset() { |
| *m = ListPredictionApiKeyRegistrationsRequest{} |
| } |
| func (m *ListPredictionApiKeyRegistrationsRequest) String() string { return proto.CompactTextString(m) } |
| func (*ListPredictionApiKeyRegistrationsRequest) ProtoMessage() {} |
| func (*ListPredictionApiKeyRegistrationsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_dc7c074fb118b00d, []int{2} |
| } |
| |
| func (m *ListPredictionApiKeyRegistrationsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListPredictionApiKeyRegistrationsRequest.Unmarshal(m, b) |
| } |
| func (m *ListPredictionApiKeyRegistrationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListPredictionApiKeyRegistrationsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *ListPredictionApiKeyRegistrationsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListPredictionApiKeyRegistrationsRequest.Merge(m, src) |
| } |
| func (m *ListPredictionApiKeyRegistrationsRequest) XXX_Size() int { |
| return xxx_messageInfo_ListPredictionApiKeyRegistrationsRequest.Size(m) |
| } |
| func (m *ListPredictionApiKeyRegistrationsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListPredictionApiKeyRegistrationsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListPredictionApiKeyRegistrationsRequest proto.InternalMessageInfo |
| |
| func (m *ListPredictionApiKeyRegistrationsRequest) GetParent() string { |
| if m != nil { |
| return m.Parent |
| } |
| return "" |
| } |
| |
| func (m *ListPredictionApiKeyRegistrationsRequest) GetPageSize() int32 { |
| if m != nil { |
| return m.PageSize |
| } |
| return 0 |
| } |
| |
| func (m *ListPredictionApiKeyRegistrationsRequest) GetPageToken() string { |
| if m != nil { |
| return m.PageToken |
| } |
| return "" |
| } |
| |
| // Response message for the `ListPredictionApiKeyRegistrations`. |
| type ListPredictionApiKeyRegistrationsResponse struct { |
| // The list of registered API keys. |
| PredictionApiKeyRegistrations []*PredictionApiKeyRegistration `protobuf:"bytes,1,rep,name=prediction_api_key_registrations,json=predictionApiKeyRegistrations,proto3" json:"prediction_api_key_registrations,omitempty"` |
| // If empty, the list is complete. If nonempty, pass the token to the next |
| // request's `ListPredictionApiKeysRegistrationsRequest.pageToken`. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListPredictionApiKeyRegistrationsResponse) Reset() { |
| *m = ListPredictionApiKeyRegistrationsResponse{} |
| } |
| func (m *ListPredictionApiKeyRegistrationsResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListPredictionApiKeyRegistrationsResponse) ProtoMessage() {} |
| func (*ListPredictionApiKeyRegistrationsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_dc7c074fb118b00d, []int{3} |
| } |
| |
| func (m *ListPredictionApiKeyRegistrationsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListPredictionApiKeyRegistrationsResponse.Unmarshal(m, b) |
| } |
| func (m *ListPredictionApiKeyRegistrationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListPredictionApiKeyRegistrationsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *ListPredictionApiKeyRegistrationsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListPredictionApiKeyRegistrationsResponse.Merge(m, src) |
| } |
| func (m *ListPredictionApiKeyRegistrationsResponse) XXX_Size() int { |
| return xxx_messageInfo_ListPredictionApiKeyRegistrationsResponse.Size(m) |
| } |
| func (m *ListPredictionApiKeyRegistrationsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListPredictionApiKeyRegistrationsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListPredictionApiKeyRegistrationsResponse proto.InternalMessageInfo |
| |
| func (m *ListPredictionApiKeyRegistrationsResponse) GetPredictionApiKeyRegistrations() []*PredictionApiKeyRegistration { |
| if m != nil { |
| return m.PredictionApiKeyRegistrations |
| } |
| return nil |
| } |
| |
| func (m *ListPredictionApiKeyRegistrationsResponse) GetNextPageToken() string { |
| if m != nil { |
| return m.NextPageToken |
| } |
| return "" |
| } |
| |
| // Request message for `DeletePredictionApiKeyRegistration` method. |
| type DeletePredictionApiKeyRegistrationRequest struct { |
| // Required. The API key to unregister including full resource path. |
| // "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>" |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *DeletePredictionApiKeyRegistrationRequest) Reset() { |
| *m = DeletePredictionApiKeyRegistrationRequest{} |
| } |
| func (m *DeletePredictionApiKeyRegistrationRequest) String() string { return proto.CompactTextString(m) } |
| func (*DeletePredictionApiKeyRegistrationRequest) ProtoMessage() {} |
| func (*DeletePredictionApiKeyRegistrationRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_dc7c074fb118b00d, []int{4} |
| } |
| |
| func (m *DeletePredictionApiKeyRegistrationRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_DeletePredictionApiKeyRegistrationRequest.Unmarshal(m, b) |
| } |
| func (m *DeletePredictionApiKeyRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_DeletePredictionApiKeyRegistrationRequest.Marshal(b, m, deterministic) |
| } |
| func (m *DeletePredictionApiKeyRegistrationRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DeletePredictionApiKeyRegistrationRequest.Merge(m, src) |
| } |
| func (m *DeletePredictionApiKeyRegistrationRequest) XXX_Size() int { |
| return xxx_messageInfo_DeletePredictionApiKeyRegistrationRequest.Size(m) |
| } |
| func (m *DeletePredictionApiKeyRegistrationRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_DeletePredictionApiKeyRegistrationRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_DeletePredictionApiKeyRegistrationRequest proto.InternalMessageInfo |
| |
| func (m *DeletePredictionApiKeyRegistrationRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*PredictionApiKeyRegistration)(nil), "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration") |
| proto.RegisterType((*CreatePredictionApiKeyRegistrationRequest)(nil), "google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest") |
| proto.RegisterType((*ListPredictionApiKeyRegistrationsRequest)(nil), "google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest") |
| proto.RegisterType((*ListPredictionApiKeyRegistrationsResponse)(nil), "google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse") |
| proto.RegisterType((*DeletePredictionApiKeyRegistrationRequest)(nil), "google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto", fileDescriptor_dc7c074fb118b00d) |
| } |
| |
| var fileDescriptor_dc7c074fb118b00d = []byte{ |
| // 657 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x41, 0x6b, 0xd4, 0x40, |
| 0x18, 0x25, 0xa9, 0x6d, 0xed, 0x88, 0x08, 0x73, 0x68, 0x97, 0x6d, 0x8b, 0x6b, 0x04, 0xe9, 0x2e, |
| 0x34, 0x43, 0xeb, 0x41, 0xa8, 0x88, 0x6c, 0x6b, 0x29, 0xa2, 0x87, 0x92, 0x16, 0x05, 0x41, 0xc2, |
| 0x34, 0xfb, 0x35, 0x9d, 0x36, 0x99, 0x19, 0x33, 0xb3, 0xad, 0x5b, 0xa9, 0x07, 0x7f, 0x80, 0x08, |
| 0xfe, 0x03, 0x8f, 0x5e, 0x3c, 0xfa, 0x07, 0x3c, 0x79, 0x54, 0xaf, 0xde, 0xc4, 0x3f, 0xe1, 0x45, |
| 0x32, 0xb3, 0x5b, 0xb7, 0x52, 0xb3, 0x59, 0x58, 0x6f, 0xc9, 0xbc, 0x6f, 0xde, 0xbc, 0xf7, 0xf2, |
| 0x7d, 0x13, 0x14, 0xc4, 0x42, 0xc4, 0x09, 0x90, 0x28, 0x11, 0xed, 0x16, 0xc9, 0x20, 0x12, 0x69, |
| 0x0a, 0xbc, 0x45, 0x35, 0x13, 0x1c, 0x78, 0xcc, 0x38, 0x90, 0xc3, 0xa5, 0x1d, 0xd0, 0x74, 0x89, |
| 0xc8, 0x0c, 0x5a, 0x2c, 0xca, 0x81, 0x90, 0x4a, 0x76, 0x00, 0x9d, 0x30, 0x83, 0x98, 0x29, 0x9d, |
| 0x75, 0x42, 0x05, 0xd9, 0x21, 0x8b, 0xc0, 0x97, 0x99, 0xd0, 0x02, 0xd7, 0x2d, 0xa7, 0x6f, 0x38, |
| 0xfd, 0xf3, 0x38, 0xfd, 0x2e, 0x67, 0x75, 0xae, 0x7b, 0x3c, 0x95, 0x8c, 0x50, 0xce, 0x85, 0x36, |
| 0x45, 0xca, 0x12, 0x55, 0x67, 0xfa, 0xd0, 0x28, 0x61, 0xc0, 0x75, 0x17, 0x98, 0xed, 0x02, 0xe6, |
| 0x6d, 0xa7, 0xbd, 0x4b, 0x20, 0x95, 0xba, 0x63, 0x41, 0xef, 0x16, 0x9a, 0xdb, 0x3c, 0x95, 0xda, |
| 0x94, 0xec, 0x01, 0x74, 0x02, 0x2b, 0xd4, 0x90, 0xe3, 0x19, 0x34, 0x49, 0x25, 0x0b, 0x0f, 0xa0, |
| 0x53, 0x71, 0x6a, 0xce, 0xc2, 0x54, 0x30, 0x41, 0x4d, 0x91, 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0xb4, 0x5b, 0x1c, |
| 0x8b, 0x84, 0xf2, 0xd8, 0x17, 0x59, 0x4c, 0x62, 0xe0, 0x26, 0x1a, 0xf2, 0xe7, 0xc8, 0x12, 0xff, |
| 0xef, 0xdb, 0xe7, 0x81, 0xef, 0xdc, 0xf1, 0x60, 0x7d, 0xad, 0x79, 0xff, 0xbd, 0x5b, 0xdf, 0xb0, |
| 0xe7, 0xac, 0x19, 0x51, 0xc1, 0x99, 0xda, 0x75, 0x2b, 0xea, 0xd1, 0xd2, 0x6a, 0x4e, 0xb4, 0x33, |
| 0x61, 0x4e, 0xbf, 0xf9, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x39, 0x6d, 0x6a, 0xfb, 0x3c, 0x08, 0x00, |
| 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConnInterface |
| |
| // 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.SupportPackageIsVersion6 |
| |
| // PredictionApiKeyRegistryClient is the client API for PredictionApiKeyRegistry service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type PredictionApiKeyRegistryClient interface { |
| // Register an API key for use with predict method. |
| CreatePredictionApiKeyRegistration(ctx context.Context, in *CreatePredictionApiKeyRegistrationRequest, opts ...grpc.CallOption) (*PredictionApiKeyRegistration, error) |
| // List the registered apiKeys for use with predict method. |
| ListPredictionApiKeyRegistrations(ctx context.Context, in *ListPredictionApiKeyRegistrationsRequest, opts ...grpc.CallOption) (*ListPredictionApiKeyRegistrationsResponse, error) |
| // Unregister an apiKey from using for predict method. |
| DeletePredictionApiKeyRegistration(ctx context.Context, in *DeletePredictionApiKeyRegistrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) |
| } |
| |
| type predictionApiKeyRegistryClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewPredictionApiKeyRegistryClient(cc grpc.ClientConnInterface) PredictionApiKeyRegistryClient { |
| return &predictionApiKeyRegistryClient{cc} |
| } |
| |
| func (c *predictionApiKeyRegistryClient) CreatePredictionApiKeyRegistration(ctx context.Context, in *CreatePredictionApiKeyRegistrationRequest, opts ...grpc.CallOption) (*PredictionApiKeyRegistration, error) { |
| out := new(PredictionApiKeyRegistration) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/CreatePredictionApiKeyRegistration", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *predictionApiKeyRegistryClient) ListPredictionApiKeyRegistrations(ctx context.Context, in *ListPredictionApiKeyRegistrationsRequest, opts ...grpc.CallOption) (*ListPredictionApiKeyRegistrationsResponse, error) { |
| out := new(ListPredictionApiKeyRegistrationsResponse) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/ListPredictionApiKeyRegistrations", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *predictionApiKeyRegistryClient) DeletePredictionApiKeyRegistration(ctx context.Context, in *DeletePredictionApiKeyRegistrationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/DeletePredictionApiKeyRegistration", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // PredictionApiKeyRegistryServer is the server API for PredictionApiKeyRegistry service. |
| type PredictionApiKeyRegistryServer interface { |
| // Register an API key for use with predict method. |
| CreatePredictionApiKeyRegistration(context.Context, *CreatePredictionApiKeyRegistrationRequest) (*PredictionApiKeyRegistration, error) |
| // List the registered apiKeys for use with predict method. |
| ListPredictionApiKeyRegistrations(context.Context, *ListPredictionApiKeyRegistrationsRequest) (*ListPredictionApiKeyRegistrationsResponse, error) |
| // Unregister an apiKey from using for predict method. |
| DeletePredictionApiKeyRegistration(context.Context, *DeletePredictionApiKeyRegistrationRequest) (*empty.Empty, error) |
| } |
| |
| // UnimplementedPredictionApiKeyRegistryServer can be embedded to have forward compatible implementations. |
| type UnimplementedPredictionApiKeyRegistryServer struct { |
| } |
| |
| func (*UnimplementedPredictionApiKeyRegistryServer) CreatePredictionApiKeyRegistration(ctx context.Context, req *CreatePredictionApiKeyRegistrationRequest) (*PredictionApiKeyRegistration, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CreatePredictionApiKeyRegistration not implemented") |
| } |
| func (*UnimplementedPredictionApiKeyRegistryServer) ListPredictionApiKeyRegistrations(ctx context.Context, req *ListPredictionApiKeyRegistrationsRequest) (*ListPredictionApiKeyRegistrationsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListPredictionApiKeyRegistrations not implemented") |
| } |
| func (*UnimplementedPredictionApiKeyRegistryServer) DeletePredictionApiKeyRegistration(ctx context.Context, req *DeletePredictionApiKeyRegistrationRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DeletePredictionApiKeyRegistration not implemented") |
| } |
| |
| func RegisterPredictionApiKeyRegistryServer(s *grpc.Server, srv PredictionApiKeyRegistryServer) { |
| s.RegisterService(&_PredictionApiKeyRegistry_serviceDesc, srv) |
| } |
| |
| func _PredictionApiKeyRegistry_CreatePredictionApiKeyRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreatePredictionApiKeyRegistrationRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(PredictionApiKeyRegistryServer).CreatePredictionApiKeyRegistration(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/CreatePredictionApiKeyRegistration", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(PredictionApiKeyRegistryServer).CreatePredictionApiKeyRegistration(ctx, req.(*CreatePredictionApiKeyRegistrationRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _PredictionApiKeyRegistry_ListPredictionApiKeyRegistrations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListPredictionApiKeyRegistrationsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(PredictionApiKeyRegistryServer).ListPredictionApiKeyRegistrations(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/ListPredictionApiKeyRegistrations", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(PredictionApiKeyRegistryServer).ListPredictionApiKeyRegistrations(ctx, req.(*ListPredictionApiKeyRegistrationsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _PredictionApiKeyRegistry_DeletePredictionApiKeyRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(DeletePredictionApiKeyRegistrationRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(PredictionApiKeyRegistryServer).DeletePredictionApiKeyRegistration(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/DeletePredictionApiKeyRegistration", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(PredictionApiKeyRegistryServer).DeletePredictionApiKeyRegistration(ctx, req.(*DeletePredictionApiKeyRegistrationRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _PredictionApiKeyRegistry_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry", |
| HandlerType: (*PredictionApiKeyRegistryServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "CreatePredictionApiKeyRegistration", |
| Handler: _PredictionApiKeyRegistry_CreatePredictionApiKeyRegistration_Handler, |
| }, |
| { |
| MethodName: "ListPredictionApiKeyRegistrations", |
| Handler: _PredictionApiKeyRegistry_ListPredictionApiKeyRegistrations_Handler, |
| }, |
| { |
| MethodName: "DeletePredictionApiKeyRegistration", |
| Handler: _PredictionApiKeyRegistry_DeletePredictionApiKeyRegistration_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto", |
| } |