proto/consents/v1/consents.pb.go (619 lines of code) (raw):
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/consents/v1/consents.proto
// Package v1 provides protocol buffer versions of Remembered Consents API for
// listing and revoking Remembered consents.
package v1
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// 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
// RequestMatchType defines what request is valid to use this consent.
type Consent_RequestMatchType int32
const (
// NONE : do not remember.
Consent_NONE Consent_RequestMatchType = 0
// SUBSET : request resource and scopes are subset of resource and scopes in
// this item.
Consent_SUBSET Consent_RequestMatchType = 1
// ANYTHING : request anything.
Consent_ANYTHING Consent_RequestMatchType = 2
)
var Consent_RequestMatchType_name = map[int32]string{
0: "NONE",
1: "SUBSET",
2: "ANYTHING",
}
var Consent_RequestMatchType_value = map[string]int32{
"NONE": 0,
"SUBSET": 1,
"ANYTHING": 2,
}
func (x Consent_RequestMatchType) String() string {
return proto.EnumName(Consent_RequestMatchType_name, int32(x))
}
func (Consent_RequestMatchType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0bb2e176a5b7c192, []int{3, 0}
}
// ReleaseType defines what to release.
type Consent_ReleaseType int32
const (
Consent_UNSPECIFIED Consent_ReleaseType = 0
// SELECTED : release selected visas of this item.
Consent_SELECTED Consent_ReleaseType = 1
// ANYTHING_NEEDED: release anything request needed.
Consent_ANYTHING_NEEDED Consent_ReleaseType = 2
)
var Consent_ReleaseType_name = map[int32]string{
0: "UNSPECIFIED",
1: "SELECTED",
2: "ANYTHING_NEEDED",
}
var Consent_ReleaseType_value = map[string]int32{
"UNSPECIFIED": 0,
"SELECTED": 1,
"ANYTHING_NEEDED": 2,
}
func (x Consent_ReleaseType) String() string {
return proto.EnumName(Consent_ReleaseType_name, int32(x))
}
func (Consent_ReleaseType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0bb2e176a5b7c192, []int{3, 1}
}
type DeleteConsentRequest struct {
Realm string `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
ConsentId string `protobuf:"bytes,3,opt,name=consent_id,json=consentId,proto3" json:"consent_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteConsentRequest) Reset() { *m = DeleteConsentRequest{} }
func (m *DeleteConsentRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteConsentRequest) ProtoMessage() {}
func (*DeleteConsentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0bb2e176a5b7c192, []int{0}
}
func (m *DeleteConsentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteConsentRequest.Unmarshal(m, b)
}
func (m *DeleteConsentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteConsentRequest.Marshal(b, m, deterministic)
}
func (m *DeleteConsentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteConsentRequest.Merge(m, src)
}
func (m *DeleteConsentRequest) XXX_Size() int {
return xxx_messageInfo_DeleteConsentRequest.Size(m)
}
func (m *DeleteConsentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteConsentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteConsentRequest proto.InternalMessageInfo
func (m *DeleteConsentRequest) GetRealm() string {
if m != nil {
return m.Realm
}
return ""
}
func (m *DeleteConsentRequest) GetUserId() string {
if m != nil {
return m.UserId
}
return ""
}
func (m *DeleteConsentRequest) GetConsentId() string {
if m != nil {
return m.ConsentId
}
return ""
}
type ListConsentsRequest struct {
Realm string `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
PageToken string `protobuf:"bytes,5,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 *ListConsentsRequest) Reset() { *m = ListConsentsRequest{} }
func (m *ListConsentsRequest) String() string { return proto.CompactTextString(m) }
func (*ListConsentsRequest) ProtoMessage() {}
func (*ListConsentsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0bb2e176a5b7c192, []int{1}
}
func (m *ListConsentsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListConsentsRequest.Unmarshal(m, b)
}
func (m *ListConsentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListConsentsRequest.Marshal(b, m, deterministic)
}
func (m *ListConsentsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListConsentsRequest.Merge(m, src)
}
func (m *ListConsentsRequest) XXX_Size() int {
return xxx_messageInfo_ListConsentsRequest.Size(m)
}
func (m *ListConsentsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListConsentsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListConsentsRequest proto.InternalMessageInfo
func (m *ListConsentsRequest) GetRealm() string {
if m != nil {
return m.Realm
}
return ""
}
func (m *ListConsentsRequest) GetUserId() string {
if m != nil {
return m.UserId
}
return ""
}
func (m *ListConsentsRequest) GetFilter() string {
if m != nil {
return m.Filter
}
return ""
}
func (m *ListConsentsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListConsentsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
type ListConsentsResponse struct {
Consents []*Consent `protobuf:"bytes,1,rep,name=consents,proto3" json:"consents,omitempty"`
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 *ListConsentsResponse) Reset() { *m = ListConsentsResponse{} }
func (m *ListConsentsResponse) String() string { return proto.CompactTextString(m) }
func (*ListConsentsResponse) ProtoMessage() {}
func (*ListConsentsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0bb2e176a5b7c192, []int{2}
}
func (m *ListConsentsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListConsentsResponse.Unmarshal(m, b)
}
func (m *ListConsentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListConsentsResponse.Marshal(b, m, deterministic)
}
func (m *ListConsentsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListConsentsResponse.Merge(m, src)
}
func (m *ListConsentsResponse) XXX_Size() int {
return xxx_messageInfo_ListConsentsResponse.Size(m)
}
func (m *ListConsentsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListConsentsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListConsentsResponse proto.InternalMessageInfo
func (m *ListConsentsResponse) GetConsents() []*Consent {
if m != nil {
return m.Consents
}
return nil
}
func (m *ListConsentsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Consent contains the consent a user has given for release of visas to a
// specific OAuth client.
type Consent struct {
// name iin format: /users/{user_id}/consents/{consent_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Client *Consent_Client `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
ExpireTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
RequestMatchType Consent_RequestMatchType `protobuf:"varint,5,opt,name=request_match_type,json=requestMatchType,proto3,enum=consents.v1.Consent_RequestMatchType" json:"request_match_type,omitempty"`
RequestedResources []string `protobuf:"bytes,6,rep,name=requested_resources,json=requestedResources,proto3" json:"requested_resources,omitempty"`
RequestedScopes []string `protobuf:"bytes,7,rep,name=requested_scopes,json=requestedScopes,proto3" json:"requested_scopes,omitempty"`
ReleaseType Consent_ReleaseType `protobuf:"varint,8,opt,name=release_type,json=releaseType,proto3,enum=consents.v1.Consent_ReleaseType" json:"release_type,omitempty"`
SelectedVisas []*Consent_Visa `protobuf:"bytes,9,rep,name=selected_visas,json=selectedVisas,proto3" json:"selected_visas,omitempty"`
ReleaseProfileName bool `protobuf:"varint,10,opt,name=release_profile_name,json=releaseProfileName,proto3" json:"release_profile_name,omitempty"`
ReleaseProfileEmail bool `protobuf:"varint,11,opt,name=release_profile_email,json=releaseProfileEmail,proto3" json:"release_profile_email,omitempty"`
ReleaseProfileOther bool `protobuf:"varint,12,opt,name=release_profile_other,json=releaseProfileOther,proto3" json:"release_profile_other,omitempty"`
ReleaseAccountAdmin bool `protobuf:"varint,13,opt,name=release_account_admin,json=releaseAccountAdmin,proto3" json:"release_account_admin,omitempty"`
ReleaseLink bool `protobuf:"varint,14,opt,name=release_link,json=releaseLink,proto3" json:"release_link,omitempty"`
ReleaseIdentities bool `protobuf:"varint,15,opt,name=release_identities,json=releaseIdentities,proto3" json:"release_identities,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Consent) Reset() { *m = Consent{} }
func (m *Consent) String() string { return proto.CompactTextString(m) }
func (*Consent) ProtoMessage() {}
func (*Consent) Descriptor() ([]byte, []int) {
return fileDescriptor_0bb2e176a5b7c192, []int{3}
}
func (m *Consent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Consent.Unmarshal(m, b)
}
func (m *Consent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Consent.Marshal(b, m, deterministic)
}
func (m *Consent) XXX_Merge(src proto.Message) {
xxx_messageInfo_Consent.Merge(m, src)
}
func (m *Consent) XXX_Size() int {
return xxx_messageInfo_Consent.Size(m)
}
func (m *Consent) XXX_DiscardUnknown() {
xxx_messageInfo_Consent.DiscardUnknown(m)
}
var xxx_messageInfo_Consent proto.InternalMessageInfo
func (m *Consent) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Consent) GetClient() *Consent_Client {
if m != nil {
return m.Client
}
return nil
}
func (m *Consent) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Consent) GetExpireTime() *timestamp.Timestamp {
if m != nil {
return m.ExpireTime
}
return nil
}
func (m *Consent) GetRequestMatchType() Consent_RequestMatchType {
if m != nil {
return m.RequestMatchType
}
return Consent_NONE
}
func (m *Consent) GetRequestedResources() []string {
if m != nil {
return m.RequestedResources
}
return nil
}
func (m *Consent) GetRequestedScopes() []string {
if m != nil {
return m.RequestedScopes
}
return nil
}
func (m *Consent) GetReleaseType() Consent_ReleaseType {
if m != nil {
return m.ReleaseType
}
return Consent_UNSPECIFIED
}
func (m *Consent) GetSelectedVisas() []*Consent_Visa {
if m != nil {
return m.SelectedVisas
}
return nil
}
func (m *Consent) GetReleaseProfileName() bool {
if m != nil {
return m.ReleaseProfileName
}
return false
}
func (m *Consent) GetReleaseProfileEmail() bool {
if m != nil {
return m.ReleaseProfileEmail
}
return false
}
func (m *Consent) GetReleaseProfileOther() bool {
if m != nil {
return m.ReleaseProfileOther
}
return false
}
func (m *Consent) GetReleaseAccountAdmin() bool {
if m != nil {
return m.ReleaseAccountAdmin
}
return false
}
func (m *Consent) GetReleaseLink() bool {
if m != nil {
return m.ReleaseLink
}
return false
}
func (m *Consent) GetReleaseIdentities() bool {
if m != nil {
return m.ReleaseIdentities
}
return false
}
// Visa contains fields to match released visas user have.
type Consent_Visa struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
By string `protobuf:"bytes,3,opt,name=by,proto3" json:"by,omitempty"`
Iss string `protobuf:"bytes,4,opt,name=iss,proto3" json:"iss,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Consent_Visa) Reset() { *m = Consent_Visa{} }
func (m *Consent_Visa) String() string { return proto.CompactTextString(m) }
func (*Consent_Visa) ProtoMessage() {}
func (*Consent_Visa) Descriptor() ([]byte, []int) {
return fileDescriptor_0bb2e176a5b7c192, []int{3, 0}
}
func (m *Consent_Visa) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Consent_Visa.Unmarshal(m, b)
}
func (m *Consent_Visa) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Consent_Visa.Marshal(b, m, deterministic)
}
func (m *Consent_Visa) XXX_Merge(src proto.Message) {
xxx_messageInfo_Consent_Visa.Merge(m, src)
}
func (m *Consent_Visa) XXX_Size() int {
return xxx_messageInfo_Consent_Visa.Size(m)
}
func (m *Consent_Visa) XXX_DiscardUnknown() {
xxx_messageInfo_Consent_Visa.DiscardUnknown(m)
}
var xxx_messageInfo_Consent_Visa proto.InternalMessageInfo
func (m *Consent_Visa) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *Consent_Visa) GetSource() string {
if m != nil {
return m.Source
}
return ""
}
func (m *Consent_Visa) GetBy() string {
if m != nil {
return m.By
}
return ""
}
func (m *Consent_Visa) GetIss() string {
if m != nil {
return m.Iss
}
return ""
}
// Client : remember the consent for this client.
type Consent_Client struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Ui map[string]string `protobuf:"bytes,3,rep,name=ui,proto3" json:"ui,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Consent_Client) Reset() { *m = Consent_Client{} }
func (m *Consent_Client) String() string { return proto.CompactTextString(m) }
func (*Consent_Client) ProtoMessage() {}
func (*Consent_Client) Descriptor() ([]byte, []int) {
return fileDescriptor_0bb2e176a5b7c192, []int{3, 1}
}
func (m *Consent_Client) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Consent_Client.Unmarshal(m, b)
}
func (m *Consent_Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Consent_Client.Marshal(b, m, deterministic)
}
func (m *Consent_Client) XXX_Merge(src proto.Message) {
xxx_messageInfo_Consent_Client.Merge(m, src)
}
func (m *Consent_Client) XXX_Size() int {
return xxx_messageInfo_Consent_Client.Size(m)
}
func (m *Consent_Client) XXX_DiscardUnknown() {
xxx_messageInfo_Consent_Client.DiscardUnknown(m)
}
var xxx_messageInfo_Consent_Client proto.InternalMessageInfo
func (m *Consent_Client) GetClientId() string {
if m != nil {
return m.ClientId
}
return ""
}
func (m *Consent_Client) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Consent_Client) GetUi() map[string]string {
if m != nil {
return m.Ui
}
return nil
}
func init() {
proto.RegisterEnum("consents.v1.Consent_RequestMatchType", Consent_RequestMatchType_name, Consent_RequestMatchType_value)
proto.RegisterEnum("consents.v1.Consent_ReleaseType", Consent_ReleaseType_name, Consent_ReleaseType_value)
proto.RegisterType((*DeleteConsentRequest)(nil), "consents.v1.DeleteConsentRequest")
proto.RegisterType((*ListConsentsRequest)(nil), "consents.v1.ListConsentsRequest")
proto.RegisterType((*ListConsentsResponse)(nil), "consents.v1.ListConsentsResponse")
proto.RegisterType((*Consent)(nil), "consents.v1.Consent")
proto.RegisterType((*Consent_Visa)(nil), "consents.v1.Consent.Visa")
proto.RegisterType((*Consent_Client)(nil), "consents.v1.Consent.Client")
proto.RegisterMapType((map[string]string)(nil), "consents.v1.Consent.Client.UiEntry")
}
func init() {
proto.RegisterFile("proto/consents/v1/consents.proto", fileDescriptor_0bb2e176a5b7c192)
}
var fileDescriptor_0bb2e176a5b7c192 = []byte{
// 984 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x5d, 0x6f, 0xe3, 0x54,
0x13, 0x5e, 0xbb, 0x6d, 0x9a, 0x4c, 0xfa, 0x91, 0xf7, 0xb4, 0xef, 0x62, 0x52, 0x10, 0x69, 0x80,
0x55, 0x41, 0x34, 0xde, 0xa6, 0x02, 0xf1, 0x71, 0x43, 0x37, 0x35, 0x4b, 0xa4, 0x92, 0xad, 0x9c,
0x14, 0x04, 0x37, 0xd6, 0xa9, 0x3d, 0x6d, 0x8f, 0xea, 0xd8, 0xc6, 0xe7, 0xb8, 0xda, 0x6c, 0xd5,
0x0b, 0x90, 0xf8, 0x05, 0x48, 0x88, 0x1b, 0x2e, 0xf9, 0x45, 0xfc, 0x05, 0x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, 0x0e, 0xbd,
0xc3, 0x86, 0xdd, 0xfd, 0xc5, 0x86, 0x6a, 0x39, 0x0e, 0xc9, 0x4f, 0x16, 0xac, 0xce, 0x2c, 0x08,
0xb2, 0x3d, 0xf3, 0xe7, 0xf3, 0x96, 0x47, 0xf3, 0xe1, 0x4b, 0xa3, 0xc3, 0x93, 0x3b, 0xa9, 0xfd,
0xc9, 0x8f, 0x7f, 0xfc, 0xf9, 0xb3, 0xbd, 0xff, 0xfe, 0x9e, 0xdc, 0x78, 0xd7, 0x6a, 0xd8, 0xdf,
0xb8, 0x72, 0xb6, 0x73, 0xf7, 0xda, 0x4c, 0xfc, 0x9b, 0xdb, 0xad, 0x78, 0x7d, 0xbb, 0x51, 0x6e,
0xc8, 0x0f, 0x16, 0xac, 0xdc, 0x9d, 0xd3, 0x64, 0xb6, 0x5f, 0xe7, 0x2c, 0x97, 0xe6, 0xf6, 0x2b,
0x22, 0xf4, 0x90, 0x6f, 0x7f, 0xa0, 0x04, 0x3d, 0x22, 0xef, 0xfc, 0x1b, 0x41, 0x4f, 0xbe, 0xf9,
0xee, 0xe4, 0x9c, 0x89, 0x8b, 0xe2, 0xb4, 0x13, 0xa6, 0x63, 0xf7, 0xa9, 0xfa, 0xc5, 0x5e, 0x9c,
0x16, 0xd1, 0x71, 0x4c, 0xc5, 0x59, 0x9a, 0x8f, 0xdd, 0x0b, 0xa4, 0xb1, 0xb8, 0x08, 0x69, 0x8e,
0xbb, 0x67, 0x18, 0x61, 0x4e, 0x05, 0x46, 0xbb, 0x34, 0x0c, 0x91, 0xf3, 0x5d, 0x8e, 0xf9, 0x15,
0x0b, 0x91, 0xbb, 0x2f, 0x2d, 0xff, 0xd3, 0x8a, 0x72, 0xed, 0xff, 0x15, 0x00, 0x00, 0xff, 0xff,
0x5b, 0x24, 0x76, 0x42, 0x18, 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
// ConsentsClient is the client API for Consents service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ConsentsClient interface {
// Deletes the specified Remembered Consent.
DeleteConsent(ctx context.Context, in *DeleteConsentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Lists the Remembered Consents.
ListConsents(ctx context.Context, in *ListConsentsRequest, opts ...grpc.CallOption) (*ListConsentsResponse, error)
}
type consentsClient struct {
cc grpc.ClientConnInterface
}
func NewConsentsClient(cc grpc.ClientConnInterface) ConsentsClient {
return &consentsClient{cc}
}
func (c *consentsClient) DeleteConsent(ctx context.Context, in *DeleteConsentRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/consents.v1.Consents/DeleteConsent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *consentsClient) ListConsents(ctx context.Context, in *ListConsentsRequest, opts ...grpc.CallOption) (*ListConsentsResponse, error) {
out := new(ListConsentsResponse)
err := c.cc.Invoke(ctx, "/consents.v1.Consents/ListConsents", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ConsentsServer is the server API for Consents service.
type ConsentsServer interface {
// Deletes the specified Remembered Consent.
DeleteConsent(context.Context, *DeleteConsentRequest) (*empty.Empty, error)
// Lists the Remembered Consents.
ListConsents(context.Context, *ListConsentsRequest) (*ListConsentsResponse, error)
}
// UnimplementedConsentsServer can be embedded to have forward compatible implementations.
type UnimplementedConsentsServer struct {
}
func (*UnimplementedConsentsServer) DeleteConsent(ctx context.Context, req *DeleteConsentRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteConsent not implemented")
}
func (*UnimplementedConsentsServer) ListConsents(ctx context.Context, req *ListConsentsRequest) (*ListConsentsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListConsents not implemented")
}
func RegisterConsentsServer(s *grpc.Server, srv ConsentsServer) {
s.RegisterService(&_Consents_serviceDesc, srv)
}
func _Consents_DeleteConsent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteConsentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConsentsServer).DeleteConsent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/consents.v1.Consents/DeleteConsent",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConsentsServer).DeleteConsent(ctx, req.(*DeleteConsentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Consents_ListConsents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListConsentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConsentsServer).ListConsents(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/consents.v1.Consents/ListConsents",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConsentsServer).ListConsents(ctx, req.(*ListConsentsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Consents_serviceDesc = grpc.ServiceDesc{
ServiceName: "consents.v1.Consents",
HandlerType: (*ConsentsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "DeleteConsent",
Handler: _Consents_DeleteConsent_Handler,
},
{
MethodName: "ListConsents",
Handler: _Consents_ListConsents_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "proto/consents/v1/consents.proto",
}