// Code generated by protoc-gen-go. DO NOT EDIT.
// source: cs3/sharing/ocm/v1beta1/ocm_api.proto

package ocmv1beta1

import (
	context "context"
	fmt "fmt"
	v1beta14 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
	v1beta12 "github.com/cs3org/go-cs3apis/cs3/ocm/provider/v1beta1"
	v1beta13 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
	v1beta11 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
	v1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
	proto "github.com/golang/protobuf/proto"
	field_mask "google.golang.org/genproto/protobuf/field_mask"
	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

// REQUIRED.
// The filter to apply.
type ListOCMSharesRequest_Filter_Type int32

const (
	ListOCMSharesRequest_Filter_TYPE_INVALID          ListOCMSharesRequest_Filter_Type = 0
	ListOCMSharesRequest_Filter_TYPE_NO               ListOCMSharesRequest_Filter_Type = 1
	ListOCMSharesRequest_Filter_TYPE_RESOURCE_ID      ListOCMSharesRequest_Filter_Type = 2
	ListOCMSharesRequest_Filter_TYPE_OWNER            ListOCMSharesRequest_Filter_Type = 3
	ListOCMSharesRequest_Filter_TYPE_CREATOR          ListOCMSharesRequest_Filter_Type = 4
	ListOCMSharesRequest_Filter_TYPE_OWNER_PROVIDER   ListOCMSharesRequest_Filter_Type = 5
	ListOCMSharesRequest_Filter_TYPE_CREATOR_PROVIDER ListOCMSharesRequest_Filter_Type = 6
)

var ListOCMSharesRequest_Filter_Type_name = map[int32]string{
	0: "TYPE_INVALID",
	1: "TYPE_NO",
	2: "TYPE_RESOURCE_ID",
	3: "TYPE_OWNER",
	4: "TYPE_CREATOR",
	5: "TYPE_OWNER_PROVIDER",
	6: "TYPE_CREATOR_PROVIDER",
}

var ListOCMSharesRequest_Filter_Type_value = map[string]int32{
	"TYPE_INVALID":          0,
	"TYPE_NO":               1,
	"TYPE_RESOURCE_ID":      2,
	"TYPE_OWNER":            3,
	"TYPE_CREATOR":          4,
	"TYPE_OWNER_PROVIDER":   5,
	"TYPE_CREATOR_PROVIDER": 6,
}

func (x ListOCMSharesRequest_Filter_Type) String() string {
	return proto.EnumName(ListOCMSharesRequest_Filter_Type_name, int32(x))
}

func (ListOCMSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{4, 0, 0}
}

type CreateOCMShareRequest struct {
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The unique identifier for the shared storage resource.
	ResourceId *v1beta11.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// REQUIRED.
	// The grantee for the share.
	Grantee *v1beta11.Grantee `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// REQUIRED.
	// The details of the recipient user's mesh provider.
	RecipientMeshProvider *v1beta12.ProviderInfo `protobuf:"bytes,4,opt,name=recipient_mesh_provider,json=recipientMeshProvider,proto3" json:"recipient_mesh_provider,omitempty"`
	// REQUIRED.
	AccessMethods []*AccessMethod `protobuf:"bytes,5,rep,name=access_methods,json=accessMethods,proto3" json:"access_methods,omitempty"`
	// OPTIONAL.
	// The expiration time for the ocm share.
	Expiration           *v1beta1.Timestamp `protobuf:"bytes,6,opt,name=expiration,proto3" json:"expiration,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (m *CreateOCMShareRequest) Reset()         { *m = CreateOCMShareRequest{} }
func (m *CreateOCMShareRequest) String() string { return proto.CompactTextString(m) }
func (*CreateOCMShareRequest) ProtoMessage()    {}
func (*CreateOCMShareRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{0}
}

func (m *CreateOCMShareRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_CreateOCMShareRequest.Unmarshal(m, b)
}
func (m *CreateOCMShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_CreateOCMShareRequest.Marshal(b, m, deterministic)
}
func (m *CreateOCMShareRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_CreateOCMShareRequest.Merge(m, src)
}
func (m *CreateOCMShareRequest) XXX_Size() int {
	return xxx_messageInfo_CreateOCMShareRequest.Size(m)
}
func (m *CreateOCMShareRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_CreateOCMShareRequest.DiscardUnknown(m)
}

var xxx_messageInfo_CreateOCMShareRequest proto.InternalMessageInfo

func (m *CreateOCMShareRequest) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *CreateOCMShareRequest) GetResourceId() *v1beta11.ResourceId {
	if m != nil {
		return m.ResourceId
	}
	return nil
}

func (m *CreateOCMShareRequest) GetGrantee() *v1beta11.Grantee {
	if m != nil {
		return m.Grantee
	}
	return nil
}

func (m *CreateOCMShareRequest) GetRecipientMeshProvider() *v1beta12.ProviderInfo {
	if m != nil {
		return m.RecipientMeshProvider
	}
	return nil
}

func (m *CreateOCMShareRequest) GetAccessMethods() []*AccessMethod {
	if m != nil {
		return m.AccessMethods
	}
	return nil
}

func (m *CreateOCMShareRequest) GetExpiration() *v1beta1.Timestamp {
	if m != nil {
		return m.Expiration
	}
	return nil
}

type CreateOCMShareResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The created share.
	Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"`
	// OPTIONAL.
	// Display name of the recipient of the share.
	RecipientDisplayName string   `protobuf:"bytes,4,opt,name=recipient_display_name,json=recipientDisplayName,proto3" json:"recipient_display_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *CreateOCMShareResponse) Reset()         { *m = CreateOCMShareResponse{} }
func (m *CreateOCMShareResponse) String() string { return proto.CompactTextString(m) }
func (*CreateOCMShareResponse) ProtoMessage()    {}
func (*CreateOCMShareResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{1}
}

func (m *CreateOCMShareResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_CreateOCMShareResponse.Unmarshal(m, b)
}
func (m *CreateOCMShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_CreateOCMShareResponse.Marshal(b, m, deterministic)
}
func (m *CreateOCMShareResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_CreateOCMShareResponse.Merge(m, src)
}
func (m *CreateOCMShareResponse) XXX_Size() int {
	return xxx_messageInfo_CreateOCMShareResponse.Size(m)
}
func (m *CreateOCMShareResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_CreateOCMShareResponse.DiscardUnknown(m)
}

var xxx_messageInfo_CreateOCMShareResponse proto.InternalMessageInfo

func (m *CreateOCMShareResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *CreateOCMShareResponse) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *CreateOCMShareResponse) GetShare() *Share {
	if m != nil {
		return m.Share
	}
	return nil
}

func (m *CreateOCMShareResponse) GetRecipientDisplayName() string {
	if m != nil {
		return m.RecipientDisplayName
	}
	return ""
}

type UpdateOCMShareRequest struct {
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	Ref                  *ShareReference                      `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	Field                []*UpdateOCMShareRequest_UpdateField `protobuf:"bytes,3,rep,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
	XXX_unrecognized     []byte                               `json:"-"`
	XXX_sizecache        int32                                `json:"-"`
}

func (m *UpdateOCMShareRequest) Reset()         { *m = UpdateOCMShareRequest{} }
func (m *UpdateOCMShareRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateOCMShareRequest) ProtoMessage()    {}
func (*UpdateOCMShareRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{2}
}

func (m *UpdateOCMShareRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_UpdateOCMShareRequest.Unmarshal(m, b)
}
func (m *UpdateOCMShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_UpdateOCMShareRequest.Marshal(b, m, deterministic)
}
func (m *UpdateOCMShareRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_UpdateOCMShareRequest.Merge(m, src)
}
func (m *UpdateOCMShareRequest) XXX_Size() int {
	return xxx_messageInfo_UpdateOCMShareRequest.Size(m)
}
func (m *UpdateOCMShareRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_UpdateOCMShareRequest.DiscardUnknown(m)
}

var xxx_messageInfo_UpdateOCMShareRequest proto.InternalMessageInfo

func (m *UpdateOCMShareRequest) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *UpdateOCMShareRequest) GetRef() *ShareReference {
	if m != nil {
		return m.Ref
	}
	return nil
}

func (m *UpdateOCMShareRequest) GetField() []*UpdateOCMShareRequest_UpdateField {
	if m != nil {
		return m.Field
	}
	return nil
}

// REQUIRED.
type UpdateOCMShareRequest_UpdateField struct {
	// One of the update fields MUST be specified.
	//
	// Types that are valid to be assigned to Field:
	//	*UpdateOCMShareRequest_UpdateField_Expiration
	//	*UpdateOCMShareRequest_UpdateField_AccessMethods
	Field                isUpdateOCMShareRequest_UpdateField_Field `protobuf_oneof:"field"`
	XXX_NoUnkeyedLiteral struct{}                                  `json:"-"`
	XXX_unrecognized     []byte                                    `json:"-"`
	XXX_sizecache        int32                                     `json:"-"`
}

func (m *UpdateOCMShareRequest_UpdateField) Reset()         { *m = UpdateOCMShareRequest_UpdateField{} }
func (m *UpdateOCMShareRequest_UpdateField) String() string { return proto.CompactTextString(m) }
func (*UpdateOCMShareRequest_UpdateField) ProtoMessage()    {}
func (*UpdateOCMShareRequest_UpdateField) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{2, 0}
}

func (m *UpdateOCMShareRequest_UpdateField) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_UpdateOCMShareRequest_UpdateField.Unmarshal(m, b)
}
func (m *UpdateOCMShareRequest_UpdateField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_UpdateOCMShareRequest_UpdateField.Marshal(b, m, deterministic)
}
func (m *UpdateOCMShareRequest_UpdateField) XXX_Merge(src proto.Message) {
	xxx_messageInfo_UpdateOCMShareRequest_UpdateField.Merge(m, src)
}
func (m *UpdateOCMShareRequest_UpdateField) XXX_Size() int {
	return xxx_messageInfo_UpdateOCMShareRequest_UpdateField.Size(m)
}
func (m *UpdateOCMShareRequest_UpdateField) XXX_DiscardUnknown() {
	xxx_messageInfo_UpdateOCMShareRequest_UpdateField.DiscardUnknown(m)
}

var xxx_messageInfo_UpdateOCMShareRequest_UpdateField proto.InternalMessageInfo

type isUpdateOCMShareRequest_UpdateField_Field interface {
	isUpdateOCMShareRequest_UpdateField_Field()
}

type UpdateOCMShareRequest_UpdateField_Expiration struct {
	Expiration *v1beta1.Timestamp `protobuf:"bytes,1,opt,name=expiration,proto3,oneof"`
}

type UpdateOCMShareRequest_UpdateField_AccessMethods struct {
	AccessMethods *AccessMethod `protobuf:"bytes,2,opt,name=access_methods,json=accessMethods,proto3,oneof"`
}

func (*UpdateOCMShareRequest_UpdateField_Expiration) isUpdateOCMShareRequest_UpdateField_Field() {}

func (*UpdateOCMShareRequest_UpdateField_AccessMethods) isUpdateOCMShareRequest_UpdateField_Field() {}

func (m *UpdateOCMShareRequest_UpdateField) GetField() isUpdateOCMShareRequest_UpdateField_Field {
	if m != nil {
		return m.Field
	}
	return nil
}

func (m *UpdateOCMShareRequest_UpdateField) GetExpiration() *v1beta1.Timestamp {
	if x, ok := m.GetField().(*UpdateOCMShareRequest_UpdateField_Expiration); ok {
		return x.Expiration
	}
	return nil
}

func (m *UpdateOCMShareRequest_UpdateField) GetAccessMethods() *AccessMethod {
	if x, ok := m.GetField().(*UpdateOCMShareRequest_UpdateField_AccessMethods); ok {
		return x.AccessMethods
	}
	return nil
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*UpdateOCMShareRequest_UpdateField) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*UpdateOCMShareRequest_UpdateField_Expiration)(nil),
		(*UpdateOCMShareRequest_UpdateField_AccessMethods)(nil),
	}
}

type UpdateOCMShareResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque               *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *UpdateOCMShareResponse) Reset()         { *m = UpdateOCMShareResponse{} }
func (m *UpdateOCMShareResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateOCMShareResponse) ProtoMessage()    {}
func (*UpdateOCMShareResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{3}
}

func (m *UpdateOCMShareResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_UpdateOCMShareResponse.Unmarshal(m, b)
}
func (m *UpdateOCMShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_UpdateOCMShareResponse.Marshal(b, m, deterministic)
}
func (m *UpdateOCMShareResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_UpdateOCMShareResponse.Merge(m, src)
}
func (m *UpdateOCMShareResponse) XXX_Size() int {
	return xxx_messageInfo_UpdateOCMShareResponse.Size(m)
}
func (m *UpdateOCMShareResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_UpdateOCMShareResponse.DiscardUnknown(m)
}

var xxx_messageInfo_UpdateOCMShareResponse proto.InternalMessageInfo

func (m *UpdateOCMShareResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *UpdateOCMShareResponse) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

type ListOCMSharesRequest struct {
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// OPTIONAL.
	// The list of filters to apply if any.
	Filters []*ListOCMSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
	// OPTIONAL.
	// Clients use this field to specify the maximum number of results to be returned by the server.
	// The server may further constrain the maximum number of results returned in a single page.
	// If the page_size is 0, the server will decide the number of results to be returned.
	// see https://cloud.google.com/apis/design/design_patterns#list_pagination
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// OPTIONAL.
	// The client uses this field to request a specific page of the list results.
	PageToken            string   `protobuf:"bytes,4,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 *ListOCMSharesRequest) Reset()         { *m = ListOCMSharesRequest{} }
func (m *ListOCMSharesRequest) String() string { return proto.CompactTextString(m) }
func (*ListOCMSharesRequest) ProtoMessage()    {}
func (*ListOCMSharesRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{4}
}

func (m *ListOCMSharesRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListOCMSharesRequest.Unmarshal(m, b)
}
func (m *ListOCMSharesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListOCMSharesRequest.Marshal(b, m, deterministic)
}
func (m *ListOCMSharesRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListOCMSharesRequest.Merge(m, src)
}
func (m *ListOCMSharesRequest) XXX_Size() int {
	return xxx_messageInfo_ListOCMSharesRequest.Size(m)
}
func (m *ListOCMSharesRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_ListOCMSharesRequest.DiscardUnknown(m)
}

var xxx_messageInfo_ListOCMSharesRequest proto.InternalMessageInfo

func (m *ListOCMSharesRequest) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *ListOCMSharesRequest) GetFilters() []*ListOCMSharesRequest_Filter {
	if m != nil {
		return m.Filters
	}
	return nil
}

func (m *ListOCMSharesRequest) GetPageSize() int32 {
	if m != nil {
		return m.PageSize
	}
	return 0
}

func (m *ListOCMSharesRequest) GetPageToken() string {
	if m != nil {
		return m.PageToken
	}
	return ""
}

// REQUIRED.
// represents a filter to apply to the request.
type ListOCMSharesRequest_Filter struct {
	// REQUIRED.
	Type ListOCMSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.ocm.v1beta1.ListOCMSharesRequest_Filter_Type" json:"type,omitempty"`
	// Types that are valid to be assigned to Term:
	//	*ListOCMSharesRequest_Filter_ResourceId
	//	*ListOCMSharesRequest_Filter_Owner
	//	*ListOCMSharesRequest_Filter_Creator
	Term                 isListOCMSharesRequest_Filter_Term `protobuf_oneof:"term"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

func (m *ListOCMSharesRequest_Filter) Reset()         { *m = ListOCMSharesRequest_Filter{} }
func (m *ListOCMSharesRequest_Filter) String() string { return proto.CompactTextString(m) }
func (*ListOCMSharesRequest_Filter) ProtoMessage()    {}
func (*ListOCMSharesRequest_Filter) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{4, 0}
}

func (m *ListOCMSharesRequest_Filter) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListOCMSharesRequest_Filter.Unmarshal(m, b)
}
func (m *ListOCMSharesRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListOCMSharesRequest_Filter.Marshal(b, m, deterministic)
}
func (m *ListOCMSharesRequest_Filter) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListOCMSharesRequest_Filter.Merge(m, src)
}
func (m *ListOCMSharesRequest_Filter) XXX_Size() int {
	return xxx_messageInfo_ListOCMSharesRequest_Filter.Size(m)
}
func (m *ListOCMSharesRequest_Filter) XXX_DiscardUnknown() {
	xxx_messageInfo_ListOCMSharesRequest_Filter.DiscardUnknown(m)
}

var xxx_messageInfo_ListOCMSharesRequest_Filter proto.InternalMessageInfo

func (m *ListOCMSharesRequest_Filter) GetType() ListOCMSharesRequest_Filter_Type {
	if m != nil {
		return m.Type
	}
	return ListOCMSharesRequest_Filter_TYPE_INVALID
}

type isListOCMSharesRequest_Filter_Term interface {
	isListOCMSharesRequest_Filter_Term()
}

type ListOCMSharesRequest_Filter_ResourceId struct {
	ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"`
}

type ListOCMSharesRequest_Filter_Owner struct {
	Owner *v1beta14.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"`
}

type ListOCMSharesRequest_Filter_Creator struct {
	Creator *v1beta14.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"`
}

func (*ListOCMSharesRequest_Filter_ResourceId) isListOCMSharesRequest_Filter_Term() {}

func (*ListOCMSharesRequest_Filter_Owner) isListOCMSharesRequest_Filter_Term() {}

func (*ListOCMSharesRequest_Filter_Creator) isListOCMSharesRequest_Filter_Term() {}

func (m *ListOCMSharesRequest_Filter) GetTerm() isListOCMSharesRequest_Filter_Term {
	if m != nil {
		return m.Term
	}
	return nil
}

func (m *ListOCMSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId {
	if x, ok := m.GetTerm().(*ListOCMSharesRequest_Filter_ResourceId); ok {
		return x.ResourceId
	}
	return nil
}

func (m *ListOCMSharesRequest_Filter) GetOwner() *v1beta14.UserId {
	if x, ok := m.GetTerm().(*ListOCMSharesRequest_Filter_Owner); ok {
		return x.Owner
	}
	return nil
}

func (m *ListOCMSharesRequest_Filter) GetCreator() *v1beta14.UserId {
	if x, ok := m.GetTerm().(*ListOCMSharesRequest_Filter_Creator); ok {
		return x.Creator
	}
	return nil
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*ListOCMSharesRequest_Filter) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*ListOCMSharesRequest_Filter_ResourceId)(nil),
		(*ListOCMSharesRequest_Filter_Owner)(nil),
		(*ListOCMSharesRequest_Filter_Creator)(nil),
	}
}

type ListOCMSharesResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The list of shares.
	Shares []*Share `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"`
	// OPTIONAL.
	// This field represents the pagination token to retrieve the next page of results.
	// If the value is "", it means no further results for the request.
	// see https://cloud.google.com/apis/design/design_patterns#list_pagination
	NextPageToken        string   `protobuf:"bytes,4,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 *ListOCMSharesResponse) Reset()         { *m = ListOCMSharesResponse{} }
func (m *ListOCMSharesResponse) String() string { return proto.CompactTextString(m) }
func (*ListOCMSharesResponse) ProtoMessage()    {}
func (*ListOCMSharesResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{5}
}

func (m *ListOCMSharesResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListOCMSharesResponse.Unmarshal(m, b)
}
func (m *ListOCMSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListOCMSharesResponse.Marshal(b, m, deterministic)
}
func (m *ListOCMSharesResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListOCMSharesResponse.Merge(m, src)
}
func (m *ListOCMSharesResponse) XXX_Size() int {
	return xxx_messageInfo_ListOCMSharesResponse.Size(m)
}
func (m *ListOCMSharesResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_ListOCMSharesResponse.DiscardUnknown(m)
}

var xxx_messageInfo_ListOCMSharesResponse proto.InternalMessageInfo

func (m *ListOCMSharesResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *ListOCMSharesResponse) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *ListOCMSharesResponse) GetShares() []*Share {
	if m != nil {
		return m.Shares
	}
	return nil
}

func (m *ListOCMSharesResponse) GetNextPageToken() string {
	if m != nil {
		return m.NextPageToken
	}
	return ""
}

type RemoveOCMShareRequest struct {
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The reference to which the action should be performed.
	Ref                  *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *RemoveOCMShareRequest) Reset()         { *m = RemoveOCMShareRequest{} }
func (m *RemoveOCMShareRequest) String() string { return proto.CompactTextString(m) }
func (*RemoveOCMShareRequest) ProtoMessage()    {}
func (*RemoveOCMShareRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{6}
}

func (m *RemoveOCMShareRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_RemoveOCMShareRequest.Unmarshal(m, b)
}
func (m *RemoveOCMShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_RemoveOCMShareRequest.Marshal(b, m, deterministic)
}
func (m *RemoveOCMShareRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_RemoveOCMShareRequest.Merge(m, src)
}
func (m *RemoveOCMShareRequest) XXX_Size() int {
	return xxx_messageInfo_RemoveOCMShareRequest.Size(m)
}
func (m *RemoveOCMShareRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_RemoveOCMShareRequest.DiscardUnknown(m)
}

var xxx_messageInfo_RemoveOCMShareRequest proto.InternalMessageInfo

func (m *RemoveOCMShareRequest) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *RemoveOCMShareRequest) GetRef() *ShareReference {
	if m != nil {
		return m.Ref
	}
	return nil
}

type RemoveOCMShareResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque               *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *RemoveOCMShareResponse) Reset()         { *m = RemoveOCMShareResponse{} }
func (m *RemoveOCMShareResponse) String() string { return proto.CompactTextString(m) }
func (*RemoveOCMShareResponse) ProtoMessage()    {}
func (*RemoveOCMShareResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{7}
}

func (m *RemoveOCMShareResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_RemoveOCMShareResponse.Unmarshal(m, b)
}
func (m *RemoveOCMShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_RemoveOCMShareResponse.Marshal(b, m, deterministic)
}
func (m *RemoveOCMShareResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_RemoveOCMShareResponse.Merge(m, src)
}
func (m *RemoveOCMShareResponse) XXX_Size() int {
	return xxx_messageInfo_RemoveOCMShareResponse.Size(m)
}
func (m *RemoveOCMShareResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_RemoveOCMShareResponse.DiscardUnknown(m)
}

var xxx_messageInfo_RemoveOCMShareResponse proto.InternalMessageInfo

func (m *RemoveOCMShareResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *RemoveOCMShareResponse) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

type GetOCMShareRequest struct {
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The reference to which the action should be performed.
	Ref                  *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *GetOCMShareRequest) Reset()         { *m = GetOCMShareRequest{} }
func (m *GetOCMShareRequest) String() string { return proto.CompactTextString(m) }
func (*GetOCMShareRequest) ProtoMessage()    {}
func (*GetOCMShareRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{8}
}

func (m *GetOCMShareRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetOCMShareRequest.Unmarshal(m, b)
}
func (m *GetOCMShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetOCMShareRequest.Marshal(b, m, deterministic)
}
func (m *GetOCMShareRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetOCMShareRequest.Merge(m, src)
}
func (m *GetOCMShareRequest) XXX_Size() int {
	return xxx_messageInfo_GetOCMShareRequest.Size(m)
}
func (m *GetOCMShareRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_GetOCMShareRequest.DiscardUnknown(m)
}

var xxx_messageInfo_GetOCMShareRequest proto.InternalMessageInfo

func (m *GetOCMShareRequest) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *GetOCMShareRequest) GetRef() *ShareReference {
	if m != nil {
		return m.Ref
	}
	return nil
}

type GetOCMShareResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The share.
	Share                *Share   `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *GetOCMShareResponse) Reset()         { *m = GetOCMShareResponse{} }
func (m *GetOCMShareResponse) String() string { return proto.CompactTextString(m) }
func (*GetOCMShareResponse) ProtoMessage()    {}
func (*GetOCMShareResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{9}
}

func (m *GetOCMShareResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetOCMShareResponse.Unmarshal(m, b)
}
func (m *GetOCMShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetOCMShareResponse.Marshal(b, m, deterministic)
}
func (m *GetOCMShareResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetOCMShareResponse.Merge(m, src)
}
func (m *GetOCMShareResponse) XXX_Size() int {
	return xxx_messageInfo_GetOCMShareResponse.Size(m)
}
func (m *GetOCMShareResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_GetOCMShareResponse.DiscardUnknown(m)
}

var xxx_messageInfo_GetOCMShareResponse proto.InternalMessageInfo

func (m *GetOCMShareResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *GetOCMShareResponse) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *GetOCMShareResponse) GetShare() *Share {
	if m != nil {
		return m.Share
	}
	return nil
}

type GetOCMShareByTokenRequest struct {
	// REQUIRED.
	// The unlisted token to identify the public share.
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *GetOCMShareByTokenRequest) Reset()         { *m = GetOCMShareByTokenRequest{} }
func (m *GetOCMShareByTokenRequest) String() string { return proto.CompactTextString(m) }
func (*GetOCMShareByTokenRequest) ProtoMessage()    {}
func (*GetOCMShareByTokenRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{10}
}

func (m *GetOCMShareByTokenRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetOCMShareByTokenRequest.Unmarshal(m, b)
}
func (m *GetOCMShareByTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetOCMShareByTokenRequest.Marshal(b, m, deterministic)
}
func (m *GetOCMShareByTokenRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetOCMShareByTokenRequest.Merge(m, src)
}
func (m *GetOCMShareByTokenRequest) XXX_Size() int {
	return xxx_messageInfo_GetOCMShareByTokenRequest.Size(m)
}
func (m *GetOCMShareByTokenRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_GetOCMShareByTokenRequest.DiscardUnknown(m)
}

var xxx_messageInfo_GetOCMShareByTokenRequest proto.InternalMessageInfo

func (m *GetOCMShareByTokenRequest) GetToken() string {
	if m != nil {
		return m.Token
	}
	return ""
}

type GetOCMShareByTokenResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// REQUIRED.
	// The share.
	Share                *Share   `protobuf:"bytes,2,opt,name=share,proto3" json:"share,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *GetOCMShareByTokenResponse) Reset()         { *m = GetOCMShareByTokenResponse{} }
func (m *GetOCMShareByTokenResponse) String() string { return proto.CompactTextString(m) }
func (*GetOCMShareByTokenResponse) ProtoMessage()    {}
func (*GetOCMShareByTokenResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{11}
}

func (m *GetOCMShareByTokenResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetOCMShareByTokenResponse.Unmarshal(m, b)
}
func (m *GetOCMShareByTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetOCMShareByTokenResponse.Marshal(b, m, deterministic)
}
func (m *GetOCMShareByTokenResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetOCMShareByTokenResponse.Merge(m, src)
}
func (m *GetOCMShareByTokenResponse) XXX_Size() int {
	return xxx_messageInfo_GetOCMShareByTokenResponse.Size(m)
}
func (m *GetOCMShareByTokenResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_GetOCMShareByTokenResponse.DiscardUnknown(m)
}

var xxx_messageInfo_GetOCMShareByTokenResponse proto.InternalMessageInfo

func (m *GetOCMShareByTokenResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *GetOCMShareByTokenResponse) GetShare() *Share {
	if m != nil {
		return m.Share
	}
	return nil
}

type ListReceivedOCMSharesRequest struct {
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// OPTIONAL.
	// Clients use this field to specify the maximum number of results to be returned by the server.
	// The server may further constrain the maximum number of results returned in a single page.
	// If the page_size is 0, the server will decide the number of results to be returned.
	// see https://cloud.google.com/apis/design/design_patterns#list_pagination
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// OPTIONAL.
	// The client uses this field to request a specific page of the list results.
	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 *ListReceivedOCMSharesRequest) Reset()         { *m = ListReceivedOCMSharesRequest{} }
func (m *ListReceivedOCMSharesRequest) String() string { return proto.CompactTextString(m) }
func (*ListReceivedOCMSharesRequest) ProtoMessage()    {}
func (*ListReceivedOCMSharesRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{12}
}

func (m *ListReceivedOCMSharesRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListReceivedOCMSharesRequest.Unmarshal(m, b)
}
func (m *ListReceivedOCMSharesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListReceivedOCMSharesRequest.Marshal(b, m, deterministic)
}
func (m *ListReceivedOCMSharesRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListReceivedOCMSharesRequest.Merge(m, src)
}
func (m *ListReceivedOCMSharesRequest) XXX_Size() int {
	return xxx_messageInfo_ListReceivedOCMSharesRequest.Size(m)
}
func (m *ListReceivedOCMSharesRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_ListReceivedOCMSharesRequest.DiscardUnknown(m)
}

var xxx_messageInfo_ListReceivedOCMSharesRequest proto.InternalMessageInfo

func (m *ListReceivedOCMSharesRequest) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *ListReceivedOCMSharesRequest) GetPageSize() int32 {
	if m != nil {
		return m.PageSize
	}
	return 0
}

func (m *ListReceivedOCMSharesRequest) GetPageToken() string {
	if m != nil {
		return m.PageToken
	}
	return ""
}

type ListReceivedOCMSharesResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The list of received shares.
	Shares []*ReceivedShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"`
	// OPTIONAL.
	// This field represents the pagination token to retrieve the next page of results.
	// If the value is "", it means no further results for the request.
	// see https://cloud.google.com/apis/design/design_patterns#list_pagination
	NextPageToken        string   `protobuf:"bytes,4,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 *ListReceivedOCMSharesResponse) Reset()         { *m = ListReceivedOCMSharesResponse{} }
func (m *ListReceivedOCMSharesResponse) String() string { return proto.CompactTextString(m) }
func (*ListReceivedOCMSharesResponse) ProtoMessage()    {}
func (*ListReceivedOCMSharesResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{13}
}

func (m *ListReceivedOCMSharesResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListReceivedOCMSharesResponse.Unmarshal(m, b)
}
func (m *ListReceivedOCMSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListReceivedOCMSharesResponse.Marshal(b, m, deterministic)
}
func (m *ListReceivedOCMSharesResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListReceivedOCMSharesResponse.Merge(m, src)
}
func (m *ListReceivedOCMSharesResponse) XXX_Size() int {
	return xxx_messageInfo_ListReceivedOCMSharesResponse.Size(m)
}
func (m *ListReceivedOCMSharesResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_ListReceivedOCMSharesResponse.DiscardUnknown(m)
}

var xxx_messageInfo_ListReceivedOCMSharesResponse proto.InternalMessageInfo

func (m *ListReceivedOCMSharesResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *ListReceivedOCMSharesResponse) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *ListReceivedOCMSharesResponse) GetShares() []*ReceivedShare {
	if m != nil {
		return m.Shares
	}
	return nil
}

func (m *ListReceivedOCMSharesResponse) GetNextPageToken() string {
	if m != nil {
		return m.NextPageToken
	}
	return ""
}

// TODO(labkode): clean up display_name ? we'll use storage links for that.
type UpdateReceivedOCMShareRequest struct {
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The received share to update.
	Share *ReceivedShare `protobuf:"bytes,2,opt,name=share,proto3" json:"share,omitempty"`
	// The update mask applies to the resource. For the `FieldMask` definition,
	// see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (m *UpdateReceivedOCMShareRequest) Reset()         { *m = UpdateReceivedOCMShareRequest{} }
func (m *UpdateReceivedOCMShareRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateReceivedOCMShareRequest) ProtoMessage()    {}
func (*UpdateReceivedOCMShareRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{14}
}

func (m *UpdateReceivedOCMShareRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_UpdateReceivedOCMShareRequest.Unmarshal(m, b)
}
func (m *UpdateReceivedOCMShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_UpdateReceivedOCMShareRequest.Marshal(b, m, deterministic)
}
func (m *UpdateReceivedOCMShareRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_UpdateReceivedOCMShareRequest.Merge(m, src)
}
func (m *UpdateReceivedOCMShareRequest) XXX_Size() int {
	return xxx_messageInfo_UpdateReceivedOCMShareRequest.Size(m)
}
func (m *UpdateReceivedOCMShareRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_UpdateReceivedOCMShareRequest.DiscardUnknown(m)
}

var xxx_messageInfo_UpdateReceivedOCMShareRequest proto.InternalMessageInfo

func (m *UpdateReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *UpdateReceivedOCMShareRequest) GetShare() *ReceivedShare {
	if m != nil {
		return m.Share
	}
	return nil
}

func (m *UpdateReceivedOCMShareRequest) GetUpdateMask() *field_mask.FieldMask {
	if m != nil {
		return m.UpdateMask
	}
	return nil
}

type UpdateReceivedOCMShareResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque               *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *UpdateReceivedOCMShareResponse) Reset()         { *m = UpdateReceivedOCMShareResponse{} }
func (m *UpdateReceivedOCMShareResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateReceivedOCMShareResponse) ProtoMessage()    {}
func (*UpdateReceivedOCMShareResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{15}
}

func (m *UpdateReceivedOCMShareResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_UpdateReceivedOCMShareResponse.Unmarshal(m, b)
}
func (m *UpdateReceivedOCMShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_UpdateReceivedOCMShareResponse.Marshal(b, m, deterministic)
}
func (m *UpdateReceivedOCMShareResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_UpdateReceivedOCMShareResponse.Merge(m, src)
}
func (m *UpdateReceivedOCMShareResponse) XXX_Size() int {
	return xxx_messageInfo_UpdateReceivedOCMShareResponse.Size(m)
}
func (m *UpdateReceivedOCMShareResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_UpdateReceivedOCMShareResponse.DiscardUnknown(m)
}

var xxx_messageInfo_UpdateReceivedOCMShareResponse proto.InternalMessageInfo

func (m *UpdateReceivedOCMShareResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *UpdateReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

type GetReceivedOCMShareRequest struct {
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The reference of the received share.
	Ref                  *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *GetReceivedOCMShareRequest) Reset()         { *m = GetReceivedOCMShareRequest{} }
func (m *GetReceivedOCMShareRequest) String() string { return proto.CompactTextString(m) }
func (*GetReceivedOCMShareRequest) ProtoMessage()    {}
func (*GetReceivedOCMShareRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{16}
}

func (m *GetReceivedOCMShareRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetReceivedOCMShareRequest.Unmarshal(m, b)
}
func (m *GetReceivedOCMShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetReceivedOCMShareRequest.Marshal(b, m, deterministic)
}
func (m *GetReceivedOCMShareRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetReceivedOCMShareRequest.Merge(m, src)
}
func (m *GetReceivedOCMShareRequest) XXX_Size() int {
	return xxx_messageInfo_GetReceivedOCMShareRequest.Size(m)
}
func (m *GetReceivedOCMShareRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_GetReceivedOCMShareRequest.DiscardUnknown(m)
}

var xxx_messageInfo_GetReceivedOCMShareRequest proto.InternalMessageInfo

func (m *GetReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *GetReceivedOCMShareRequest) GetRef() *ShareReference {
	if m != nil {
		return m.Ref
	}
	return nil
}

type GetReceivedOCMShareResponse struct {
	// REQUIRED.
	// The response status.
	Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The share.
	Share                *ReceivedShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (m *GetReceivedOCMShareResponse) Reset()         { *m = GetReceivedOCMShareResponse{} }
func (m *GetReceivedOCMShareResponse) String() string { return proto.CompactTextString(m) }
func (*GetReceivedOCMShareResponse) ProtoMessage()    {}
func (*GetReceivedOCMShareResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_3b1231a7f0a479a0, []int{17}
}

func (m *GetReceivedOCMShareResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetReceivedOCMShareResponse.Unmarshal(m, b)
}
func (m *GetReceivedOCMShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetReceivedOCMShareResponse.Marshal(b, m, deterministic)
}
func (m *GetReceivedOCMShareResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetReceivedOCMShareResponse.Merge(m, src)
}
func (m *GetReceivedOCMShareResponse) XXX_Size() int {
	return xxx_messageInfo_GetReceivedOCMShareResponse.Size(m)
}
func (m *GetReceivedOCMShareResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_GetReceivedOCMShareResponse.DiscardUnknown(m)
}

var xxx_messageInfo_GetReceivedOCMShareResponse proto.InternalMessageInfo

func (m *GetReceivedOCMShareResponse) GetStatus() *v1beta13.Status {
	if m != nil {
		return m.Status
	}
	return nil
}

func (m *GetReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque {
	if m != nil {
		return m.Opaque
	}
	return nil
}

func (m *GetReceivedOCMShareResponse) GetShare() *ReceivedShare {
	if m != nil {
		return m.Share
	}
	return nil
}

func init() {
	proto.RegisterEnum("cs3.sharing.ocm.v1beta1.ListOCMSharesRequest_Filter_Type", ListOCMSharesRequest_Filter_Type_name, ListOCMSharesRequest_Filter_Type_value)
	proto.RegisterType((*CreateOCMShareRequest)(nil), "cs3.sharing.ocm.v1beta1.CreateOCMShareRequest")
	proto.RegisterType((*CreateOCMShareResponse)(nil), "cs3.sharing.ocm.v1beta1.CreateOCMShareResponse")
	proto.RegisterType((*UpdateOCMShareRequest)(nil), "cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest")
	proto.RegisterType((*UpdateOCMShareRequest_UpdateField)(nil), "cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.UpdateField")
	proto.RegisterType((*UpdateOCMShareResponse)(nil), "cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse")
	proto.RegisterType((*ListOCMSharesRequest)(nil), "cs3.sharing.ocm.v1beta1.ListOCMSharesRequest")
	proto.RegisterType((*ListOCMSharesRequest_Filter)(nil), "cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter")
	proto.RegisterType((*ListOCMSharesResponse)(nil), "cs3.sharing.ocm.v1beta1.ListOCMSharesResponse")
	proto.RegisterType((*RemoveOCMShareRequest)(nil), "cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest")
	proto.RegisterType((*RemoveOCMShareResponse)(nil), "cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse")
	proto.RegisterType((*GetOCMShareRequest)(nil), "cs3.sharing.ocm.v1beta1.GetOCMShareRequest")
	proto.RegisterType((*GetOCMShareResponse)(nil), "cs3.sharing.ocm.v1beta1.GetOCMShareResponse")
	proto.RegisterType((*GetOCMShareByTokenRequest)(nil), "cs3.sharing.ocm.v1beta1.GetOCMShareByTokenRequest")
	proto.RegisterType((*GetOCMShareByTokenResponse)(nil), "cs3.sharing.ocm.v1beta1.GetOCMShareByTokenResponse")
	proto.RegisterType((*ListReceivedOCMSharesRequest)(nil), "cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest")
	proto.RegisterType((*ListReceivedOCMSharesResponse)(nil), "cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse")
	proto.RegisterType((*UpdateReceivedOCMShareRequest)(nil), "cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest")
	proto.RegisterType((*UpdateReceivedOCMShareResponse)(nil), "cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse")
	proto.RegisterType((*GetReceivedOCMShareRequest)(nil), "cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest")
	proto.RegisterType((*GetReceivedOCMShareResponse)(nil), "cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse")
}

func init() {
	proto.RegisterFile("cs3/sharing/ocm/v1beta1/ocm_api.proto", fileDescriptor_3b1231a7f0a479a0)
}

var fileDescriptor_3b1231a7f0a479a0 = []byte{
	// 1333 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcb, 0x8e, 0x1b, 0x45,
	0x17, 0x4e, 0xdb, 0x63, 0x4f, 0x72, 0xfc, 0x67, 0x7e, 0xab, 0x32, 0xce, 0x38, 0x9d, 0x4c, 0x14,
	0x5a, 0xca, 0x05, 0x11, 0xda, 0x9a, 0x0b, 0x41, 0x81, 0x10, 0x34, 0xf6, 0x38, 0x89, 0x45, 0xc6,
	0xb6, 0x6a, 0x26, 0x41, 0xa0, 0x88, 0x56, 0xa7, 0x5d, 0xb6, 0x5b, 0x99, 0xbe, 0x4c, 0x57, 0x7b,
	0xc8, 0x44, 0x20, 0x45, 0xdc, 0x24, 0x90, 0x58, 0xc0, 0x23, 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, 0xa2, 0x4d, 0x46, 0xde,
	0x98, 0xc9, 0x47, 0x4c, 0x6f, 0xc3, 0xc9, 0xc8, 0x85, 0x0e, 0xbd, 0x3e, 0xd3, 0x35, 0x5c, 0x56,
	0xa7, 0x85, 0xf7, 0x72, 0x19, 0x7d, 0x54, 0x8d, 0xc9, 0xe5, 0xc8, 0x27, 0xe5, 0x98, 0x5c, 0xc6,
	0xbc, 0xd6, 0xbe, 0x12, 0x97, 0xd6, 0xa1, 0x86, 0x82, 0xde, 0x18, 0x4b, 0x3e, 0xae, 0x21, 0xca,
	0xd7, 0x66, 0x75, 0x13, 0x44, 0xbe, 0x96, 0xc2, 0x17, 0xe5, 0x20, 0x06, 0x5d, 0x9b, 0xb0, 0xa8,
	0x98, 0x42, 0x26, 0xbf, 0x39, 0xb3, 0x9f, 0xe0, 0xf2, 0x34, 0xb8, 0x60, 0x0d, 0x11, 0x19, 0x2b,
	0xa2, 0x38, 0x16, 0x9b, 0xb3, 0x39, 0x05, 0x14, 0x8a, 0x1e, 0x9c, 0x35, 0x1c, 0x2b, 0xce, 0xb5,
	0x98, 0x61, 0x05, 0xc7, 0x35, 0xeb, 0xac, 0xdf, 0xd4, 0xa5, 0x0f, 0xc1, 0x31, 0x2c, 0x61, 0xfa,
	0x21, 0x91, 0x2c, 0xed, 0xd6, 0x7e, 0x4a, 0xac, 0x94, 0xe8, 0x06, 0x2f, 0xb8, 0xcc, 0xb5, 0x66,
	0x58, 0xea, 0xfd, 0xb5, 0x22, 0xb3, 0xff, 0xce, 0x2d, 0x0f, 0x84, 0xe5, 0x41, 0xcd, 0xb0, 0x1e,
	0x08, 0xcb, 0xc3, 0x34, 0x6f, 0x5f, 0x1b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x14, 0xd1, 0x72,
	0x91, 0x5a, 0x15, 0x00, 0x00,
}

// 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

// OcmAPIClient is the client API for OcmAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OcmAPIClient interface {
	// Creates a new ocm share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING, and MUST be sent
	// to the remote system using the OCM API at:
	// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1shares/post
	CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	// This action SHALL be notified to the remote system
	// using the OCM API at:
	// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
	RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error)
	// Gets share information for a single share by its unlisted token.
	// MUST return CODE_NOT_FOUND if the share does not exist.
	GetOCMShareByToken(ctx context.Context, in *GetOCMShareByTokenRequest, opts ...grpc.CallOption) (*GetOCMShareByTokenResponse, error)
	// List the shares the authenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	// This action SHALL be notified to the remote system
	// using the OCM API at:
	// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
	UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error)
	// List all shares the authenticated principal has received.
	ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error)
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error)
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error)
}

type ocmAPIClient struct {
	cc *grpc.ClientConn
}

func NewOcmAPIClient(cc *grpc.ClientConn) OcmAPIClient {
	return &ocmAPIClient{cc}
}

func (c *ocmAPIClient) CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error) {
	out := new(CreateOCMShareResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/CreateOCMShare", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ocmAPIClient) RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error) {
	out := new(RemoveOCMShareResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/RemoveOCMShare", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ocmAPIClient) GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error) {
	out := new(GetOCMShareResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShare", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ocmAPIClient) GetOCMShareByToken(ctx context.Context, in *GetOCMShareByTokenRequest, opts ...grpc.CallOption) (*GetOCMShareByTokenResponse, error) {
	out := new(GetOCMShareByTokenResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShareByToken", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ocmAPIClient) ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error) {
	out := new(ListOCMSharesResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/ListOCMShares", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ocmAPIClient) UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error) {
	out := new(UpdateOCMShareResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateOCMShare", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ocmAPIClient) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error) {
	out := new(ListReceivedOCMSharesResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ocmAPIClient) UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error) {
	out := new(UpdateReceivedOCMShareResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateReceivedOCMShare", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ocmAPIClient) GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error) {
	out := new(GetReceivedOCMShareResponse)
	err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/GetReceivedOCMShare", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// OcmAPIServer is the server API for OcmAPI service.
type OcmAPIServer interface {
	// Creates a new ocm share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING, and MUST be sent
	// to the remote system using the OCM API at:
	// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1shares/post
	CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	// This action SHALL be notified to the remote system
	// using the OCM API at:
	// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
	RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error)
	// Gets share information for a single share by its unlisted token.
	// MUST return CODE_NOT_FOUND if the share does not exist.
	GetOCMShareByToken(context.Context, *GetOCMShareByTokenRequest) (*GetOCMShareByTokenResponse, error)
	// List the shares the authenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	// This action SHALL be notified to the remote system
	// using the OCM API at:
	// https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1notifications/post
	UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error)
	// List all shares the authenticated principal has received.
	ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error)
	// Update the received share to change the share state or the display name.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error)
	// Get the information for the given received share reference.
	// MUST return CODE_NOT_FOUND if the received share reference does not exist.
	GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error)
}

// UnimplementedOcmAPIServer can be embedded to have forward compatible implementations.
type UnimplementedOcmAPIServer struct {
}

func (*UnimplementedOcmAPIServer) CreateOCMShare(ctx context.Context, req *CreateOCMShareRequest) (*CreateOCMShareResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateOCMShare not implemented")
}
func (*UnimplementedOcmAPIServer) RemoveOCMShare(ctx context.Context, req *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method RemoveOCMShare not implemented")
}
func (*UnimplementedOcmAPIServer) GetOCMShare(ctx context.Context, req *GetOCMShareRequest) (*GetOCMShareResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetOCMShare not implemented")
}
func (*UnimplementedOcmAPIServer) GetOCMShareByToken(ctx context.Context, req *GetOCMShareByTokenRequest) (*GetOCMShareByTokenResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetOCMShareByToken not implemented")
}
func (*UnimplementedOcmAPIServer) ListOCMShares(ctx context.Context, req *ListOCMSharesRequest) (*ListOCMSharesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListOCMShares not implemented")
}
func (*UnimplementedOcmAPIServer) UpdateOCMShare(ctx context.Context, req *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateOCMShare not implemented")
}
func (*UnimplementedOcmAPIServer) ListReceivedOCMShares(ctx context.Context, req *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListReceivedOCMShares not implemented")
}
func (*UnimplementedOcmAPIServer) UpdateReceivedOCMShare(ctx context.Context, req *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedOCMShare not implemented")
}
func (*UnimplementedOcmAPIServer) GetReceivedOCMShare(ctx context.Context, req *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetReceivedOCMShare not implemented")
}

func RegisterOcmAPIServer(s *grpc.Server, srv OcmAPIServer) {
	s.RegisterService(&_OcmAPI_serviceDesc, srv)
}

func _OcmAPI_CreateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateOCMShareRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).CreateOCMShare(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/CreateOCMShare",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).CreateOCMShare(ctx, req.(*CreateOCMShareRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _OcmAPI_RemoveOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RemoveOCMShareRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).RemoveOCMShare(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/RemoveOCMShare",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).RemoveOCMShare(ctx, req.(*RemoveOCMShareRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _OcmAPI_GetOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetOCMShareRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).GetOCMShare(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShare",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).GetOCMShare(ctx, req.(*GetOCMShareRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _OcmAPI_GetOCMShareByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetOCMShareByTokenRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).GetOCMShareByToken(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShareByToken",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).GetOCMShareByToken(ctx, req.(*GetOCMShareByTokenRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _OcmAPI_ListOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListOCMSharesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).ListOCMShares(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/ListOCMShares",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).ListOCMShares(ctx, req.(*ListOCMSharesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _OcmAPI_UpdateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateOCMShareRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).UpdateOCMShare(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateOCMShare",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).UpdateOCMShare(ctx, req.(*UpdateOCMShareRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _OcmAPI_ListReceivedOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListReceivedOCMSharesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).ListReceivedOCMShares(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).ListReceivedOCMShares(ctx, req.(*ListReceivedOCMSharesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _OcmAPI_UpdateReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateReceivedOCMShareRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).UpdateReceivedOCMShare(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateReceivedOCMShare",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).UpdateReceivedOCMShare(ctx, req.(*UpdateReceivedOCMShareRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _OcmAPI_GetReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetReceivedOCMShareRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OcmAPIServer).GetReceivedOCMShare(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/GetReceivedOCMShare",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OcmAPIServer).GetReceivedOCMShare(ctx, req.(*GetReceivedOCMShareRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _OcmAPI_serviceDesc = grpc.ServiceDesc{
	ServiceName: "cs3.sharing.ocm.v1beta1.OcmAPI",
	HandlerType: (*OcmAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOCMShare",
			Handler:    _OcmAPI_CreateOCMShare_Handler,
		},
		{
			MethodName: "RemoveOCMShare",
			Handler:    _OcmAPI_RemoveOCMShare_Handler,
		},
		{
			MethodName: "GetOCMShare",
			Handler:    _OcmAPI_GetOCMShare_Handler,
		},
		{
			MethodName: "GetOCMShareByToken",
			Handler:    _OcmAPI_GetOCMShareByToken_Handler,
		},
		{
			MethodName: "ListOCMShares",
			Handler:    _OcmAPI_ListOCMShares_Handler,
		},
		{
			MethodName: "UpdateOCMShare",
			Handler:    _OcmAPI_UpdateOCMShare_Handler,
		},
		{
			MethodName: "ListReceivedOCMShares",
			Handler:    _OcmAPI_ListReceivedOCMShares_Handler,
		},
		{
			MethodName: "UpdateReceivedOCMShare",
			Handler:    _OcmAPI_UpdateReceivedOCMShare_Handler,
		},
		{
			MethodName: "GetReceivedOCMShare",
			Handler:    _OcmAPI_GetReceivedOCMShare_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cs3/sharing/ocm/v1beta1/ocm_api.proto",
}
