// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/extensions/grpc_service/call_credentials/sts_service/v3/sts_service_credentials.proto

package sts_servicev3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	_ "github.com/envoyproxy/protoc-gen-validate/validate"
	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)
)

// Security token service configuration that allows Google gRPC to
// fetch security token from an OAuth 2.0 authorization server.
// See https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16 and
// https://github.com/grpc/grpc/pull/19587.
// [#not-implemented-hide:]
// [#next-free-field: 10]
type StsServiceCredentials struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// URI of the token exchange service that handles token exchange requests.
	// [#comment:TODO(asraa): Add URI validation when implemented. Tracked by
	// https://github.com/bufbuild/protoc-gen-validate/issues/303]
	TokenExchangeServiceUri string `protobuf:"bytes,1,opt,name=token_exchange_service_uri,json=tokenExchangeServiceUri,proto3" json:"token_exchange_service_uri,omitempty"`
	// Location of the target service or resource where the client
	// intends to use the requested security token.
	Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// Logical name of the target service where the client intends to
	// use the requested security token.
	Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"`
	// The desired scope of the requested security token in the
	// context of the service or resource where the token will be used.
	Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"`
	// Type of the requested security token.
	RequestedTokenType string `protobuf:"bytes,5,opt,name=requested_token_type,json=requestedTokenType,proto3" json:"requested_token_type,omitempty"`
	// The path of subject token, a security token that represents the
	// identity of the party on behalf of whom the request is being made.
	SubjectTokenPath string `protobuf:"bytes,6,opt,name=subject_token_path,json=subjectTokenPath,proto3" json:"subject_token_path,omitempty"`
	// Type of the subject token.
	SubjectTokenType string `protobuf:"bytes,7,opt,name=subject_token_type,json=subjectTokenType,proto3" json:"subject_token_type,omitempty"`
	// The path of actor token, a security token that represents the identity
	// of the acting party. The acting party is authorized to use the
	// requested security token and act on behalf of the subject.
	ActorTokenPath string `protobuf:"bytes,8,opt,name=actor_token_path,json=actorTokenPath,proto3" json:"actor_token_path,omitempty"`
	// Type of the actor token.
	ActorTokenType string `protobuf:"bytes,9,opt,name=actor_token_type,json=actorTokenType,proto3" json:"actor_token_type,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*StsServiceCredentials) ProtoMessage() {}

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

func (x *StsServiceCredentials) GetTokenExchangeServiceUri() string {
	if x != nil {
		return x.TokenExchangeServiceUri
	}
	return ""
}

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

func (x *StsServiceCredentials) GetAudience() string {
	if x != nil {
		return x.Audience
	}
	return ""
}

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

func (x *StsServiceCredentials) GetRequestedTokenType() string {
	if x != nil {
		return x.RequestedTokenType
	}
	return ""
}

func (x *StsServiceCredentials) GetSubjectTokenPath() string {
	if x != nil {
		return x.SubjectTokenPath
	}
	return ""
}

func (x *StsServiceCredentials) GetSubjectTokenType() string {
	if x != nil {
		return x.SubjectTokenType
	}
	return ""
}

func (x *StsServiceCredentials) GetActorTokenPath() string {
	if x != nil {
		return x.ActorTokenPath
	}
	return ""
}

func (x *StsServiceCredentials) GetActorTokenType() string {
	if x != nil {
		return x.ActorTokenType
	}
	return ""
}

var File_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto protoreflect.FileDescriptor

const file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDesc = "" +
	"\n" +
	"[envoy/extensions/grpc_service/call_credentials/sts_service/v3/sts_service_credentials.proto\x12=envoy.extensions.grpc_service.call_credentials.sts_service.v3\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\x96\x03\n" +
	"\x15StsServiceCredentials\x12;\n" +
	"\x1atoken_exchange_service_uri\x18\x01 \x01(\tR\x17tokenExchangeServiceUri\x12\x1a\n" +
	"\bresource\x18\x02 \x01(\tR\bresource\x12\x1a\n" +
	"\baudience\x18\x03 \x01(\tR\baudience\x12\x14\n" +
	"\x05scope\x18\x04 \x01(\tR\x05scope\x120\n" +
	"\x14requested_token_type\x18\x05 \x01(\tR\x12requestedTokenType\x125\n" +
	"\x12subject_token_path\x18\x06 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x10subjectTokenPath\x125\n" +
	"\x12subject_token_type\x18\a \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x10subjectTokenType\x12(\n" +
	"\x10actor_token_path\x18\b \x01(\tR\x0eactorTokenPath\x12(\n" +
	"\x10actor_token_type\x18\t \x01(\tR\x0eactorTokenTypeB\xe7\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"Kio.envoyproxy.envoy.extensions.grpc_service.call_credentials.sts_service.v3B\x1aStsServiceCredentialsProtoP\x01Zrgithub.com/envoyproxy/go-control-plane/envoy/extensions/grpc_service/call_credentials/sts_service/v3;sts_servicev3b\x06proto3"

var (
	file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDescOnce sync.Once
	file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDescData []byte
)

func file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDescGZIP() []byte {
	file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDesc), len(file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDesc)))
	})
	return file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDescData
}

var file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_goTypes = []any{
	(*StsServiceCredentials)(nil), // 0: envoy.extensions.grpc_service.call_credentials.sts_service.v3.StsServiceCredentials
}
var file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] 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_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_init()
}
func file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_init() {
	if File_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDesc), len(file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_msgTypes,
	}.Build()
	File_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto = out.File
	file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_goTypes = nil
	file_envoy_extensions_grpc_service_call_credentials_sts_service_v3_sts_service_credentials_proto_depIdxs = nil
}
