Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

23.1 KB
Raw Blame
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        (unknown)
// source: api/configuration.proto

package api

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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)
)

// Action is what apply does to a resource.
type ResourceChange_Action int32

const (
	ResourceChange_ACTION_UNSPECIFIED ResourceChange_Action = 0
	// Write a resource that does not exist.
	ResourceChange_CREATE ResourceChange_Action = 1
	// Bring an existing resource under management and write the declared value.
	ResourceChange_ADOPT ResourceChange_Action = 2
	// Write a managed resource that differs from its declaration.
	ResourceChange_UPDATE ResourceChange_Action = 3
	// Nothing; the managed resource matches its declaration.
	ResourceChange_NO_OP ResourceChange_Action = 4
	// Delete a managed resource a removed entry destroys.
	ResourceChange_DESTROY ResourceChange_Action = 5
	// Reset a managed instance setting a removed entry destroys to its defaults.
	ResourceChange_RESET ResourceChange_Action = 6
	// Stop managing a resource and leave it as it is.
	ResourceChange_RELEASE ResourceChange_Action = 7
	// None; the resource is managed but no longer declared and has no removed entry.
	ResourceChange_ERROR ResourceChange_Action = 8
)

// Enum value maps for ResourceChange_Action.
var (
	ResourceChange_Action_name = map[int32]string{
		0: "ACTION_UNSPECIFIED",
		1: "CREATE",
		2: "ADOPT",
		3: "UPDATE",
		4: "NO_OP",
		5: "DESTROY",
		6: "RESET",
		7: "RELEASE",
		8: "ERROR",
	}
	ResourceChange_Action_value = map[string]int32{
		"ACTION_UNSPECIFIED": 0,
		"CREATE":             1,
		"ADOPT":              2,
		"UPDATE":             3,
		"NO_OP":              4,
		"DESTROY":            5,
		"RESET":              6,
		"RELEASE":            7,
		"ERROR":              8,
	}
)

func (x ResourceChange_Action) Enum() *ResourceChange_Action {
	p := new(ResourceChange_Action)
	*p = x
	return p
}

func (x ResourceChange_Action) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ResourceChange_Action) Descriptor() protoreflect.EnumDescriptor {
	return file_api_configuration_proto_enumTypes[0].Descriptor()
}

func (ResourceChange_Action) Type() protoreflect.EnumType {
	return &file_api_configuration_proto_enumTypes[0]
}

func (x ResourceChange_Action) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ResourceChange_Action.Descriptor instead.
func (ResourceChange_Action) EnumDescriptor() ([]byte, []int) {
	return file_api_configuration_proto_rawDescGZIP(), []int{4, 0}
}

// Configuration is one declarative configuration document. Every file in the
// configuration directory is one Configuration, and all files are merged into
// one desired state. A resource may be declared in exactly one file.
type Configuration struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. Identity providers to manage, by resource name.
	IdentityProviders []*IdentityProvider `protobuf:"bytes,1,rep,name=identity_providers,json=identityProviders,proto3" json:"identity_providers,omitempty"`
	// Optional. Instance setting groups to manage, by resource name.
	InstanceSettings []*InstanceSetting `protobuf:"bytes,2,rep,name=instance_settings,json=instanceSettings,proto3" json:"instance_settings,omitempty"`
	// Optional. Users to manage, by resource name. Intended for bootstrap administrators.
	Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"`
	// Optional. SSO identities of declared users, by resource name: which
	// identity-provider subject signs in as which user. Only a user the
	// configuration declares may have one. Intended for bootstrap administrators
	// on instances where sign-in is through an identity provider.
	LinkedIdentities []*LinkedIdentity `protobuf:"bytes,6,rep,name=linked_identities,json=linkedIdentities,proto3" json:"linked_identities,omitempty"`
	// Optional. Lifecycle rules for declared resources.
	Lifecycle []*Lifecycle `protobuf:"bytes,4,rep,name=lifecycle,proto3" json:"lifecycle,omitempty"`
	// Optional. Resources to take out of management.
	Removed       []*Removed `protobuf:"bytes,5,rep,name=removed,proto3" json:"removed,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Configuration) Reset() {
	*x = Configuration{}
	mi := &file_api_configuration_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Configuration) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Configuration) ProtoMessage() {}

func (x *Configuration) ProtoReflect() protoreflect.Message {
	mi := &file_api_configuration_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 Configuration.ProtoReflect.Descriptor instead.
func (*Configuration) Descriptor() ([]byte, []int) {
	return file_api_configuration_proto_rawDescGZIP(), []int{0}
}

func (x *Configuration) GetIdentityProviders() []*IdentityProvider {
	if x != nil {
		return x.IdentityProviders
	}
	return nil
}

func (x *Configuration) GetInstanceSettings() []*InstanceSetting {
	if x != nil {
		return x.InstanceSettings
	}
	return nil
}

func (x *Configuration) GetUsers() []*User {
	if x != nil {
		return x.Users
	}
	return nil
}

func (x *Configuration) GetLinkedIdentities() []*LinkedIdentity {
	if x != nil {
		return x.LinkedIdentities
	}
	return nil
}

func (x *Configuration) GetLifecycle() []*Lifecycle {
	if x != nil {
		return x.Lifecycle
	}
	return nil
}

func (x *Configuration) GetRemoved() []*Removed {
	if x != nil {
		return x.Removed
	}
	return nil
}

// Lifecycle adjusts how one declared resource is planned and applied.
type Lifecycle struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of a resource declared in the configuration.
	// Format: identity-providers/{idp}, instance/settings/{setting}, users/{user},
	// or users/{user}/linkedIdentities/{linked_identity}
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Optional. Field paths, in JSON name form, that the configuration does not manage.
	// Apply writes them only when it creates the resource, and the API does not protect them.
	IgnoreChanges []string `protobuf:"bytes,2,rep,name=ignore_changes,json=ignoreChanges,proto3" json:"ignore_changes,omitempty"`
	// Optional. Plan fails instead of destroying the resource.
	PreventDestroy bool `protobuf:"varint,3,opt,name=prevent_destroy,json=preventDestroy,proto3" json:"prevent_destroy,omitempty"`
	// Optional. Increment to send write-only fields, such as a user's password, again.
	WriteOnlyVersion int32 `protobuf:"varint,4,opt,name=write_only_version,json=writeOnlyVersion,proto3" json:"write_only_version,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *Lifecycle) Reset() {
	*x = Lifecycle{}
	mi := &file_api_configuration_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Lifecycle) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Lifecycle) ProtoMessage() {}

func (x *Lifecycle) ProtoReflect() protoreflect.Message {
	mi := &file_api_configuration_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 Lifecycle.ProtoReflect.Descriptor instead.
func (*Lifecycle) Descriptor() ([]byte, []int) {
	return file_api_configuration_proto_rawDescGZIP(), []int{1}
}

func (x *Lifecycle) GetResource() string {
	if x != nil {
		return x.Resource
	}
	return ""
}

func (x *Lifecycle) GetIgnoreChanges() []string {
	if x != nil {
		return x.IgnoreChanges
	}
	return nil
}

func (x *Lifecycle) GetPreventDestroy() bool {
	if x != nil {
		return x.PreventDestroy
	}
	return false
}

func (x *Lifecycle) GetWriteOnlyVersion() int32 {
	if x != nil {
		return x.WriteOnlyVersion
	}
	return 0
}

// Removed takes a resource out of management.
type Removed struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of a resource the configuration manages.
	// Format: identity-providers/{idp}, instance/settings/{setting}, users/{user},
	// or users/{user}/linkedIdentities/{linked_identity}
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Optional. Delete the resource, or reset an instance setting group to its defaults,
	// instead of only releasing it from management.
	Destroy       bool `protobuf:"varint,2,opt,name=destroy,proto3" json:"destroy,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Removed) Reset() {
	*x = Removed{}
	mi := &file_api_configuration_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Removed) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Removed) ProtoMessage() {}

func (x *Removed) ProtoReflect() protoreflect.Message {
	mi := &file_api_configuration_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 Removed.ProtoReflect.Descriptor instead.
func (*Removed) Descriptor() ([]byte, []int) {
	return file_api_configuration_proto_rawDescGZIP(), []int{2}
}

func (x *Removed) GetResource() string {
	if x != nil {
		return x.Resource
	}
	return ""
}

func (x *Removed) GetDestroy() bool {
	if x != nil {
		return x.Destroy
	}
	return false
}

// Plan is the difference between the declarative configuration and the
// instance: what apply would change. Configured values never appear in it.
type Plan struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The state record serial the plan was computed against.
	Serial int64 `protobuf:"varint,1,opt,name=serial,proto3" json:"serial,omitempty"`
	// One entry per resource the configuration declares or manages, in the order apply would act.
	ResourceChanges []*ResourceChange `protobuf:"bytes,2,rep,name=resource_changes,json=resourceChanges,proto3" json:"resource_changes,omitempty"`
	// Whether apply would write the state record. It is true whenever a resource
	// changes, and also when only what the record holds changes, such as a lifecycle rule.
	StateRecordChanges bool `protobuf:"varint,3,opt,name=state_record_changes,json=stateRecordChanges,proto3" json:"state_record_changes,omitempty"`
	// Problems that stop the plan from being applied.
	Errors []string `protobuf:"bytes,4,rep,name=errors,proto3" json:"errors,omitempty"`
	// Diagnostics that do not stop the plan.
	Warnings      []string `protobuf:"bytes,5,rep,name=warnings,proto3" json:"warnings,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Plan) Reset() {
	*x = Plan{}
	mi := &file_api_configuration_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Plan) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Plan) ProtoMessage() {}

func (x *Plan) ProtoReflect() protoreflect.Message {
	mi := &file_api_configuration_proto_msgTypes[3]
	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 Plan.ProtoReflect.Descriptor instead.
func (*Plan) Descriptor() ([]byte, []int) {
	return file_api_configuration_proto_rawDescGZIP(), []int{3}
}

func (x *Plan) GetSerial() int64 {
	if x != nil {
		return x.Serial
	}
	return 0
}

func (x *Plan) GetResourceChanges() []*ResourceChange {
	if x != nil {
		return x.ResourceChanges
	}
	return nil
}

func (x *Plan) GetStateRecordChanges() bool {
	if x != nil {
		return x.StateRecordChanges
	}
	return false
}

func (x *Plan) GetErrors() []string {
	if x != nil {
		return x.Errors
	}
	return nil
}

func (x *Plan) GetWarnings() []string {
	if x != nil {
		return x.Warnings
	}
	return nil
}

// ResourceChange is what apply would do to one resource.
type ResourceChange struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The resource name.
	// Format: identity-providers/{idp}, instance/settings/{setting}, users/{user},
	// or users/{user}/linkedIdentities/{linked_identity}
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// The configuration file that declares the resource; empty for one that is no longer declared.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// What apply would do.
	Action ResourceChange_Action `protobuf:"varint,3,opt,name=action,proto3,enum=memos.api.ResourceChange_Action" json:"action,omitempty"`
	// Whether the change undoes an edit made outside the configuration since the last apply.
	Drift bool `protobuf:"varint,4,opt,name=drift,proto3" json:"drift,omitempty"`
	// The fields apply would write, with their values before and after.
	FieldChanges []*FieldChange `protobuf:"bytes,5,rep,name=field_changes,json=fieldChanges,proto3" json:"field_changes,omitempty"`
	// Why the resource has this action, when the action alone does not say.
	Message       string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ResourceChange) Reset() {
	*x = ResourceChange{}
	mi := &file_api_configuration_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ResourceChange) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ResourceChange) ProtoMessage() {}

func (x *ResourceChange) ProtoReflect() protoreflect.Message {
	mi := &file_api_configuration_proto_msgTypes[4]
	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 ResourceChange.ProtoReflect.Descriptor instead.
func (*ResourceChange) Descriptor() ([]byte, []int) {
	return file_api_configuration_proto_rawDescGZIP(), []int{4}
}

func (x *ResourceChange) GetResource() string {
	if x != nil {
		return x.Resource
	}
	return ""
}

func (x *ResourceChange) GetSource() string {
	if x != nil {
		return x.Source
	}
	return ""
}

func (x *ResourceChange) GetAction() ResourceChange_Action {
	if x != nil {
		return x.Action
	}
	return ResourceChange_ACTION_UNSPECIFIED
}

func (x *ResourceChange) GetDrift() bool {
	if x != nil {
		return x.Drift
	}
	return false
}

func (x *ResourceChange) GetFieldChanges() []*FieldChange {
	if x != nil {
		return x.FieldChanges
	}
	return nil
}

func (x *ResourceChange) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

// FieldChange is one field apply would write.
type FieldChange struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The field path, in JSON names from the resource, such as config.oauth2Config.scopes.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// The value before, as JSON. Sensitive values print as (sensitive) and write-only values
	// as (write-only); an empty string means the resource does not exist yet.
	Before string `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"`
	// The value after, in the same form as before.
	After         string `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *FieldChange) Reset() {
	*x = FieldChange{}
	mi := &file_api_configuration_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *FieldChange) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*FieldChange) ProtoMessage() {}

func (x *FieldChange) ProtoReflect() protoreflect.Message {
	mi := &file_api_configuration_proto_msgTypes[5]
	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 FieldChange.ProtoReflect.Descriptor instead.
func (*FieldChange) Descriptor() ([]byte, []int) {
	return file_api_configuration_proto_rawDescGZIP(), []int{5}
}

func (x *FieldChange) GetPath() string {
	if x != nil {
		return x.Path
	}
	return ""
}

func (x *FieldChange) GetBefore() string {
	if x != nil {
		return x.Before
	}
	return ""
}

func (x *FieldChange) GetAfter() string {
	if x != nil {
		return x.After
	}
	return ""
}

var File_api_configuration_proto protoreflect.FileDescriptor

const file_api_configuration_proto_rawDesc = "" +
	"\n" +
	"\x17api/configuration.proto\x12\tmemos.api\x1a\x15api/idp_service.proto\x1a\x1aapi/instance_service.proto\x1a\x16api/user_service.proto\x1a\x1fgoogle/api/field_behavior.proto\"\x93\x03\n" +
	"\rConfiguration\x12O\n" +
	"\x12identity_providers\x18\x01 \x03(\v2\x1b.memos.api.IdentityProviderB\x03\xe0A\x01R\x11identityProviders\x12L\n" +
	"\x11instance_settings\x18\x02 \x03(\v2\x1a.memos.api.InstanceSettingB\x03\xe0A\x01R\x10instanceSettings\x12*\n" +
	"\x05users\x18\x03 \x03(\v2\x0f.memos.api.UserB\x03\xe0A\x01R\x05users\x12K\n" +
	"\x11linked_identities\x18\x06 \x03(\v2\x19.memos.api.LinkedIdentityB\x03\xe0A\x01R\x10linkedIdentities\x127\n" +
	"\tlifecycle\x18\x04 \x03(\v2\x14.memos.api.LifecycleB\x03\xe0A\x01R\tlifecycle\x121\n" +
	"\aremoved\x18\x05 \x03(\v2\x12.memos.api.RemovedB\x03\xe0A\x01R\aremoved\"\xb9\x01\n" +
	"\tLifecycle\x12\x1f\n" +
	"\bresource\x18\x01 \x01(\tB\x03\xe0A\x02R\bresource\x12*\n" +
	"\x0eignore_changes\x18\x02 \x03(\tB\x03\xe0A\x01R\rignoreChanges\x12,\n" +
	"\x0fprevent_destroy\x18\x03 \x01(\bB\x03\xe0A\x01R\x0epreventDestroy\x121\n" +
	"\x12write_only_version\x18\x04 \x01(\x05B\x03\xe0A\x01R\x10writeOnlyVersion\"I\n" +
	"\aRemoved\x12\x1f\n" +
	"\bresource\x18\x01 \x01(\tB\x03\xe0A\x02R\bresource\x12\x1d\n" +
	"\adestroy\x18\x02 \x01(\bB\x03\xe0A\x01R\adestroy\"\xca\x01\n" +
	"\x04Plan\x12\x16\n" +
	"\x06serial\x18\x01 \x01(\x03R\x06serial\x12D\n" +
	"\x10resource_changes\x18\x02 \x03(\v2\x19.memos.api.ResourceChangeR\x0fresourceChanges\x120\n" +
	"\x14state_record_changes\x18\x03 \x01(\bR\x12stateRecordChanges\x12\x16\n" +
	"\x06errors\x18\x04 \x03(\tR\x06errors\x12\x1a\n" +
	"\bwarnings\x18\x05 \x03(\tR\bwarnings\"\xeb\x02\n" +
	"\x0eResourceChange\x12\x1a\n" +
	"\bresource\x18\x01 \x01(\tR\bresource\x12\x16\n" +
	"\x06source\x18\x02 \x01(\tR\x06source\x128\n" +
	"\x06action\x18\x03 \x01(\x0e2 .memos.api.ResourceChange.ActionR\x06action\x12\x14\n" +
	"\x05drift\x18\x04 \x01(\bR\x05drift\x12;\n" +
	"\rfield_changes\x18\x05 \x03(\v2\x16.memos.api.FieldChangeR\ffieldChanges\x12\x18\n" +
	"\amessage\x18\x06 \x01(\tR\amessage\"~\n" +
	"\x06Action\x12\x16\n" +
	"\x12ACTION_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06CREATE\x10\x01\x12\t\n" +
	"\x05ADOPT\x10\x02\x12\n" +
	"\n" +
	"\x06UPDATE\x10\x03\x12\t\n" +
	"\x05NO_OP\x10\x04\x12\v\n" +
	"\aDESTROY\x10\x05\x12\t\n" +
	"\x05RESET\x10\x06\x12\v\n" +
	"\aRELEASE\x10\a\x12\t\n" +
	"\x05ERROR\x10\b\"O\n" +
	"\vFieldChange\x12\x12\n" +
	"\x04path\x18\x01 \x01(\tR\x04path\x12\x16\n" +
	"\x06before\x18\x02 \x01(\tR\x06before\x12\x14\n" +
	"\x05after\x18\x03 \x01(\tR\x05afterB\x91\x01\n" +
	"\rcom.memos.apiB\x12ConfigurationProtoP\x01Z'github.com/usememos/memos/proto/gen/api\xa2\x02\x03MAX\xaa\x02\tMemos.Api\xca\x02\tMemos\\Api\xe2\x02\x15Memos\\Api\\GPBMetadata\xea\x02\n" +
	"Memos::Apib\x06proto3"

var (
	file_api_configuration_proto_rawDescOnce sync.Once
	file_api_configuration_proto_rawDescData []byte
)

func file_api_configuration_proto_rawDescGZIP() []byte {
	file_api_configuration_proto_rawDescOnce.Do(func() {
		file_api_configuration_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_configuration_proto_rawDesc), len(file_api_configuration_proto_rawDesc)))
	})
	return file_api_configuration_proto_rawDescData
}

var file_api_configuration_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_configuration_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_api_configuration_proto_goTypes = []any{
	(ResourceChange_Action)(0), // 0: memos.api.ResourceChange.Action
	(*Configuration)(nil),      // 1: memos.api.Configuration
	(*Lifecycle)(nil),          // 2: memos.api.Lifecycle
	(*Removed)(nil),            // 3: memos.api.Removed
	(*Plan)(nil),               // 4: memos.api.Plan
	(*ResourceChange)(nil),     // 5: memos.api.ResourceChange
	(*FieldChange)(nil),        // 6: memos.api.FieldChange
	(*IdentityProvider)(nil),   // 7: memos.api.IdentityProvider
	(*InstanceSetting)(nil),    // 8: memos.api.InstanceSetting
	(*User)(nil),               // 9: memos.api.User
	(*LinkedIdentity)(nil),     // 10: memos.api.LinkedIdentity
}
var file_api_configuration_proto_depIdxs = []int32{
	7,  // 0: memos.api.Configuration.identity_providers:type_name -> memos.api.IdentityProvider
	8,  // 1: memos.api.Configuration.instance_settings:type_name -> memos.api.InstanceSetting
	9,  // 2: memos.api.Configuration.users:type_name -> memos.api.User
	10, // 3: memos.api.Configuration.linked_identities:type_name -> memos.api.LinkedIdentity
	2,  // 4: memos.api.Configuration.lifecycle:type_name -> memos.api.Lifecycle
	3,  // 5: memos.api.Configuration.removed:type_name -> memos.api.Removed
	5,  // 6: memos.api.Plan.resource_changes:type_name -> memos.api.ResourceChange
	0,  // 7: memos.api.ResourceChange.action:type_name -> memos.api.ResourceChange.Action
	6,  // 8: memos.api.ResourceChange.field_changes:type_name -> memos.api.FieldChange
	9,  // [9:9] is the sub-list for method output_type
	9,  // [9:9] is the sub-list for method input_type
	9,  // [9:9] is the sub-list for extension type_name
	9,  // [9:9] is the sub-list for extension extendee
	0,  // [0:9] is the sub-list for field type_name
}

func init() { file_api_configuration_proto_init() }
func file_api_configuration_proto_init() {
	if File_api_configuration_proto != nil {
		return
	}
	file_api_idp_service_proto_init()
	file_api_instance_service_proto_init()
	file_api_user_service_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_configuration_proto_rawDesc), len(file_api_configuration_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_api_configuration_proto_goTypes,
		DependencyIndexes: file_api_configuration_proto_depIdxs,
		EnumInfos:         file_api_configuration_proto_enumTypes,
		MessageInfos:      file_api_configuration_proto_msgTypes,
	}.Build()
	File_api_configuration_proto = out.File
	file_api_configuration_proto_goTypes = nil
	file_api_configuration_proto_depIdxs = nil
}