Rename root, api and sdk module paths (imports, go.mod, go_package, ldflags, build scripts, buf configs) and regenerate protobuf/gateway code with the project's pinned toolchain. Wire identifiers unchanged. api gets a local replace for sdk; root/api/sdk require v0.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
156 lines
6.2 KiB
Go
156 lines
6.2 KiB
Go
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc (unknown)
|
|
// source: controller/storage/iam/store/v1/role_grant_scope.proto
|
|
|
|
package store
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
timestamp "repo.anhonesthost.net/CyberCoveLLC/threshold/internal/db/timestamp"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
type RoleGrantScope struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// create_time from the RDBMS
|
|
// @inject_tag: `gorm:"default:current_timestamp"`
|
|
CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
|
|
// role_id is the ID of the role this is a part of
|
|
// @inject_tag: `gorm:"primary_key"`
|
|
RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty" gorm:"primary_key"`
|
|
// scope_id_or_special is the string grant scope value as provided by the
|
|
// user, which may be one of a few special values as well
|
|
//
|
|
// @inject_tag: `gorm:"primary_key"`
|
|
ScopeIdOrSpecial string `protobuf:"bytes,3,opt,name=scope_id_or_special,json=scopeIdOrSpecial,proto3" json:"scope_id_or_special,omitempty" gorm:"primary_key"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RoleGrantScope) Reset() {
|
|
*x = RoleGrantScope{}
|
|
mi := &file_controller_storage_iam_store_v1_role_grant_scope_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RoleGrantScope) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoleGrantScope) ProtoMessage() {}
|
|
|
|
func (x *RoleGrantScope) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_storage_iam_store_v1_role_grant_scope_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RoleGrantScope.ProtoReflect.Descriptor instead.
|
|
func (*RoleGrantScope) Descriptor() ([]byte, []int) {
|
|
return file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *RoleGrantScope) GetCreateTime() *timestamp.Timestamp {
|
|
if x != nil {
|
|
return x.CreateTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoleGrantScope) GetRoleId() string {
|
|
if x != nil {
|
|
return x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoleGrantScope) GetScopeIdOrSpecial() string {
|
|
if x != nil {
|
|
return x.ScopeIdOrSpecial
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_controller_storage_iam_store_v1_role_grant_scope_proto protoreflect.FileDescriptor
|
|
|
|
const file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDesc = "" +
|
|
"\n" +
|
|
"6controller/storage/iam/store/v1/role_grant_scope.proto\x12\x1fcontroller.storage.iam.store.v1\x1a/controller/storage/timestamp/v1/timestamp.proto\"\xa5\x01\n" +
|
|
"\x0eRoleGrantScope\x12K\n" +
|
|
"\vcreate_time\x18\x01 \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
|
|
"createTime\x12\x17\n" +
|
|
"\arole_id\x18\x02 \x01(\tR\x06roleId\x12-\n" +
|
|
"\x13scope_id_or_special\x18\x03 \x01(\tR\x10scopeIdOrSpecialBGZErepo.anhonesthost.net/CyberCoveLLC/threshold/internal/iam/store;storeb\x06proto3"
|
|
|
|
var (
|
|
file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDescOnce sync.Once
|
|
file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDescGZIP() []byte {
|
|
file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDescOnce.Do(func() {
|
|
file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDesc), len(file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDesc)))
|
|
})
|
|
return file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDescData
|
|
}
|
|
|
|
var file_controller_storage_iam_store_v1_role_grant_scope_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_controller_storage_iam_store_v1_role_grant_scope_proto_goTypes = []any{
|
|
(*RoleGrantScope)(nil), // 0: controller.storage.iam.store.v1.RoleGrantScope
|
|
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
|
|
}
|
|
var file_controller_storage_iam_store_v1_role_grant_scope_proto_depIdxs = []int32{
|
|
1, // 0: controller.storage.iam.store.v1.RoleGrantScope.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_controller_storage_iam_store_v1_role_grant_scope_proto_init() }
|
|
func file_controller_storage_iam_store_v1_role_grant_scope_proto_init() {
|
|
if File_controller_storage_iam_store_v1_role_grant_scope_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDesc), len(file_controller_storage_iam_store_v1_role_grant_scope_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_controller_storage_iam_store_v1_role_grant_scope_proto_goTypes,
|
|
DependencyIndexes: file_controller_storage_iam_store_v1_role_grant_scope_proto_depIdxs,
|
|
MessageInfos: file_controller_storage_iam_store_v1_role_grant_scope_proto_msgTypes,
|
|
}.Build()
|
|
File_controller_storage_iam_store_v1_role_grant_scope_proto = out.File
|
|
file_controller_storage_iam_store_v1_role_grant_scope_proto_goTypes = nil
|
|
file_controller_storage_iam_store_v1_role_grant_scope_proto_depIdxs = nil
|
|
}
|