// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: runtime/v1/identity.proto

package runtimev1

import (
	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)
)

// These are the only authority selectors an authenticated workload may ask
// Runtime Identity to intersect with its authoritative state.
type ExchangeRequest struct {
	state                        protoimpl.MessageState `protogen:"open.v1"`
	AppInstallationId            string                 `protobuf:"bytes,1,opt,name=app_installation_id,json=appInstallationId,proto3" json:"app_installation_id,omitempty"`
	RequestedRuntimeCapabilities []string               `protobuf:"bytes,2,rep,name=requested_runtime_capabilities,json=requestedRuntimeCapabilities,proto3" json:"requested_runtime_capabilities,omitempty"`
	unknownFields                protoimpl.UnknownFields
	sizeCache                    protoimpl.SizeCache
}

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

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

func (*ExchangeRequest) ProtoMessage() {}

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

func (x *ExchangeRequest) GetAppInstallationId() string {
	if x != nil {
		return x.AppInstallationId
	}
	return ""
}

func (x *ExchangeRequest) GetRequestedRuntimeCapabilities() []string {
	if x != nil {
		return x.RequestedRuntimeCapabilities
	}
	return nil
}

// The compact delegation remains opaque to L1. No decoded claim, permission,
// profile, security-row, key, Org, principal, workload, audience or epoch fact
// is exposed by the exchange response.
type ExchangeResponse struct {
	state               protoimpl.MessageState `protogen:"open.v1"`
	OpaqueDelegation    string                 `protobuf:"bytes,1,opt,name=opaque_delegation,json=opaqueDelegation,proto3" json:"opaque_delegation,omitempty"`
	ExpiresAtUnixSecond int64                  `protobuf:"varint,2,opt,name=expires_at_unix_second,json=expiresAtUnixSecond,proto3" json:"expires_at_unix_second,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*ExchangeResponse) ProtoMessage() {}

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

func (x *ExchangeResponse) GetOpaqueDelegation() string {
	if x != nil {
		return x.OpaqueDelegation
	}
	return ""
}

func (x *ExchangeResponse) GetExpiresAtUnixSecond() int64 {
	if x != nil {
		return x.ExpiresAtUnixSecond
	}
	return 0
}

var File_runtime_v1_identity_proto protoreflect.FileDescriptor

const file_runtime_v1_identity_proto_rawDesc = "" +
	"\n" +
	"\x19runtime/v1/identity.proto\x12\x13nexuscrm.runtime.v1\"\x87\x01\n" +
	"\x0fExchangeRequest\x12.\n" +
	"\x13app_installation_id\x18\x01 \x01(\tR\x11appInstallationId\x12D\n" +
	"\x1erequested_runtime_capabilities\x18\x02 \x03(\tR\x1crequestedRuntimeCapabilities\"t\n" +
	"\x10ExchangeResponse\x12+\n" +
	"\x11opaque_delegation\x18\x01 \x01(\tR\x10opaqueDelegation\x123\n" +
	"\x16expires_at_unix_second\x18\x02 \x01(\x03R\x13expiresAtUnixSecond2q\n" +
	"\x16IdentityContextService\x12W\n" +
	"\bExchange\x12$.nexuscrm.runtime.v1.ExchangeRequest\x1a%.nexuscrm.runtime.v1.ExchangeResponseBKZIgithub.com/pingcap-inc/nexuscrm-contract/wire-go/gen/runtime/v1;runtimev1b\x06proto3"

var (
	file_runtime_v1_identity_proto_rawDescOnce sync.Once
	file_runtime_v1_identity_proto_rawDescData []byte
)

func file_runtime_v1_identity_proto_rawDescGZIP() []byte {
	file_runtime_v1_identity_proto_rawDescOnce.Do(func() {
		file_runtime_v1_identity_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runtime_v1_identity_proto_rawDesc), len(file_runtime_v1_identity_proto_rawDesc)))
	})
	return file_runtime_v1_identity_proto_rawDescData
}

var file_runtime_v1_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_runtime_v1_identity_proto_goTypes = []any{
	(*ExchangeRequest)(nil),  // 0: nexuscrm.runtime.v1.ExchangeRequest
	(*ExchangeResponse)(nil), // 1: nexuscrm.runtime.v1.ExchangeResponse
}
var file_runtime_v1_identity_proto_depIdxs = []int32{
	0, // 0: nexuscrm.runtime.v1.IdentityContextService.Exchange:input_type -> nexuscrm.runtime.v1.ExchangeRequest
	1, // 1: nexuscrm.runtime.v1.IdentityContextService.Exchange:output_type -> nexuscrm.runtime.v1.ExchangeResponse
	1, // [1:2] is the sub-list for method output_type
	0, // [0:1] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_runtime_v1_identity_proto_init() }
func file_runtime_v1_identity_proto_init() {
	if File_runtime_v1_identity_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_runtime_v1_identity_proto_rawDesc), len(file_runtime_v1_identity_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_runtime_v1_identity_proto_goTypes,
		DependencyIndexes: file_runtime_v1_identity_proto_depIdxs,
		MessageInfos:      file_runtime_v1_identity_proto_msgTypes,
	}.Build()
	File_runtime_v1_identity_proto = out.File
	file_runtime_v1_identity_proto_goTypes = nil
	file_runtime_v1_identity_proto_depIdxs = nil
}
