mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
# Which Problems Are Solved `@zitadel/api:generate-go` failed due to duplicate generated files. https://github.com/zitadel/zitadel/pull/11820 removed the old generated file and added a generate command to the `internal/crypto/crypto.go` file. However, there was already a `internal/crypto/generate.go` with a different output file name (the old file). # How the Problems Are Solved Removed the `internal/crypto/generate.go` file and moved the second generate into `internal/crypto/code.go`. # Additional Changes Noticed that mockgen is an old version and updated it. Also then checked all other tools and updated them. # Additional Context - relates to #11820 - noted internally
264 lines
9.2 KiB
Go
264 lines
9.2 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: zitadel/protoc_gen_zitadel/v2/options.proto
|
|
|
|
package protoc
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
|
|
reflect "reflect"
|
|
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 Options struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AuthOption *AuthOption `protobuf:"bytes,1,opt,name=auth_option,json=authOption,proto3" json:"auth_option,omitempty"`
|
|
HttpResponse *CustomHTTPResponse `protobuf:"bytes,2,opt,name=http_response,json=httpResponse,proto3" json:"http_response,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Options) Reset() {
|
|
*x = Options{}
|
|
mi := &file_zitadel_protoc_gen_zitadel_v2_options_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Options) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Options) ProtoMessage() {}
|
|
|
|
func (x *Options) ProtoReflect() protoreflect.Message {
|
|
mi := &file_zitadel_protoc_gen_zitadel_v2_options_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 Options.ProtoReflect.Descriptor instead.
|
|
func (*Options) Descriptor() ([]byte, []int) {
|
|
return file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Options) GetAuthOption() *AuthOption {
|
|
if x != nil {
|
|
return x.AuthOption
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Options) GetHttpResponse() *CustomHTTPResponse {
|
|
if x != nil {
|
|
return x.HttpResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AuthOption struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
|
|
OrgField string `protobuf:"bytes,3,opt,name=org_field,json=orgField,proto3" json:"org_field,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuthOption) Reset() {
|
|
*x = AuthOption{}
|
|
mi := &file_zitadel_protoc_gen_zitadel_v2_options_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuthOption) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuthOption) ProtoMessage() {}
|
|
|
|
func (x *AuthOption) ProtoReflect() protoreflect.Message {
|
|
mi := &file_zitadel_protoc_gen_zitadel_v2_options_proto_msgTypes[1]
|
|
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 AuthOption.ProtoReflect.Descriptor instead.
|
|
func (*AuthOption) Descriptor() ([]byte, []int) {
|
|
return file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *AuthOption) GetPermission() string {
|
|
if x != nil {
|
|
return x.Permission
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuthOption) GetOrgField() string {
|
|
if x != nil {
|
|
return x.OrgField
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CustomHTTPResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SuccessCode int32 `protobuf:"varint,1,opt,name=success_code,json=successCode,proto3" json:"success_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CustomHTTPResponse) Reset() {
|
|
*x = CustomHTTPResponse{}
|
|
mi := &file_zitadel_protoc_gen_zitadel_v2_options_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CustomHTTPResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CustomHTTPResponse) ProtoMessage() {}
|
|
|
|
func (x *CustomHTTPResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_zitadel_protoc_gen_zitadel_v2_options_proto_msgTypes[2]
|
|
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 CustomHTTPResponse.ProtoReflect.Descriptor instead.
|
|
func (*CustomHTTPResponse) Descriptor() ([]byte, []int) {
|
|
return file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CustomHTTPResponse) GetSuccessCode() int32 {
|
|
if x != nil {
|
|
return x.SuccessCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var file_zitadel_protoc_gen_zitadel_v2_options_proto_extTypes = []protoimpl.ExtensionInfo{
|
|
{
|
|
ExtendedType: (*descriptorpb.MethodOptions)(nil),
|
|
ExtensionType: (*Options)(nil),
|
|
Field: 50001,
|
|
Name: "zitadel.protoc_gen_zitadel.v2.options",
|
|
Tag: "bytes,50001,opt,name=options",
|
|
Filename: "zitadel/protoc_gen_zitadel/v2/options.proto",
|
|
},
|
|
}
|
|
|
|
// Extension fields to descriptorpb.MethodOptions.
|
|
var (
|
|
// optional zitadel.protoc_gen_zitadel.v2.Options options = 50001;
|
|
E_Options = &file_zitadel_protoc_gen_zitadel_v2_options_proto_extTypes[0]
|
|
)
|
|
|
|
var File_zitadel_protoc_gen_zitadel_v2_options_proto protoreflect.FileDescriptor
|
|
|
|
const file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDesc = "" +
|
|
"\n" +
|
|
"+zitadel/protoc_gen_zitadel/v2/options.proto\x12\x1dzitadel.protoc_gen_zitadel.v2\x1a google/protobuf/descriptor.proto\"\xad\x01\n" +
|
|
"\aOptions\x12J\n" +
|
|
"\vauth_option\x18\x01 \x01(\v2).zitadel.protoc_gen_zitadel.v2.AuthOptionR\n" +
|
|
"authOption\x12V\n" +
|
|
"\rhttp_response\x18\x02 \x01(\v21.zitadel.protoc_gen_zitadel.v2.CustomHTTPResponseR\fhttpResponse\"O\n" +
|
|
"\n" +
|
|
"AuthOption\x12\x1e\n" +
|
|
"\n" +
|
|
"permission\x18\x01 \x01(\tR\n" +
|
|
"permission\x12\x1b\n" +
|
|
"\torg_field\x18\x03 \x01(\tR\borgFieldJ\x04\b\x02\x10\x03\"7\n" +
|
|
"\x12CustomHTTPResponse\x12!\n" +
|
|
"\fsuccess_code\x18\x01 \x01(\x05R\vsuccessCode:b\n" +
|
|
"\aoptions\x12\x1e.google.protobuf.MethodOptions\x18ц\x03 \x01(\v2&.zitadel.protoc_gen_zitadel.v2.OptionsR\aoptionsB6Z4github.com/zitadel/zitadel/pkg/grpc/protoc/v2;protocb\x06proto3"
|
|
|
|
var (
|
|
file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescOnce sync.Once
|
|
file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescGZIP() []byte {
|
|
file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescOnce.Do(func() {
|
|
file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDesc), len(file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDesc)))
|
|
})
|
|
return file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDescData
|
|
}
|
|
|
|
var file_zitadel_protoc_gen_zitadel_v2_options_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_zitadel_protoc_gen_zitadel_v2_options_proto_goTypes = []any{
|
|
(*Options)(nil), // 0: zitadel.protoc_gen_zitadel.v2.Options
|
|
(*AuthOption)(nil), // 1: zitadel.protoc_gen_zitadel.v2.AuthOption
|
|
(*CustomHTTPResponse)(nil), // 2: zitadel.protoc_gen_zitadel.v2.CustomHTTPResponse
|
|
(*descriptorpb.MethodOptions)(nil), // 3: google.protobuf.MethodOptions
|
|
}
|
|
var file_zitadel_protoc_gen_zitadel_v2_options_proto_depIdxs = []int32{
|
|
1, // 0: zitadel.protoc_gen_zitadel.v2.Options.auth_option:type_name -> zitadel.protoc_gen_zitadel.v2.AuthOption
|
|
2, // 1: zitadel.protoc_gen_zitadel.v2.Options.http_response:type_name -> zitadel.protoc_gen_zitadel.v2.CustomHTTPResponse
|
|
3, // 2: zitadel.protoc_gen_zitadel.v2.options:extendee -> google.protobuf.MethodOptions
|
|
0, // 3: zitadel.protoc_gen_zitadel.v2.options:type_name -> zitadel.protoc_gen_zitadel.v2.Options
|
|
4, // [4:4] is the sub-list for method output_type
|
|
4, // [4:4] is the sub-list for method input_type
|
|
3, // [3:4] is the sub-list for extension type_name
|
|
2, // [2:3] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_zitadel_protoc_gen_zitadel_v2_options_proto_init() }
|
|
func file_zitadel_protoc_gen_zitadel_v2_options_proto_init() {
|
|
if File_zitadel_protoc_gen_zitadel_v2_options_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDesc), len(file_zitadel_protoc_gen_zitadel_v2_options_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 1,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_zitadel_protoc_gen_zitadel_v2_options_proto_goTypes,
|
|
DependencyIndexes: file_zitadel_protoc_gen_zitadel_v2_options_proto_depIdxs,
|
|
MessageInfos: file_zitadel_protoc_gen_zitadel_v2_options_proto_msgTypes,
|
|
ExtensionInfos: file_zitadel_protoc_gen_zitadel_v2_options_proto_extTypes,
|
|
}.Build()
|
|
File_zitadel_protoc_gen_zitadel_v2_options_proto = out.File
|
|
file_zitadel_protoc_gen_zitadel_v2_options_proto_goTypes = nil
|
|
file_zitadel_protoc_gen_zitadel_v2_options_proto_depIdxs = nil
|
|
}
|