// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: runtime/v1/authorization.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)
)

type AuthorizationGrantType int32

const (
	AuthorizationGrantType_AUTHORIZATION_GRANT_TYPE_UNSPECIFIED        AuthorizationGrantType = 0
	AuthorizationGrantType_AUTHORIZATION_GRANT_TYPE_AUTHORIZATION_CODE AuthorizationGrantType = 1
	AuthorizationGrantType_AUTHORIZATION_GRANT_TYPE_REFRESH_TOKEN      AuthorizationGrantType = 2
	AuthorizationGrantType_AUTHORIZATION_GRANT_TYPE_CLIENT_CREDENTIALS AuthorizationGrantType = 3
)

// Enum value maps for AuthorizationGrantType.
var (
	AuthorizationGrantType_name = map[int32]string{
		0: "AUTHORIZATION_GRANT_TYPE_UNSPECIFIED",
		1: "AUTHORIZATION_GRANT_TYPE_AUTHORIZATION_CODE",
		2: "AUTHORIZATION_GRANT_TYPE_REFRESH_TOKEN",
		3: "AUTHORIZATION_GRANT_TYPE_CLIENT_CREDENTIALS",
	}
	AuthorizationGrantType_value = map[string]int32{
		"AUTHORIZATION_GRANT_TYPE_UNSPECIFIED":        0,
		"AUTHORIZATION_GRANT_TYPE_AUTHORIZATION_CODE": 1,
		"AUTHORIZATION_GRANT_TYPE_REFRESH_TOKEN":      2,
		"AUTHORIZATION_GRANT_TYPE_CLIENT_CREDENTIALS": 3,
	}
)

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

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

func (AuthorizationGrantType) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_authorization_proto_enumTypes[0].Descriptor()
}

func (AuthorizationGrantType) Type() protoreflect.EnumType {
	return &file_runtime_v1_authorization_proto_enumTypes[0]
}

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

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

type AuthorizationProtocolError struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	Code               string                 `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	SafeDescription    string                 `protobuf:"bytes,2,opt,name=safe_description,json=safeDescription,proto3" json:"safe_description,omitempty"`
	TrustedRedirectUri string                 `protobuf:"bytes,4,opt,name=trusted_redirect_uri,json=trustedRedirectUri,proto3" json:"trusted_redirect_uri,omitempty"`
	State              string                 `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*AuthorizationProtocolError) ProtoMessage() {}

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

func (x *AuthorizationProtocolError) GetCode() string {
	if x != nil {
		return x.Code
	}
	return ""
}

func (x *AuthorizationProtocolError) GetSafeDescription() string {
	if x != nil {
		return x.SafeDescription
	}
	return ""
}

func (x *AuthorizationProtocolError) GetTrustedRedirectUri() string {
	if x != nil {
		return x.TrustedRedirectUri
	}
	return ""
}

func (x *AuthorizationProtocolError) GetState() string {
	if x != nil {
		return x.State
	}
	return ""
}

type BeginAuthorizationRequest 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"`
	ClientId            string                 `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	RedirectUri         string                 `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	ResponseType        string                 `protobuf:"bytes,4,opt,name=response_type,json=responseType,proto3" json:"response_type,omitempty"`
	Scope               string                 `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
	State               string                 `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"`
	CodeChallenge       string                 `protobuf:"bytes,7,opt,name=code_challenge,json=codeChallenge,proto3" json:"code_challenge,omitempty"`
	CodeChallengeMethod string                 `protobuf:"bytes,8,opt,name=code_challenge_method,json=codeChallengeMethod,proto3" json:"code_challenge_method,omitempty"`
	Issuer              string                 `protobuf:"bytes,9,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Resource            string                 `protobuf:"bytes,10,opt,name=resource,proto3" json:"resource,omitempty"`
	ResourcePresent     bool                   `protobuf:"varint,11,opt,name=resource_present,json=resourcePresent,proto3" json:"resource_present,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*BeginAuthorizationRequest) ProtoMessage() {}

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

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

func (x *BeginAuthorizationRequest) GetClientId() string {
	if x != nil {
		return x.ClientId
	}
	return ""
}

func (x *BeginAuthorizationRequest) GetRedirectUri() string {
	if x != nil {
		return x.RedirectUri
	}
	return ""
}

func (x *BeginAuthorizationRequest) GetResponseType() string {
	if x != nil {
		return x.ResponseType
	}
	return ""
}

func (x *BeginAuthorizationRequest) GetScope() string {
	if x != nil {
		return x.Scope
	}
	return ""
}

func (x *BeginAuthorizationRequest) GetState() string {
	if x != nil {
		return x.State
	}
	return ""
}

func (x *BeginAuthorizationRequest) GetCodeChallenge() string {
	if x != nil {
		return x.CodeChallenge
	}
	return ""
}

func (x *BeginAuthorizationRequest) GetCodeChallengeMethod() string {
	if x != nil {
		return x.CodeChallengeMethod
	}
	return ""
}

func (x *BeginAuthorizationRequest) GetIssuer() string {
	if x != nil {
		return x.Issuer
	}
	return ""
}

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

func (x *BeginAuthorizationRequest) GetResourcePresent() bool {
	if x != nil {
		return x.ResourcePresent
	}
	return false
}

type BeginAuthorizationResponse struct {
	state               protoimpl.MessageState      `protogen:"open.v1"`
	RequestHandle       string                      `protobuf:"bytes,1,opt,name=request_handle,json=requestHandle,proto3" json:"request_handle,omitempty"`
	ExpiresAtUnixSecond int64                       `protobuf:"varint,2,opt,name=expires_at_unix_second,json=expiresAtUnixSecond,proto3" json:"expires_at_unix_second,omitempty"`
	ProtocolError       *AuthorizationProtocolError `protobuf:"bytes,3,opt,name=protocol_error,json=protocolError,proto3" json:"protocol_error,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*BeginAuthorizationResponse) ProtoMessage() {}

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

func (x *BeginAuthorizationResponse) GetRequestHandle() string {
	if x != nil {
		return x.RequestHandle
	}
	return ""
}

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

func (x *BeginAuthorizationResponse) GetProtocolError() *AuthorizationProtocolError {
	if x != nil {
		return x.ProtocolError
	}
	return nil
}

type CompleteAuthorizationRequest 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"`
	RequestHandle     string                 `protobuf:"bytes,2,opt,name=request_handle,json=requestHandle,proto3" json:"request_handle,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*CompleteAuthorizationRequest) ProtoMessage() {}

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

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

func (x *CompleteAuthorizationRequest) GetRequestHandle() string {
	if x != nil {
		return x.RequestHandle
	}
	return ""
}

type CompleteAuthorizationResponse struct {
	state                   protoimpl.MessageState      `protogen:"open.v1"`
	RedirectUri             string                      `protobuf:"bytes,2,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	State                   string                      `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	ProtocolError           *AuthorizationProtocolError `protobuf:"bytes,4,opt,name=protocol_error,json=protocolError,proto3" json:"protocol_error,omitempty"`
	AuthorizationCodeIssued bool                        `protobuf:"varint,5,opt,name=authorization_code_issued,json=authorizationCodeIssued,proto3" json:"authorization_code_issued,omitempty"`
	unknownFields           protoimpl.UnknownFields
	sizeCache               protoimpl.SizeCache
}

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

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

func (*CompleteAuthorizationResponse) ProtoMessage() {}

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

func (x *CompleteAuthorizationResponse) GetRedirectUri() string {
	if x != nil {
		return x.RedirectUri
	}
	return ""
}

func (x *CompleteAuthorizationResponse) GetState() string {
	if x != nil {
		return x.State
	}
	return ""
}

func (x *CompleteAuthorizationResponse) GetProtocolError() *AuthorizationProtocolError {
	if x != nil {
		return x.ProtocolError
	}
	return nil
}

func (x *CompleteAuthorizationResponse) GetAuthorizationCodeIssued() bool {
	if x != nil {
		return x.AuthorizationCodeIssued
	}
	return false
}

type ExchangeAuthorizationTokenRequest 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"`
	GrantType         AuthorizationGrantType `protobuf:"varint,2,opt,name=grant_type,json=grantType,proto3,enum=nexuscrm.runtime.v1.AuthorizationGrantType" json:"grant_type,omitempty"`
	ClientId          string                 `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	RedirectUri       string                 `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	RequestedScope    string                 `protobuf:"bytes,5,opt,name=requested_scope,json=requestedScope,proto3" json:"requested_scope,omitempty"`
	Issuer            string                 `protobuf:"bytes,6,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Resource          string                 `protobuf:"bytes,7,opt,name=resource,proto3" json:"resource,omitempty"`
	ResourcePresent   bool                   `protobuf:"varint,8,opt,name=resource_present,json=resourcePresent,proto3" json:"resource_present,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*ExchangeAuthorizationTokenRequest) ProtoMessage() {}

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

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

func (x *ExchangeAuthorizationTokenRequest) GetGrantType() AuthorizationGrantType {
	if x != nil {
		return x.GrantType
	}
	return AuthorizationGrantType_AUTHORIZATION_GRANT_TYPE_UNSPECIFIED
}

func (x *ExchangeAuthorizationTokenRequest) GetClientId() string {
	if x != nil {
		return x.ClientId
	}
	return ""
}

func (x *ExchangeAuthorizationTokenRequest) GetRedirectUri() string {
	if x != nil {
		return x.RedirectUri
	}
	return ""
}

func (x *ExchangeAuthorizationTokenRequest) GetRequestedScope() string {
	if x != nil {
		return x.RequestedScope
	}
	return ""
}

func (x *ExchangeAuthorizationTokenRequest) GetIssuer() string {
	if x != nil {
		return x.Issuer
	}
	return ""
}

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

func (x *ExchangeAuthorizationTokenRequest) GetResourcePresent() bool {
	if x != nil {
		return x.ResourcePresent
	}
	return false
}

type AuthorizationTokenView struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	TokenType          string                 `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	ExpiresInSecond    int64                  `protobuf:"varint,2,opt,name=expires_in_second,json=expiresInSecond,proto3" json:"expires_in_second,omitempty"`
	Scope              string                 `protobuf:"bytes,7,opt,name=scope,proto3" json:"scope,omitempty"`
	AccessTokenIssued  bool                   `protobuf:"varint,8,opt,name=access_token_issued,json=accessTokenIssued,proto3" json:"access_token_issued,omitempty"`
	RefreshTokenIssued bool                   `protobuf:"varint,9,opt,name=refresh_token_issued,json=refreshTokenIssued,proto3" json:"refresh_token_issued,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *AuthorizationTokenView) Reset() {
	*x = AuthorizationTokenView{}
	mi := &file_runtime_v1_authorization_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*AuthorizationTokenView) ProtoMessage() {}

func (x *AuthorizationTokenView) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_authorization_proto_msgTypes[6]
	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 AuthorizationTokenView.ProtoReflect.Descriptor instead.
func (*AuthorizationTokenView) Descriptor() ([]byte, []int) {
	return file_runtime_v1_authorization_proto_rawDescGZIP(), []int{6}
}

func (x *AuthorizationTokenView) GetTokenType() string {
	if x != nil {
		return x.TokenType
	}
	return ""
}

func (x *AuthorizationTokenView) GetExpiresInSecond() int64 {
	if x != nil {
		return x.ExpiresInSecond
	}
	return 0
}

func (x *AuthorizationTokenView) GetScope() string {
	if x != nil {
		return x.Scope
	}
	return ""
}

func (x *AuthorizationTokenView) GetAccessTokenIssued() bool {
	if x != nil {
		return x.AccessTokenIssued
	}
	return false
}

func (x *AuthorizationTokenView) GetRefreshTokenIssued() bool {
	if x != nil {
		return x.RefreshTokenIssued
	}
	return false
}

type ExchangeAuthorizationTokenResponse struct {
	state         protoimpl.MessageState      `protogen:"open.v1"`
	Token         *AuthorizationTokenView     `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	ProtocolError *AuthorizationProtocolError `protobuf:"bytes,2,opt,name=protocol_error,json=protocolError,proto3" json:"protocol_error,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ExchangeAuthorizationTokenResponse) Reset() {
	*x = ExchangeAuthorizationTokenResponse{}
	mi := &file_runtime_v1_authorization_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ExchangeAuthorizationTokenResponse) ProtoMessage() {}

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

func (x *ExchangeAuthorizationTokenResponse) GetToken() *AuthorizationTokenView {
	if x != nil {
		return x.Token
	}
	return nil
}

func (x *ExchangeAuthorizationTokenResponse) GetProtocolError() *AuthorizationProtocolError {
	if x != nil {
		return x.ProtocolError
	}
	return nil
}

var File_runtime_v1_authorization_proto protoreflect.FileDescriptor

const file_runtime_v1_authorization_proto_rawDesc = "" +
	"\n" +
	"\x1eruntime/v1/authorization.proto\x12\x13nexuscrm.runtime.v1\"\xa9\x01\n" +
	"\x1aAuthorizationProtocolError\x12\x12\n" +
	"\x04code\x18\x01 \x01(\tR\x04code\x12)\n" +
	"\x10safe_description\x18\x02 \x01(\tR\x0fsafeDescription\x120\n" +
	"\x14trusted_redirect_uri\x18\x04 \x01(\tR\x12trustedRedirectUri\x12\x14\n" +
	"\x05state\x18\x05 \x01(\tR\x05stateJ\x04\b\x03\x10\x04\"\x96\x03\n" +
	"\x19BeginAuthorizationRequest\x12.\n" +
	"\x13app_installation_id\x18\x01 \x01(\tR\x11appInstallationId\x12\x1b\n" +
	"\tclient_id\x18\x02 \x01(\tR\bclientId\x12!\n" +
	"\fredirect_uri\x18\x03 \x01(\tR\vredirectUri\x12#\n" +
	"\rresponse_type\x18\x04 \x01(\tR\fresponseType\x12\x14\n" +
	"\x05scope\x18\x05 \x01(\tR\x05scope\x12\x14\n" +
	"\x05state\x18\x06 \x01(\tR\x05state\x12%\n" +
	"\x0ecode_challenge\x18\a \x01(\tR\rcodeChallenge\x122\n" +
	"\x15code_challenge_method\x18\b \x01(\tR\x13codeChallengeMethod\x12\x16\n" +
	"\x06issuer\x18\t \x01(\tR\x06issuer\x12\x1a\n" +
	"\bresource\x18\n" +
	" \x01(\tR\bresource\x12)\n" +
	"\x10resource_present\x18\v \x01(\bR\x0fresourcePresent\"\xd0\x01\n" +
	"\x1aBeginAuthorizationResponse\x12%\n" +
	"\x0erequest_handle\x18\x01 \x01(\tR\rrequestHandle\x123\n" +
	"\x16expires_at_unix_second\x18\x02 \x01(\x03R\x13expiresAtUnixSecond\x12V\n" +
	"\x0eprotocol_error\x18\x03 \x01(\v2/.nexuscrm.runtime.v1.AuthorizationProtocolErrorR\rprotocolError\"u\n" +
	"\x1cCompleteAuthorizationRequest\x12.\n" +
	"\x13app_installation_id\x18\x01 \x01(\tR\x11appInstallationId\x12%\n" +
	"\x0erequest_handle\x18\x02 \x01(\tR\rrequestHandle\"\xf2\x01\n" +
	"\x1dCompleteAuthorizationResponse\x12!\n" +
	"\fredirect_uri\x18\x02 \x01(\tR\vredirectUri\x12\x14\n" +
	"\x05state\x18\x03 \x01(\tR\x05state\x12V\n" +
	"\x0eprotocol_error\x18\x04 \x01(\v2/.nexuscrm.runtime.v1.AuthorizationProtocolErrorR\rprotocolError\x12:\n" +
	"\x19authorization_code_issued\x18\x05 \x01(\bR\x17authorizationCodeIssuedJ\x04\b\x01\x10\x02\"\xe7\x02\n" +
	"!ExchangeAuthorizationTokenRequest\x12.\n" +
	"\x13app_installation_id\x18\x01 \x01(\tR\x11appInstallationId\x12J\n" +
	"\n" +
	"grant_type\x18\x02 \x01(\x0e2+.nexuscrm.runtime.v1.AuthorizationGrantTypeR\tgrantType\x12\x1b\n" +
	"\tclient_id\x18\x03 \x01(\tR\bclientId\x12!\n" +
	"\fredirect_uri\x18\x04 \x01(\tR\vredirectUri\x12'\n" +
	"\x0frequested_scope\x18\x05 \x01(\tR\x0erequestedScope\x12\x16\n" +
	"\x06issuer\x18\x06 \x01(\tR\x06issuer\x12\x1a\n" +
	"\bresource\x18\a \x01(\tR\bresource\x12)\n" +
	"\x10resource_present\x18\b \x01(\bR\x0fresourcePresent\"\xf3\x01\n" +
	"\x16AuthorizationTokenView\x12\x1d\n" +
	"\n" +
	"token_type\x18\x01 \x01(\tR\ttokenType\x12*\n" +
	"\x11expires_in_second\x18\x02 \x01(\x03R\x0fexpiresInSecond\x12\x14\n" +
	"\x05scope\x18\a \x01(\tR\x05scope\x12.\n" +
	"\x13access_token_issued\x18\b \x01(\bR\x11accessTokenIssued\x120\n" +
	"\x14refresh_token_issued\x18\t \x01(\bR\x12refreshTokenIssuedJ\x04\b\x03\x10\x04J\x04\b\x04\x10\x05J\x04\b\x05\x10\x06J\x04\b\x06\x10\a\"\xbf\x01\n" +
	"\"ExchangeAuthorizationTokenResponse\x12A\n" +
	"\x05token\x18\x01 \x01(\v2+.nexuscrm.runtime.v1.AuthorizationTokenViewR\x05token\x12V\n" +
	"\x0eprotocol_error\x18\x02 \x01(\v2/.nexuscrm.runtime.v1.AuthorizationProtocolErrorR\rprotocolError*\xd0\x01\n" +
	"\x16AuthorizationGrantType\x12(\n" +
	"$AUTHORIZATION_GRANT_TYPE_UNSPECIFIED\x10\x00\x12/\n" +
	"+AUTHORIZATION_GRANT_TYPE_AUTHORIZATION_CODE\x10\x01\x12*\n" +
	"&AUTHORIZATION_GRANT_TYPE_REFRESH_TOKEN\x10\x02\x12/\n" +
	"+AUTHORIZATION_GRANT_TYPE_CLIENT_CREDENTIALS\x10\x032\xa6\x03\n" +
	"\x1dAuthorizationLifecycleService\x12u\n" +
	"\x12BeginAuthorization\x12..nexuscrm.runtime.v1.BeginAuthorizationRequest\x1a/.nexuscrm.runtime.v1.BeginAuthorizationResponse\x12~\n" +
	"\x15CompleteAuthorization\x121.nexuscrm.runtime.v1.CompleteAuthorizationRequest\x1a2.nexuscrm.runtime.v1.CompleteAuthorizationResponse\x12\x8d\x01\n" +
	"\x1aExchangeAuthorizationToken\x126.nexuscrm.runtime.v1.ExchangeAuthorizationTokenRequest\x1a7.nexuscrm.runtime.v1.ExchangeAuthorizationTokenResponseBKZIgithub.com/pingcap-inc/nexuscrm-contract/wire-go/gen/runtime/v1;runtimev1b\x06proto3"

var (
	file_runtime_v1_authorization_proto_rawDescOnce sync.Once
	file_runtime_v1_authorization_proto_rawDescData []byte
)

func file_runtime_v1_authorization_proto_rawDescGZIP() []byte {
	file_runtime_v1_authorization_proto_rawDescOnce.Do(func() {
		file_runtime_v1_authorization_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runtime_v1_authorization_proto_rawDesc), len(file_runtime_v1_authorization_proto_rawDesc)))
	})
	return file_runtime_v1_authorization_proto_rawDescData
}

var file_runtime_v1_authorization_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_runtime_v1_authorization_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_runtime_v1_authorization_proto_goTypes = []any{
	(AuthorizationGrantType)(0),                // 0: nexuscrm.runtime.v1.AuthorizationGrantType
	(*AuthorizationProtocolError)(nil),         // 1: nexuscrm.runtime.v1.AuthorizationProtocolError
	(*BeginAuthorizationRequest)(nil),          // 2: nexuscrm.runtime.v1.BeginAuthorizationRequest
	(*BeginAuthorizationResponse)(nil),         // 3: nexuscrm.runtime.v1.BeginAuthorizationResponse
	(*CompleteAuthorizationRequest)(nil),       // 4: nexuscrm.runtime.v1.CompleteAuthorizationRequest
	(*CompleteAuthorizationResponse)(nil),      // 5: nexuscrm.runtime.v1.CompleteAuthorizationResponse
	(*ExchangeAuthorizationTokenRequest)(nil),  // 6: nexuscrm.runtime.v1.ExchangeAuthorizationTokenRequest
	(*AuthorizationTokenView)(nil),             // 7: nexuscrm.runtime.v1.AuthorizationTokenView
	(*ExchangeAuthorizationTokenResponse)(nil), // 8: nexuscrm.runtime.v1.ExchangeAuthorizationTokenResponse
}
var file_runtime_v1_authorization_proto_depIdxs = []int32{
	1, // 0: nexuscrm.runtime.v1.BeginAuthorizationResponse.protocol_error:type_name -> nexuscrm.runtime.v1.AuthorizationProtocolError
	1, // 1: nexuscrm.runtime.v1.CompleteAuthorizationResponse.protocol_error:type_name -> nexuscrm.runtime.v1.AuthorizationProtocolError
	0, // 2: nexuscrm.runtime.v1.ExchangeAuthorizationTokenRequest.grant_type:type_name -> nexuscrm.runtime.v1.AuthorizationGrantType
	7, // 3: nexuscrm.runtime.v1.ExchangeAuthorizationTokenResponse.token:type_name -> nexuscrm.runtime.v1.AuthorizationTokenView
	1, // 4: nexuscrm.runtime.v1.ExchangeAuthorizationTokenResponse.protocol_error:type_name -> nexuscrm.runtime.v1.AuthorizationProtocolError
	2, // 5: nexuscrm.runtime.v1.AuthorizationLifecycleService.BeginAuthorization:input_type -> nexuscrm.runtime.v1.BeginAuthorizationRequest
	4, // 6: nexuscrm.runtime.v1.AuthorizationLifecycleService.CompleteAuthorization:input_type -> nexuscrm.runtime.v1.CompleteAuthorizationRequest
	6, // 7: nexuscrm.runtime.v1.AuthorizationLifecycleService.ExchangeAuthorizationToken:input_type -> nexuscrm.runtime.v1.ExchangeAuthorizationTokenRequest
	3, // 8: nexuscrm.runtime.v1.AuthorizationLifecycleService.BeginAuthorization:output_type -> nexuscrm.runtime.v1.BeginAuthorizationResponse
	5, // 9: nexuscrm.runtime.v1.AuthorizationLifecycleService.CompleteAuthorization:output_type -> nexuscrm.runtime.v1.CompleteAuthorizationResponse
	8, // 10: nexuscrm.runtime.v1.AuthorizationLifecycleService.ExchangeAuthorizationToken:output_type -> nexuscrm.runtime.v1.ExchangeAuthorizationTokenResponse
	8, // [8:11] is the sub-list for method output_type
	5, // [5:8] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_runtime_v1_authorization_proto_init() }
func file_runtime_v1_authorization_proto_init() {
	if File_runtime_v1_authorization_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_authorization_proto_rawDesc), len(file_runtime_v1_authorization_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   8,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_runtime_v1_authorization_proto_goTypes,
		DependencyIndexes: file_runtime_v1_authorization_proto_depIdxs,
		EnumInfos:         file_runtime_v1_authorization_proto_enumTypes,
		MessageInfos:      file_runtime_v1_authorization_proto_msgTypes,
	}.Build()
	File_runtime_v1_authorization_proto = out.File
	file_runtime_v1_authorization_proto_goTypes = nil
	file_runtime_v1_authorization_proto_depIdxs = nil
}
