proto/scim/v2/groups.pb.go (348 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.
// versions:
// protoc-gen-go v1.33.0
// protoc v5.26.1
// source: proto/scim/v2/groups.proto
package v2
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// SCIM representation of a 'Group' as per
// https://tools.ietf.org/html/rfc7643#section-4.2
type Group struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The schemas attribute is an array of Strings which allows introspection of
// the supported schema version for a SCIM representation as well any schema
// extensions supported by that representation. Each String value must be a
// unique URI. This specification defines URIs for User, Group, and a standard
// "enterprise" extension. All representations of SCIM schema MUST include a
// non-zero value array with value(s) of the URIs supported by that
// representation. Duplicate values MUST NOT be included. Value order is not
// specified and MUST not impact behavior. REQUIRED.
Schemas []string `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
// Unique identifier for the SCIM Resource as defined by the Service Provider.
// This is returned when the resource is created.
// Each representation of the Resource MUST include a non-empty id value. This
// identifier MUST be unique across the Service Provider's entire set of
// Resources. It MUST be a stable, non-reassignable identifier that does not
// change when the same Resource is returned in subsequent requests. The value
// of the id attribute is always issued by the Service Provider and MUST never
// be specified by the Service Consumer. bulkId: is a reserved keyword and
// MUST NOT be used in the unique identifier. REQUIRED and READ-ONLY.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// An identifier for the Resource as defined by the Service Consumer. The
// externalId may simplify identification of the Resource between Service
// Consumer and Service provider by allowing the Consumer to refer to the
// Resource with its own identifier, obviating the need to store a local
// mapping between the local identifier of the Resource and the identifier
// used by the Service Provider. Each Resource MAY include a non-empty
// externalId value. The value of the externalId attribute is always issued be
// the Service Consumer and can never be specified by the Service Provider.
// The Service Provider MUST always interpret the externalId as scoped to the
// Service Consumer's tenant.
ExternalId string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
// A human-readable name for the Group. REQUIRED.
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// A list of members of the Group. While values MAY be added or removed,
// sub-attributes of members are "immutable". The "value" sub-attribute
// contains the value of an "id" attribute of a SCIM resource, and the "$ref"
// sub-attribute must be the URI of a SCIM resource such as a "User", or a
// "Group" (if nesting groups is supported).
Members []*Member `protobuf:"bytes,6,rep,name=members,proto3" json:"members,omitempty"`
}
func (x *Group) Reset() {
*x = Group{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_scim_v2_groups_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Group) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Group) ProtoMessage() {}
func (x *Group) ProtoReflect() protoreflect.Message {
mi := &file_proto_scim_v2_groups_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Group.ProtoReflect.Descriptor instead.
func (*Group) Descriptor() ([]byte, []int) {
return file_proto_scim_v2_groups_proto_rawDescGZIP(), []int{0}
}
func (x *Group) GetSchemas() []string {
if x != nil {
return x.Schemas
}
return nil
}
func (x *Group) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Group) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
func (x *Group) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *Group) GetMembers() []*Member {
if x != nil {
return x.Members
}
return nil
}
// Member encodes https://tools.ietf.org/html/rfc7643#section-2.4 for the
// purpose of group members.
type Member struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A label indicating the type of resource, e.g., 'User' or 'Group'.
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// A human-readable name, primarily used for display purposes and having a
// mutability of "immutable".
Display string `protobuf:"bytes,2,opt,name=display,proto3" json:"display,omitempty"`
// The members' email address. Identifier of the member of this Group.
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// The URI corresponding to a SCIM resource that is a member of this Group.
// URIs are canonicalized per Section 6.2 of [RFC3986]. While the
// representation of a resource may vary in different SCIM protocol API
// versions (see Section 3.13 of [RFC7644]), URIs for SCIM resources with an
// API version SHALL be considered comparable to URIs without a version or
// with a different version. For example, "https://example.com/Users/12345"
// is equivalent to "https://example.com/v2/Users/12345".
Ref string `protobuf:"bytes,4,opt,name=ref,json=$ref,proto3" json:"ref,omitempty"`
// CUSTOM EXTENSION. The issuer URL string of the identity, such as an
// OIDC "iss" or similar depending on the protocol used for the identity.
ExtensionIssuer string `protobuf:"bytes,5,opt,name=extension_issuer,json=issuer,proto3" json:"extension_issuer,omitempty"`
// CUSTOM EXTENSION. The subject string of the identity, such as an
// OIDC "sub" or similar depending on the protocol used for the identity.
ExtensionSubject string `protobuf:"bytes,6,opt,name=extension_subject,json=subject,proto3" json:"extension_subject,omitempty"`
}
func (x *Member) Reset() {
*x = Member{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_scim_v2_groups_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Member) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Member) ProtoMessage() {}
func (x *Member) ProtoReflect() protoreflect.Message {
mi := &file_proto_scim_v2_groups_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Member.ProtoReflect.Descriptor instead.
func (*Member) Descriptor() ([]byte, []int) {
return file_proto_scim_v2_groups_proto_rawDescGZIP(), []int{1}
}
func (x *Member) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Member) GetDisplay() string {
if x != nil {
return x.Display
}
return ""
}
func (x *Member) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
func (x *Member) GetRef() string {
if x != nil {
return x.Ref
}
return ""
}
func (x *Member) GetExtensionIssuer() string {
if x != nil {
return x.ExtensionIssuer
}
return ""
}
func (x *Member) GetExtensionSubject() string {
if x != nil {
return x.ExtensionSubject
}
return ""
}
// Response for ListUsers per https://tools.ietf.org/html/rfc7644#section-3.4.2
type ListGroupsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of SCIM User resources.
Resources []*Group `protobuf:"bytes,1,rep,name=resources,json=Resources,proto3" json:"resources,omitempty"`
// Index of the first element of the page.
StartIndex uint32 `protobuf:"varint,2,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
// Number of items in current page.
ItemsPerPage uint32 `protobuf:"varint,3,opt,name=items_per_page,json=itemsPerPage,proto3" json:"items_per_page,omitempty"`
// Number of results matched for this query.
TotalResults uint32 `protobuf:"varint,4,opt,name=total_results,json=totalResults,proto3" json:"total_results,omitempty"`
// The schemas attribute is an array of Strings which allows introspection of
// the supported schema version for a SCIM representation as well any schema
// extensions supported by that representation. Each String value must be a
// unique URI. This specification defines URIs for User, Group, and a standard
// "enterprise" extension. All representations of SCIM schema MUST include a
// non-zero value array with value(s) of the URIs supported by that
// representation. Duplicate values MUST NOT be included. Value order is not
// specified and MUST not impact behavior. REQUIRED.
Schemas []string `protobuf:"bytes,5,rep,name=schemas,proto3" json:"schemas,omitempty"`
}
func (x *ListGroupsResponse) Reset() {
*x = ListGroupsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_scim_v2_groups_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListGroupsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListGroupsResponse) ProtoMessage() {}
func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_scim_v2_groups_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListGroupsResponse) Descriptor() ([]byte, []int) {
return file_proto_scim_v2_groups_proto_rawDescGZIP(), []int{2}
}
func (x *ListGroupsResponse) GetResources() []*Group {
if x != nil {
return x.Resources
}
return nil
}
func (x *ListGroupsResponse) GetStartIndex() uint32 {
if x != nil {
return x.StartIndex
}
return 0
}
func (x *ListGroupsResponse) GetItemsPerPage() uint32 {
if x != nil {
return x.ItemsPerPage
}
return 0
}
func (x *ListGroupsResponse) GetTotalResults() uint32 {
if x != nil {
return x.TotalResults
}
return 0
}
func (x *ListGroupsResponse) GetSchemas() []string {
if x != nil {
return x.Schemas
}
return nil
}
var File_proto_scim_v2_groups_proto protoreflect.FileDescriptor
var file_proto_scim_v2_groups_proto_rawDesc = []byte{
0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x63, 0x69, 0x6d, 0x2f, 0x76, 0x32, 0x2f,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x73, 0x63,
0x69, 0x6d, 0x2e, 0x76, 0x32, 0x22, 0xa0, 0x01, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
0x18, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74,
0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69,
0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a,
0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f,
0x2e, 0x73, 0x63, 0x69, 0x6d, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52,
0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, 0xa5, 0x01, 0x0a, 0x06, 0x4d, 0x65, 0x6d,
0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c,
0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x11, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x24, 0x72, 0x65, 0x66, 0x12, 0x20, 0x0a, 0x10, 0x65, 0x78,
0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x05,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x11,
0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63,
0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74,
0x22, 0xc8, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x73, 0x63, 0x69,
0x6d, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x09, 0x52, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x69,
0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72,
0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x5f,
0x70, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c,
0x69, 0x74, 0x65, 0x6d, 0x73, 0x50, 0x65, 0x72, 0x50, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d,
0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x05, 0x20, 0x03,
0x28, 0x09, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x42, 0x53, 0x5a, 0x51, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x68, 0x65,
0x61, 0x6c, 0x74, 0x68, 0x63, 0x61, 0x72, 0x65, 0x2d, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74,
0x65, 0x64, 0x2d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x63, 0x69, 0x6d, 0x2f, 0x76, 0x32,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_proto_scim_v2_groups_proto_rawDescOnce sync.Once
file_proto_scim_v2_groups_proto_rawDescData = file_proto_scim_v2_groups_proto_rawDesc
)
func file_proto_scim_v2_groups_proto_rawDescGZIP() []byte {
file_proto_scim_v2_groups_proto_rawDescOnce.Do(func() {
file_proto_scim_v2_groups_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_scim_v2_groups_proto_rawDescData)
})
return file_proto_scim_v2_groups_proto_rawDescData
}
var file_proto_scim_v2_groups_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_proto_scim_v2_groups_proto_goTypes = []interface{}{
(*Group)(nil), // 0: scim.v2.Group
(*Member)(nil), // 1: scim.v2.Member
(*ListGroupsResponse)(nil), // 2: scim.v2.ListGroupsResponse
}
var file_proto_scim_v2_groups_proto_depIdxs = []int32{
1, // 0: scim.v2.Group.members:type_name -> scim.v2.Member
0, // 1: scim.v2.ListGroupsResponse.resources:type_name -> scim.v2.Group
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_proto_scim_v2_groups_proto_init() }
func file_proto_scim_v2_groups_proto_init() {
if File_proto_scim_v2_groups_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_proto_scim_v2_groups_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Group); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_scim_v2_groups_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Member); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_scim_v2_groups_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListGroupsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_proto_scim_v2_groups_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_proto_scim_v2_groups_proto_goTypes,
DependencyIndexes: file_proto_scim_v2_groups_proto_depIdxs,
MessageInfos: file_proto_scim_v2_groups_proto_msgTypes,
}.Build()
File_proto_scim_v2_groups_proto = out.File
file_proto_scim_v2_groups_proto_rawDesc = nil
file_proto_scim_v2_groups_proto_goTypes = nil
file_proto_scim_v2_groups_proto_depIdxs = nil
}