12808 lines
433 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: resource.proto
package api
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
structpb "google.golang.org/protobuf/types/known/structpb"
workloadapi "istio.io/istio/pkg/workloadapi"
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 Protocol int32
const (
Protocol_UNKNOWN Protocol = 0
Protocol_HTTP Protocol = 1
Protocol_HTTPS Protocol = 2
Protocol_TLS Protocol = 3
Protocol_TCP Protocol = 4
Protocol_HBONE Protocol = 5
)
// Enum value maps for Protocol.
var (
Protocol_name = map[int32]string{
0: "UNKNOWN",
1: "HTTP",
2: "HTTPS",
3: "TLS",
4: "TCP",
5: "HBONE",
}
Protocol_value = map[string]int32{
"UNKNOWN": 0,
"HTTP": 1,
"HTTPS": 2,
"TLS": 3,
"TCP": 4,
"HBONE": 5,
}
)
func (x Protocol) Enum() *Protocol {
p := new(Protocol)
*p = x
return p
}
func (x Protocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Protocol) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[0].Descriptor()
}
func (Protocol) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[0]
}
func (x Protocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Protocol.Descriptor instead.
func (Protocol) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{0}
}
// Protocol defines the bind-level protocol to use. Individual listeners will have more details about this.
// For instance, a Bind protocol TLS may have TLS termination and TLS passthrough listeners.
// However, it indicates we need to process TLS
type Bind_Protocol int32
const (
Bind_HTTP Bind_Protocol = 0
Bind_TCP Bind_Protocol = 1
Bind_TLS Bind_Protocol = 2
)
// Enum value maps for Bind_Protocol.
var (
Bind_Protocol_name = map[int32]string{
0: "HTTP",
1: "TCP",
2: "TLS",
}
Bind_Protocol_value = map[string]int32{
"HTTP": 0,
"TCP": 1,
"TLS": 2,
}
)
func (x Bind_Protocol) Enum() *Bind_Protocol {
p := new(Bind_Protocol)
*p = x
return p
}
func (x Bind_Protocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Bind_Protocol) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[1].Descriptor()
}
func (Bind_Protocol) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[1]
}
func (x Bind_Protocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Bind_Protocol.Descriptor instead.
func (Bind_Protocol) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{1, 0}
}
// TunnelProtocol defines the tunnel protocol to use. This will wrap outside of the Protocol.
type Bind_TunnelProtocol int32
const (
Bind_DIRECT Bind_TunnelProtocol = 0
Bind_PROXY Bind_TunnelProtocol = 1
Bind_HBONE_WAYPOINT Bind_TunnelProtocol = 2
Bind_HBONE_GATEWAY Bind_TunnelProtocol = 3
)
// Enum value maps for Bind_TunnelProtocol.
var (
Bind_TunnelProtocol_name = map[int32]string{
0: "DIRECT",
1: "PROXY",
2: "HBONE_WAYPOINT",
3: "HBONE_GATEWAY",
}
Bind_TunnelProtocol_value = map[string]int32{
"DIRECT": 0,
"PROXY": 1,
"HBONE_WAYPOINT": 2,
"HBONE_GATEWAY": 3,
}
)
func (x Bind_TunnelProtocol) Enum() *Bind_TunnelProtocol {
p := new(Bind_TunnelProtocol)
*p = x
return p
}
func (x Bind_TunnelProtocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Bind_TunnelProtocol) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[2].Descriptor()
}
func (Bind_TunnelProtocol) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[2]
}
func (x Bind_TunnelProtocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Bind_TunnelProtocol.Descriptor instead.
func (Bind_TunnelProtocol) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{1, 1}
}
type TLSConfig_TLSVersion int32
const (
TLSConfig_TLS_VERSION_UNSPECIFIED TLSConfig_TLSVersion = 0
TLSConfig_TLS_V1_2 TLSConfig_TLSVersion = 3
TLSConfig_TLS_V1_3 TLSConfig_TLSVersion = 4
)
// Enum value maps for TLSConfig_TLSVersion.
var (
TLSConfig_TLSVersion_name = map[int32]string{
0: "TLS_VERSION_UNSPECIFIED",
3: "TLS_V1_2",
4: "TLS_V1_3",
}
TLSConfig_TLSVersion_value = map[string]int32{
"TLS_VERSION_UNSPECIFIED": 0,
"TLS_V1_2": 3,
"TLS_V1_3": 4,
}
)
func (x TLSConfig_TLSVersion) Enum() *TLSConfig_TLSVersion {
p := new(TLSConfig_TLSVersion)
*p = x
return p
}
func (x TLSConfig_TLSVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TLSConfig_TLSVersion) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[3].Descriptor()
}
func (TLSConfig_TLSVersion) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[3]
}
func (x TLSConfig_TLSVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TLSConfig_TLSVersion.Descriptor instead.
func (TLSConfig_TLSVersion) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{11, 0}
}
type TLSConfig_MTLSMode int32
const (
TLSConfig_STRICT TLSConfig_MTLSMode = 0
// Request a TLS certificate, but if one is not presented or invalid, allow the connection.
TLSConfig_ALLOW_INSECURE_FALLBACK TLSConfig_MTLSMode = 1
)
// Enum value maps for TLSConfig_MTLSMode.
var (
TLSConfig_MTLSMode_name = map[int32]string{
0: "STRICT",
1: "ALLOW_INSECURE_FALLBACK",
}
TLSConfig_MTLSMode_value = map[string]int32{
"STRICT": 0,
"ALLOW_INSECURE_FALLBACK": 1,
}
)
func (x TLSConfig_MTLSMode) Enum() *TLSConfig_MTLSMode {
p := new(TLSConfig_MTLSMode)
*p = x
return p
}
func (x TLSConfig_MTLSMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TLSConfig_MTLSMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[4].Descriptor()
}
func (TLSConfig_MTLSMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[4]
}
func (x TLSConfig_MTLSMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TLSConfig_MTLSMode.Descriptor instead.
func (TLSConfig_MTLSMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{11, 1}
}
// Cipher suites supported by agentgateway
// Keep in sync with `crates/agentgateway/src/transport/tls.rs` (`ALL_CIPHER_SUITES`).
type TLSConfig_CipherSuite int32
const (
TLSConfig_CIPHER_SUITE_UNSPECIFIED TLSConfig_CipherSuite = 0
// TLS 1.3 cipher suites
TLSConfig_TLS_AES_256_GCM_SHA384 TLSConfig_CipherSuite = 1
TLSConfig_TLS_AES_128_GCM_SHA256 TLSConfig_CipherSuite = 2
TLSConfig_TLS_CHACHA20_POLY1305_SHA256 TLSConfig_CipherSuite = 3
// TLS 1.2 cipher suites
TLSConfig_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 TLSConfig_CipherSuite = 4
TLSConfig_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 TLSConfig_CipherSuite = 5
TLSConfig_TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 TLSConfig_CipherSuite = 6
TLSConfig_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLSConfig_CipherSuite = 7
TLSConfig_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 TLSConfig_CipherSuite = 8
TLSConfig_TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 TLSConfig_CipherSuite = 9
)
// Enum value maps for TLSConfig_CipherSuite.
var (
TLSConfig_CipherSuite_name = map[int32]string{
0: "CIPHER_SUITE_UNSPECIFIED",
1: "TLS_AES_256_GCM_SHA384",
2: "TLS_AES_128_GCM_SHA256",
3: "TLS_CHACHA20_POLY1305_SHA256",
4: "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
5: "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
6: "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256",
7: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
8: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
9: "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
}
TLSConfig_CipherSuite_value = map[string]int32{
"CIPHER_SUITE_UNSPECIFIED": 0,
"TLS_AES_256_GCM_SHA384": 1,
"TLS_AES_128_GCM_SHA256": 2,
"TLS_CHACHA20_POLY1305_SHA256": 3,
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384": 4,
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256": 5,
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256": 6,
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384": 7,
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256": 8,
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256": 9,
}
)
func (x TLSConfig_CipherSuite) Enum() *TLSConfig_CipherSuite {
p := new(TLSConfig_CipherSuite)
*p = x
return p
}
func (x TLSConfig_CipherSuite) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TLSConfig_CipherSuite) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[5].Descriptor()
}
func (TLSConfig_CipherSuite) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[5]
}
func (x TLSConfig_CipherSuite) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TLSConfig_CipherSuite.Descriptor instead.
func (TLSConfig_CipherSuite) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{11, 2}
}
type FrontendPolicySpec_Logging_OtlpAccessLog_Protocol int32
const (
FrontendPolicySpec_Logging_OtlpAccessLog_HTTP FrontendPolicySpec_Logging_OtlpAccessLog_Protocol = 0
FrontendPolicySpec_Logging_OtlpAccessLog_GRPC FrontendPolicySpec_Logging_OtlpAccessLog_Protocol = 1
)
// Enum value maps for FrontendPolicySpec_Logging_OtlpAccessLog_Protocol.
var (
FrontendPolicySpec_Logging_OtlpAccessLog_Protocol_name = map[int32]string{
0: "HTTP",
1: "GRPC",
}
FrontendPolicySpec_Logging_OtlpAccessLog_Protocol_value = map[string]int32{
"HTTP": 0,
"GRPC": 1,
}
)
func (x FrontendPolicySpec_Logging_OtlpAccessLog_Protocol) Enum() *FrontendPolicySpec_Logging_OtlpAccessLog_Protocol {
p := new(FrontendPolicySpec_Logging_OtlpAccessLog_Protocol)
*p = x
return p
}
func (x FrontendPolicySpec_Logging_OtlpAccessLog_Protocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FrontendPolicySpec_Logging_OtlpAccessLog_Protocol) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[6].Descriptor()
}
func (FrontendPolicySpec_Logging_OtlpAccessLog_Protocol) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[6]
}
func (x FrontendPolicySpec_Logging_OtlpAccessLog_Protocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FrontendPolicySpec_Logging_OtlpAccessLog_Protocol.Descriptor instead.
func (FrontendPolicySpec_Logging_OtlpAccessLog_Protocol) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 4, 2, 0}
}
type FrontendPolicySpec_Tracing_Protocol int32
const (
FrontendPolicySpec_Tracing_HTTP FrontendPolicySpec_Tracing_Protocol = 0
FrontendPolicySpec_Tracing_GRPC FrontendPolicySpec_Tracing_Protocol = 1
)
// Enum value maps for FrontendPolicySpec_Tracing_Protocol.
var (
FrontendPolicySpec_Tracing_Protocol_name = map[int32]string{
0: "HTTP",
1: "GRPC",
}
FrontendPolicySpec_Tracing_Protocol_value = map[string]int32{
"HTTP": 0,
"GRPC": 1,
}
)
func (x FrontendPolicySpec_Tracing_Protocol) Enum() *FrontendPolicySpec_Tracing_Protocol {
p := new(FrontendPolicySpec_Tracing_Protocol)
*p = x
return p
}
func (x FrontendPolicySpec_Tracing_Protocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FrontendPolicySpec_Tracing_Protocol) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[7].Descriptor()
}
func (FrontendPolicySpec_Tracing_Protocol) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[7]
}
func (x FrontendPolicySpec_Tracing_Protocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FrontendPolicySpec_Tracing_Protocol.Descriptor instead.
func (FrontendPolicySpec_Tracing_Protocol) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 5, 0}
}
type TrafficPolicySpec_PolicyPhase int32
const (
TrafficPolicySpec_ROUTE TrafficPolicySpec_PolicyPhase = 0
TrafficPolicySpec_GATEWAY TrafficPolicySpec_PolicyPhase = 1
)
// Enum value maps for TrafficPolicySpec_PolicyPhase.
var (
TrafficPolicySpec_PolicyPhase_name = map[int32]string{
0: "ROUTE",
1: "GATEWAY",
}
TrafficPolicySpec_PolicyPhase_value = map[string]int32{
"ROUTE": 0,
"GATEWAY": 1,
}
)
func (x TrafficPolicySpec_PolicyPhase) Enum() *TrafficPolicySpec_PolicyPhase {
p := new(TrafficPolicySpec_PolicyPhase)
*p = x
return p
}
func (x TrafficPolicySpec_PolicyPhase) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_PolicyPhase) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[8].Descriptor()
}
func (TrafficPolicySpec_PolicyPhase) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[8]
}
func (x TrafficPolicySpec_PolicyPhase) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_PolicyPhase.Descriptor instead.
func (TrafficPolicySpec_PolicyPhase) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 0}
}
type TrafficPolicySpec_RemoteRateLimit_Type int32
const (
TrafficPolicySpec_RemoteRateLimit_REQUESTS TrafficPolicySpec_RemoteRateLimit_Type = 0
TrafficPolicySpec_RemoteRateLimit_TOKENS TrafficPolicySpec_RemoteRateLimit_Type = 1
)
// Enum value maps for TrafficPolicySpec_RemoteRateLimit_Type.
var (
TrafficPolicySpec_RemoteRateLimit_Type_name = map[int32]string{
0: "REQUESTS",
1: "TOKENS",
}
TrafficPolicySpec_RemoteRateLimit_Type_value = map[string]int32{
"REQUESTS": 0,
"TOKENS": 1,
}
)
func (x TrafficPolicySpec_RemoteRateLimit_Type) Enum() *TrafficPolicySpec_RemoteRateLimit_Type {
p := new(TrafficPolicySpec_RemoteRateLimit_Type)
*p = x
return p
}
func (x TrafficPolicySpec_RemoteRateLimit_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_RemoteRateLimit_Type) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[9].Descriptor()
}
func (TrafficPolicySpec_RemoteRateLimit_Type) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[9]
}
func (x TrafficPolicySpec_RemoteRateLimit_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_RemoteRateLimit_Type.Descriptor instead.
func (TrafficPolicySpec_RemoteRateLimit_Type) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 0, 0}
}
// Defines how the proxy behaves when the remote rate limit service is
// unavailable or returns an error. Defaults to FAIL_CLOSED
type TrafficPolicySpec_RemoteRateLimit_FailureMode int32
const (
TrafficPolicySpec_RemoteRateLimit_FAIL_CLOSED TrafficPolicySpec_RemoteRateLimit_FailureMode = 0
TrafficPolicySpec_RemoteRateLimit_FAIL_OPEN TrafficPolicySpec_RemoteRateLimit_FailureMode = 1
)
// Enum value maps for TrafficPolicySpec_RemoteRateLimit_FailureMode.
var (
TrafficPolicySpec_RemoteRateLimit_FailureMode_name = map[int32]string{
0: "FAIL_CLOSED",
1: "FAIL_OPEN",
}
TrafficPolicySpec_RemoteRateLimit_FailureMode_value = map[string]int32{
"FAIL_CLOSED": 0,
"FAIL_OPEN": 1,
}
)
func (x TrafficPolicySpec_RemoteRateLimit_FailureMode) Enum() *TrafficPolicySpec_RemoteRateLimit_FailureMode {
p := new(TrafficPolicySpec_RemoteRateLimit_FailureMode)
*p = x
return p
}
func (x TrafficPolicySpec_RemoteRateLimit_FailureMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_RemoteRateLimit_FailureMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[10].Descriptor()
}
func (TrafficPolicySpec_RemoteRateLimit_FailureMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[10]
}
func (x TrafficPolicySpec_RemoteRateLimit_FailureMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_RemoteRateLimit_FailureMode.Descriptor instead.
func (TrafficPolicySpec_RemoteRateLimit_FailureMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 0, 1}
}
type TrafficPolicySpec_LocalRateLimit_Type int32
const (
TrafficPolicySpec_LocalRateLimit_REQUEST TrafficPolicySpec_LocalRateLimit_Type = 0
TrafficPolicySpec_LocalRateLimit_TOKEN TrafficPolicySpec_LocalRateLimit_Type = 1
)
// Enum value maps for TrafficPolicySpec_LocalRateLimit_Type.
var (
TrafficPolicySpec_LocalRateLimit_Type_name = map[int32]string{
0: "REQUEST",
1: "TOKEN",
}
TrafficPolicySpec_LocalRateLimit_Type_value = map[string]int32{
"REQUEST": 0,
"TOKEN": 1,
}
)
func (x TrafficPolicySpec_LocalRateLimit_Type) Enum() *TrafficPolicySpec_LocalRateLimit_Type {
p := new(TrafficPolicySpec_LocalRateLimit_Type)
*p = x
return p
}
func (x TrafficPolicySpec_LocalRateLimit_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_LocalRateLimit_Type) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[11].Descriptor()
}
func (TrafficPolicySpec_LocalRateLimit_Type) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[11]
}
func (x TrafficPolicySpec_LocalRateLimit_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_LocalRateLimit_Type.Descriptor instead.
func (TrafficPolicySpec_LocalRateLimit_Type) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 1, 0}
}
type TrafficPolicySpec_ExternalAuth_FailureMode int32
const (
TrafficPolicySpec_ExternalAuth_DENY TrafficPolicySpec_ExternalAuth_FailureMode = 0
TrafficPolicySpec_ExternalAuth_ALLOW TrafficPolicySpec_ExternalAuth_FailureMode = 1
TrafficPolicySpec_ExternalAuth_DENY_WITH_STATUS TrafficPolicySpec_ExternalAuth_FailureMode = 2
)
// Enum value maps for TrafficPolicySpec_ExternalAuth_FailureMode.
var (
TrafficPolicySpec_ExternalAuth_FailureMode_name = map[int32]string{
0: "DENY",
1: "ALLOW",
2: "DENY_WITH_STATUS",
}
TrafficPolicySpec_ExternalAuth_FailureMode_value = map[string]int32{
"DENY": 0,
"ALLOW": 1,
"DENY_WITH_STATUS": 2,
}
)
func (x TrafficPolicySpec_ExternalAuth_FailureMode) Enum() *TrafficPolicySpec_ExternalAuth_FailureMode {
p := new(TrafficPolicySpec_ExternalAuth_FailureMode)
*p = x
return p
}
func (x TrafficPolicySpec_ExternalAuth_FailureMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_ExternalAuth_FailureMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[12].Descriptor()
}
func (TrafficPolicySpec_ExternalAuth_FailureMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[12]
}
func (x TrafficPolicySpec_ExternalAuth_FailureMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_ExternalAuth_FailureMode.Descriptor instead.
func (TrafficPolicySpec_ExternalAuth_FailureMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 2, 0}
}
// Validation mode for JWT authentication
type TrafficPolicySpec_JWT_Mode int32
const (
// Default mode - if a token exists, validate it
TrafficPolicySpec_JWT_OPTIONAL TrafficPolicySpec_JWT_Mode = 0
// A valid token must be present
TrafficPolicySpec_JWT_STRICT TrafficPolicySpec_JWT_Mode = 1
// Requests are never rejected (useful for claims in later steps)
TrafficPolicySpec_JWT_PERMISSIVE TrafficPolicySpec_JWT_Mode = 2
)
// Enum value maps for TrafficPolicySpec_JWT_Mode.
var (
TrafficPolicySpec_JWT_Mode_name = map[int32]string{
0: "OPTIONAL",
1: "STRICT",
2: "PERMISSIVE",
}
TrafficPolicySpec_JWT_Mode_value = map[string]int32{
"OPTIONAL": 0,
"STRICT": 1,
"PERMISSIVE": 2,
}
)
func (x TrafficPolicySpec_JWT_Mode) Enum() *TrafficPolicySpec_JWT_Mode {
p := new(TrafficPolicySpec_JWT_Mode)
*p = x
return p
}
func (x TrafficPolicySpec_JWT_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_JWT_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[13].Descriptor()
}
func (TrafficPolicySpec_JWT_Mode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[13]
}
func (x TrafficPolicySpec_JWT_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_JWT_Mode.Descriptor instead.
func (TrafficPolicySpec_JWT_Mode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 5, 0}
}
// Validation mode for basic authentication
type TrafficPolicySpec_BasicAuthentication_Mode int32
const (
// Requires valid credentials
TrafficPolicySpec_BasicAuthentication_STRICT TrafficPolicySpec_BasicAuthentication_Mode = 0
// If credentials exist, validate them (default)
TrafficPolicySpec_BasicAuthentication_OPTIONAL TrafficPolicySpec_BasicAuthentication_Mode = 1
)
// Enum value maps for TrafficPolicySpec_BasicAuthentication_Mode.
var (
TrafficPolicySpec_BasicAuthentication_Mode_name = map[int32]string{
0: "STRICT",
1: "OPTIONAL",
}
TrafficPolicySpec_BasicAuthentication_Mode_value = map[string]int32{
"STRICT": 0,
"OPTIONAL": 1,
}
)
func (x TrafficPolicySpec_BasicAuthentication_Mode) Enum() *TrafficPolicySpec_BasicAuthentication_Mode {
p := new(TrafficPolicySpec_BasicAuthentication_Mode)
*p = x
return p
}
func (x TrafficPolicySpec_BasicAuthentication_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_BasicAuthentication_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[14].Descriptor()
}
func (TrafficPolicySpec_BasicAuthentication_Mode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[14]
}
func (x TrafficPolicySpec_BasicAuthentication_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_BasicAuthentication_Mode.Descriptor instead.
func (TrafficPolicySpec_BasicAuthentication_Mode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 6, 0}
}
// Validation mode for API Key authentication
type TrafficPolicySpec_APIKey_Mode int32
const (
// Requires valid credentials
TrafficPolicySpec_APIKey_STRICT TrafficPolicySpec_APIKey_Mode = 0
// If credentials exist, validate them (default)
TrafficPolicySpec_APIKey_OPTIONAL TrafficPolicySpec_APIKey_Mode = 1
)
// Enum value maps for TrafficPolicySpec_APIKey_Mode.
var (
TrafficPolicySpec_APIKey_Mode_name = map[int32]string{
0: "STRICT",
1: "OPTIONAL",
}
TrafficPolicySpec_APIKey_Mode_value = map[string]int32{
"STRICT": 0,
"OPTIONAL": 1,
}
)
func (x TrafficPolicySpec_APIKey_Mode) Enum() *TrafficPolicySpec_APIKey_Mode {
p := new(TrafficPolicySpec_APIKey_Mode)
*p = x
return p
}
func (x TrafficPolicySpec_APIKey_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_APIKey_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[15].Descriptor()
}
func (TrafficPolicySpec_APIKey_Mode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[15]
}
func (x TrafficPolicySpec_APIKey_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_APIKey_Mode.Descriptor instead.
func (TrafficPolicySpec_APIKey_Mode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 7, 0}
}
type TrafficPolicySpec_ExtProc_FailureMode int32
const (
TrafficPolicySpec_ExtProc_FAIL_CLOSED TrafficPolicySpec_ExtProc_FailureMode = 0
TrafficPolicySpec_ExtProc_FAIL_OPEN TrafficPolicySpec_ExtProc_FailureMode = 1
)
// Enum value maps for TrafficPolicySpec_ExtProc_FailureMode.
var (
TrafficPolicySpec_ExtProc_FailureMode_name = map[int32]string{
0: "FAIL_CLOSED",
1: "FAIL_OPEN",
}
TrafficPolicySpec_ExtProc_FailureMode_value = map[string]int32{
"FAIL_CLOSED": 0,
"FAIL_OPEN": 1,
}
)
func (x TrafficPolicySpec_ExtProc_FailureMode) Enum() *TrafficPolicySpec_ExtProc_FailureMode {
p := new(TrafficPolicySpec_ExtProc_FailureMode)
*p = x
return p
}
func (x TrafficPolicySpec_ExtProc_FailureMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_ExtProc_FailureMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[16].Descriptor()
}
func (TrafficPolicySpec_ExtProc_FailureMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[16]
}
func (x TrafficPolicySpec_ExtProc_FailureMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_ExtProc_FailureMode.Descriptor instead.
func (TrafficPolicySpec_ExtProc_FailureMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 12, 0}
}
type TrafficPolicySpec_HostRewrite_Mode int32
const (
TrafficPolicySpec_HostRewrite_NONE TrafficPolicySpec_HostRewrite_Mode = 0
TrafficPolicySpec_HostRewrite_AUTO TrafficPolicySpec_HostRewrite_Mode = 1
)
// Enum value maps for TrafficPolicySpec_HostRewrite_Mode.
var (
TrafficPolicySpec_HostRewrite_Mode_name = map[int32]string{
0: "NONE",
1: "AUTO",
}
TrafficPolicySpec_HostRewrite_Mode_value = map[string]int32{
"NONE": 0,
"AUTO": 1,
}
)
func (x TrafficPolicySpec_HostRewrite_Mode) Enum() *TrafficPolicySpec_HostRewrite_Mode {
p := new(TrafficPolicySpec_HostRewrite_Mode)
*p = x
return p
}
func (x TrafficPolicySpec_HostRewrite_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficPolicySpec_HostRewrite_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[17].Descriptor()
}
func (TrafficPolicySpec_HostRewrite_Mode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[17]
}
func (x TrafficPolicySpec_HostRewrite_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficPolicySpec_HostRewrite_Mode.Descriptor instead.
func (TrafficPolicySpec_HostRewrite_Mode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 13, 0}
}
type BackendPolicySpec_Ai_BuiltinRegexRule int32
const (
BackendPolicySpec_Ai_BUILTIN_UNSPECIFIED BackendPolicySpec_Ai_BuiltinRegexRule = 0
BackendPolicySpec_Ai_SSN BackendPolicySpec_Ai_BuiltinRegexRule = 1
BackendPolicySpec_Ai_CREDIT_CARD BackendPolicySpec_Ai_BuiltinRegexRule = 2
BackendPolicySpec_Ai_PHONE_NUMBER BackendPolicySpec_Ai_BuiltinRegexRule = 3
BackendPolicySpec_Ai_EMAIL BackendPolicySpec_Ai_BuiltinRegexRule = 4
BackendPolicySpec_Ai_CA_SIN BackendPolicySpec_Ai_BuiltinRegexRule = 5
)
// Enum value maps for BackendPolicySpec_Ai_BuiltinRegexRule.
var (
BackendPolicySpec_Ai_BuiltinRegexRule_name = map[int32]string{
0: "BUILTIN_UNSPECIFIED",
1: "SSN",
2: "CREDIT_CARD",
3: "PHONE_NUMBER",
4: "EMAIL",
5: "CA_SIN",
}
BackendPolicySpec_Ai_BuiltinRegexRule_value = map[string]int32{
"BUILTIN_UNSPECIFIED": 0,
"SSN": 1,
"CREDIT_CARD": 2,
"PHONE_NUMBER": 3,
"EMAIL": 4,
"CA_SIN": 5,
}
)
func (x BackendPolicySpec_Ai_BuiltinRegexRule) Enum() *BackendPolicySpec_Ai_BuiltinRegexRule {
p := new(BackendPolicySpec_Ai_BuiltinRegexRule)
*p = x
return p
}
func (x BackendPolicySpec_Ai_BuiltinRegexRule) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendPolicySpec_Ai_BuiltinRegexRule) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[18].Descriptor()
}
func (BackendPolicySpec_Ai_BuiltinRegexRule) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[18]
}
func (x BackendPolicySpec_Ai_BuiltinRegexRule) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendPolicySpec_Ai_BuiltinRegexRule.Descriptor instead.
func (BackendPolicySpec_Ai_BuiltinRegexRule) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 0}
}
type BackendPolicySpec_Ai_ActionKind int32
const (
BackendPolicySpec_Ai_ACTION_UNSPECIFIED BackendPolicySpec_Ai_ActionKind = 0
BackendPolicySpec_Ai_MASK BackendPolicySpec_Ai_ActionKind = 1
BackendPolicySpec_Ai_REJECT BackendPolicySpec_Ai_ActionKind = 2
)
// Enum value maps for BackendPolicySpec_Ai_ActionKind.
var (
BackendPolicySpec_Ai_ActionKind_name = map[int32]string{
0: "ACTION_UNSPECIFIED",
1: "MASK",
2: "REJECT",
}
BackendPolicySpec_Ai_ActionKind_value = map[string]int32{
"ACTION_UNSPECIFIED": 0,
"MASK": 1,
"REJECT": 2,
}
)
func (x BackendPolicySpec_Ai_ActionKind) Enum() *BackendPolicySpec_Ai_ActionKind {
p := new(BackendPolicySpec_Ai_ActionKind)
*p = x
return p
}
func (x BackendPolicySpec_Ai_ActionKind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendPolicySpec_Ai_ActionKind) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[19].Descriptor()
}
func (BackendPolicySpec_Ai_ActionKind) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[19]
}
func (x BackendPolicySpec_Ai_ActionKind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendPolicySpec_Ai_ActionKind.Descriptor instead.
func (BackendPolicySpec_Ai_ActionKind) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 1}
}
// RouteType specifies how incoming requests should be processed
// based on the URL path.
type BackendPolicySpec_Ai_RouteType int32
const (
// Unspecified defaults to COMPLETIONS
BackendPolicySpec_Ai_UNSPECIFIED BackendPolicySpec_Ai_RouteType = 0
// Processes OpenAI /v1/chat/completions format requests
BackendPolicySpec_Ai_COMPLETIONS BackendPolicySpec_Ai_RouteType = 1
// Processes Anthropic /v1/messages format requests
BackendPolicySpec_Ai_MESSAGES BackendPolicySpec_Ai_RouteType = 2
// Handles /v1/models endpoint (returns available models)
BackendPolicySpec_Ai_MODELS BackendPolicySpec_Ai_RouteType = 3
// Sends requests to upstream as-is without LLM processing
BackendPolicySpec_Ai_PASSTHROUGH BackendPolicySpec_Ai_RouteType = 4
// Sends requests upstream as-is but attempts to detect usage/metadata for telemetry/rate limiting
BackendPolicySpec_Ai_DETECT BackendPolicySpec_Ai_RouteType = 9
// Processes OpenAI /responses format requests
BackendPolicySpec_Ai_RESPONSES BackendPolicySpec_Ai_RouteType = 5
// Processes Anthropic /v1/messages/count_tokens format requests
BackendPolicySpec_Ai_ANTHROPIC_TOKEN_COUNT BackendPolicySpec_Ai_RouteType = 6
// Processes OpenAI /v1/embeddings format requests
BackendPolicySpec_Ai_EMBEDDINGS BackendPolicySpec_Ai_RouteType = 7
// OpenAI /v1/realtime
BackendPolicySpec_Ai_REALTIME BackendPolicySpec_Ai_RouteType = 8
)
// Enum value maps for BackendPolicySpec_Ai_RouteType.
var (
BackendPolicySpec_Ai_RouteType_name = map[int32]string{
0: "UNSPECIFIED",
1: "COMPLETIONS",
2: "MESSAGES",
3: "MODELS",
4: "PASSTHROUGH",
9: "DETECT",
5: "RESPONSES",
6: "ANTHROPIC_TOKEN_COUNT",
7: "EMBEDDINGS",
8: "REALTIME",
}
BackendPolicySpec_Ai_RouteType_value = map[string]int32{
"UNSPECIFIED": 0,
"COMPLETIONS": 1,
"MESSAGES": 2,
"MODELS": 3,
"PASSTHROUGH": 4,
"DETECT": 9,
"RESPONSES": 5,
"ANTHROPIC_TOKEN_COUNT": 6,
"EMBEDDINGS": 7,
"REALTIME": 8,
}
)
func (x BackendPolicySpec_Ai_RouteType) Enum() *BackendPolicySpec_Ai_RouteType {
p := new(BackendPolicySpec_Ai_RouteType)
*p = x
return p
}
func (x BackendPolicySpec_Ai_RouteType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendPolicySpec_Ai_RouteType) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[20].Descriptor()
}
func (BackendPolicySpec_Ai_RouteType) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[20]
}
func (x BackendPolicySpec_Ai_RouteType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendPolicySpec_Ai_RouteType.Descriptor instead.
func (BackendPolicySpec_Ai_RouteType) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 2}
}
type BackendPolicySpec_InferenceRouting_FailureMode int32
const (
BackendPolicySpec_InferenceRouting_UNKNOWN BackendPolicySpec_InferenceRouting_FailureMode = 0
BackendPolicySpec_InferenceRouting_FAIL_CLOSED BackendPolicySpec_InferenceRouting_FailureMode = 1
BackendPolicySpec_InferenceRouting_FAIL_OPEN BackendPolicySpec_InferenceRouting_FailureMode = 2
)
// Enum value maps for BackendPolicySpec_InferenceRouting_FailureMode.
var (
BackendPolicySpec_InferenceRouting_FailureMode_name = map[int32]string{
0: "UNKNOWN",
1: "FAIL_CLOSED",
2: "FAIL_OPEN",
}
BackendPolicySpec_InferenceRouting_FailureMode_value = map[string]int32{
"UNKNOWN": 0,
"FAIL_CLOSED": 1,
"FAIL_OPEN": 2,
}
)
func (x BackendPolicySpec_InferenceRouting_FailureMode) Enum() *BackendPolicySpec_InferenceRouting_FailureMode {
p := new(BackendPolicySpec_InferenceRouting_FailureMode)
*p = x
return p
}
func (x BackendPolicySpec_InferenceRouting_FailureMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendPolicySpec_InferenceRouting_FailureMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[21].Descriptor()
}
func (BackendPolicySpec_InferenceRouting_FailureMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[21]
}
func (x BackendPolicySpec_InferenceRouting_FailureMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendPolicySpec_InferenceRouting_FailureMode.Descriptor instead.
func (BackendPolicySpec_InferenceRouting_FailureMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 2, 0}
}
type BackendPolicySpec_BackendTLS_VerificationMode int32
const (
BackendPolicySpec_BackendTLS_STRICT BackendPolicySpec_BackendTLS_VerificationMode = 0
BackendPolicySpec_BackendTLS_INSECURE_HOST BackendPolicySpec_BackendTLS_VerificationMode = 1
BackendPolicySpec_BackendTLS_INSECURE_ALL BackendPolicySpec_BackendTLS_VerificationMode = 2
)
// Enum value maps for BackendPolicySpec_BackendTLS_VerificationMode.
var (
BackendPolicySpec_BackendTLS_VerificationMode_name = map[int32]string{
0: "STRICT",
1: "INSECURE_HOST",
2: "INSECURE_ALL",
}
BackendPolicySpec_BackendTLS_VerificationMode_value = map[string]int32{
"STRICT": 0,
"INSECURE_HOST": 1,
"INSECURE_ALL": 2,
}
)
func (x BackendPolicySpec_BackendTLS_VerificationMode) Enum() *BackendPolicySpec_BackendTLS_VerificationMode {
p := new(BackendPolicySpec_BackendTLS_VerificationMode)
*p = x
return p
}
func (x BackendPolicySpec_BackendTLS_VerificationMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendPolicySpec_BackendTLS_VerificationMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[22].Descriptor()
}
func (BackendPolicySpec_BackendTLS_VerificationMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[22]
}
func (x BackendPolicySpec_BackendTLS_VerificationMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendPolicySpec_BackendTLS_VerificationMode.Descriptor instead.
func (BackendPolicySpec_BackendTLS_VerificationMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 5, 0}
}
type BackendPolicySpec_BackendHTTP_HttpVersion int32
const (
BackendPolicySpec_BackendHTTP_UNSPECIFIED BackendPolicySpec_BackendHTTP_HttpVersion = 0
BackendPolicySpec_BackendHTTP_HTTP1 BackendPolicySpec_BackendHTTP_HttpVersion = 1
BackendPolicySpec_BackendHTTP_HTTP2 BackendPolicySpec_BackendHTTP_HttpVersion = 2
)
// Enum value maps for BackendPolicySpec_BackendHTTP_HttpVersion.
var (
BackendPolicySpec_BackendHTTP_HttpVersion_name = map[int32]string{
0: "UNSPECIFIED",
1: "HTTP1",
2: "HTTP2",
}
BackendPolicySpec_BackendHTTP_HttpVersion_value = map[string]int32{
"UNSPECIFIED": 0,
"HTTP1": 1,
"HTTP2": 2,
}
)
func (x BackendPolicySpec_BackendHTTP_HttpVersion) Enum() *BackendPolicySpec_BackendHTTP_HttpVersion {
p := new(BackendPolicySpec_BackendHTTP_HttpVersion)
*p = x
return p
}
func (x BackendPolicySpec_BackendHTTP_HttpVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendPolicySpec_BackendHTTP_HttpVersion) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[23].Descriptor()
}
func (BackendPolicySpec_BackendHTTP_HttpVersion) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[23]
}
func (x BackendPolicySpec_BackendHTTP_HttpVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendPolicySpec_BackendHTTP_HttpVersion.Descriptor instead.
func (BackendPolicySpec_BackendHTTP_HttpVersion) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 6, 0}
}
type BackendPolicySpec_McpAuthentication_McpIDP int32
const (
BackendPolicySpec_McpAuthentication_UNSPECIFIED BackendPolicySpec_McpAuthentication_McpIDP = 0
BackendPolicySpec_McpAuthentication_AUTH0 BackendPolicySpec_McpAuthentication_McpIDP = 1
BackendPolicySpec_McpAuthentication_KEYCLOAK BackendPolicySpec_McpAuthentication_McpIDP = 2
)
// Enum value maps for BackendPolicySpec_McpAuthentication_McpIDP.
var (
BackendPolicySpec_McpAuthentication_McpIDP_name = map[int32]string{
0: "UNSPECIFIED",
1: "AUTH0",
2: "KEYCLOAK",
}
BackendPolicySpec_McpAuthentication_McpIDP_value = map[string]int32{
"UNSPECIFIED": 0,
"AUTH0": 1,
"KEYCLOAK": 2,
}
)
func (x BackendPolicySpec_McpAuthentication_McpIDP) Enum() *BackendPolicySpec_McpAuthentication_McpIDP {
p := new(BackendPolicySpec_McpAuthentication_McpIDP)
*p = x
return p
}
func (x BackendPolicySpec_McpAuthentication_McpIDP) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendPolicySpec_McpAuthentication_McpIDP) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[24].Descriptor()
}
func (BackendPolicySpec_McpAuthentication_McpIDP) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[24]
}
func (x BackendPolicySpec_McpAuthentication_McpIDP) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendPolicySpec_McpAuthentication_McpIDP.Descriptor instead.
func (BackendPolicySpec_McpAuthentication_McpIDP) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 10, 0}
}
// Validation mode for JWT authentication
type BackendPolicySpec_McpAuthentication_Mode int32
const (
// if a token exists, validate it
BackendPolicySpec_McpAuthentication_OPTIONAL BackendPolicySpec_McpAuthentication_Mode = 0
// A valid token must be present
BackendPolicySpec_McpAuthentication_STRICT BackendPolicySpec_McpAuthentication_Mode = 1
// Requests are never rejected (useful for claims in later steps)
BackendPolicySpec_McpAuthentication_PERMISSIVE BackendPolicySpec_McpAuthentication_Mode = 2
)
// Enum value maps for BackendPolicySpec_McpAuthentication_Mode.
var (
BackendPolicySpec_McpAuthentication_Mode_name = map[int32]string{
0: "OPTIONAL",
1: "STRICT",
2: "PERMISSIVE",
}
BackendPolicySpec_McpAuthentication_Mode_value = map[string]int32{
"OPTIONAL": 0,
"STRICT": 1,
"PERMISSIVE": 2,
}
)
func (x BackendPolicySpec_McpAuthentication_Mode) Enum() *BackendPolicySpec_McpAuthentication_Mode {
p := new(BackendPolicySpec_McpAuthentication_Mode)
*p = x
return p
}
func (x BackendPolicySpec_McpAuthentication_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendPolicySpec_McpAuthentication_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[25].Descriptor()
}
func (BackendPolicySpec_McpAuthentication_Mode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[25]
}
func (x BackendPolicySpec_McpAuthentication_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendPolicySpec_McpAuthentication_Mode.Descriptor instead.
func (BackendPolicySpec_McpAuthentication_Mode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 10, 1}
}
type MCPBackend_StatefulMode int32
const (
MCPBackend_STATEFUL MCPBackend_StatefulMode = 0
MCPBackend_STATELESS MCPBackend_StatefulMode = 1
)
// Enum value maps for MCPBackend_StatefulMode.
var (
MCPBackend_StatefulMode_name = map[int32]string{
0: "STATEFUL",
1: "STATELESS",
}
MCPBackend_StatefulMode_value = map[string]int32{
"STATEFUL": 0,
"STATELESS": 1,
}
)
func (x MCPBackend_StatefulMode) Enum() *MCPBackend_StatefulMode {
p := new(MCPBackend_StatefulMode)
*p = x
return p
}
func (x MCPBackend_StatefulMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MCPBackend_StatefulMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[26].Descriptor()
}
func (MCPBackend_StatefulMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[26]
}
func (x MCPBackend_StatefulMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MCPBackend_StatefulMode.Descriptor instead.
func (MCPBackend_StatefulMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{52, 0}
}
type MCPBackend_PrefixMode int32
const (
MCPBackend_CONDITIONAL MCPBackend_PrefixMode = 0
MCPBackend_ALWAYS MCPBackend_PrefixMode = 1
)
// Enum value maps for MCPBackend_PrefixMode.
var (
MCPBackend_PrefixMode_name = map[int32]string{
0: "CONDITIONAL",
1: "ALWAYS",
}
MCPBackend_PrefixMode_value = map[string]int32{
"CONDITIONAL": 0,
"ALWAYS": 1,
}
)
func (x MCPBackend_PrefixMode) Enum() *MCPBackend_PrefixMode {
p := new(MCPBackend_PrefixMode)
*p = x
return p
}
func (x MCPBackend_PrefixMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MCPBackend_PrefixMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[27].Descriptor()
}
func (MCPBackend_PrefixMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[27]
}
func (x MCPBackend_PrefixMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MCPBackend_PrefixMode.Descriptor instead.
func (MCPBackend_PrefixMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{52, 1}
}
// failure_mode controls behavior when MCP targets fail to initialize or
// become unavailable at runtime. Defaults to FAIL_CLOSED.
type MCPBackend_FailureMode int32
const (
MCPBackend_FAIL_CLOSED MCPBackend_FailureMode = 0
MCPBackend_FAIL_OPEN MCPBackend_FailureMode = 1
)
// Enum value maps for MCPBackend_FailureMode.
var (
MCPBackend_FailureMode_name = map[int32]string{
0: "FAIL_CLOSED",
1: "FAIL_OPEN",
}
MCPBackend_FailureMode_value = map[string]int32{
"FAIL_CLOSED": 0,
"FAIL_OPEN": 1,
}
)
func (x MCPBackend_FailureMode) Enum() *MCPBackend_FailureMode {
p := new(MCPBackend_FailureMode)
*p = x
return p
}
func (x MCPBackend_FailureMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MCPBackend_FailureMode) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[28].Descriptor()
}
func (MCPBackend_FailureMode) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[28]
}
func (x MCPBackend_FailureMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MCPBackend_FailureMode.Descriptor instead.
func (MCPBackend_FailureMode) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{52, 2}
}
type MCPTarget_Protocol int32
const (
MCPTarget_UNDEFINED MCPTarget_Protocol = 0
MCPTarget_SSE MCPTarget_Protocol = 1
MCPTarget_STREAMABLE_HTTP MCPTarget_Protocol = 2
)
// Enum value maps for MCPTarget_Protocol.
var (
MCPTarget_Protocol_name = map[int32]string{
0: "UNDEFINED",
1: "SSE",
2: "STREAMABLE_HTTP",
}
MCPTarget_Protocol_value = map[string]int32{
"UNDEFINED": 0,
"SSE": 1,
"STREAMABLE_HTTP": 2,
}
)
func (x MCPTarget_Protocol) Enum() *MCPTarget_Protocol {
p := new(MCPTarget_Protocol)
*p = x
return p
}
func (x MCPTarget_Protocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MCPTarget_Protocol) Descriptor() protoreflect.EnumDescriptor {
return file_resource_proto_enumTypes[29].Descriptor()
}
func (MCPTarget_Protocol) Type() protoreflect.EnumType {
return &file_resource_proto_enumTypes[29]
}
func (x MCPTarget_Protocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MCPTarget_Protocol.Descriptor instead.
func (MCPTarget_Protocol) EnumDescriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{53, 0}
}
type Resource struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *Resource_Bind
// *Resource_Listener
// *Resource_Route
// *Resource_Backend
// *Resource_Policy
// *Resource_TcpRoute
// *Resource_Workload
// *Resource_Service
Kind isResource_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Resource) Reset() {
*x = Resource{}
mi := &file_resource_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Resource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Resource) ProtoMessage() {}
func (x *Resource) ProtoReflect() protoreflect.Message {
mi := &file_resource_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 Resource.ProtoReflect.Descriptor instead.
func (*Resource) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{0}
}
func (x *Resource) GetKind() isResource_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *Resource) GetBind() *Bind {
if x != nil {
if x, ok := x.Kind.(*Resource_Bind); ok {
return x.Bind
}
}
return nil
}
func (x *Resource) GetListener() *Listener {
if x != nil {
if x, ok := x.Kind.(*Resource_Listener); ok {
return x.Listener
}
}
return nil
}
func (x *Resource) GetRoute() *Route {
if x != nil {
if x, ok := x.Kind.(*Resource_Route); ok {
return x.Route
}
}
return nil
}
func (x *Resource) GetBackend() *Backend {
if x != nil {
if x, ok := x.Kind.(*Resource_Backend); ok {
return x.Backend
}
}
return nil
}
func (x *Resource) GetPolicy() *Policy {
if x != nil {
if x, ok := x.Kind.(*Resource_Policy); ok {
return x.Policy
}
}
return nil
}
func (x *Resource) GetTcpRoute() *TCPRoute {
if x != nil {
if x, ok := x.Kind.(*Resource_TcpRoute); ok {
return x.TcpRoute
}
}
return nil
}
func (x *Resource) GetWorkload() *workloadapi.Workload {
if x != nil {
if x, ok := x.Kind.(*Resource_Workload); ok {
return x.Workload
}
}
return nil
}
func (x *Resource) GetService() *workloadapi.Service {
if x != nil {
if x, ok := x.Kind.(*Resource_Service); ok {
return x.Service
}
}
return nil
}
type isResource_Kind interface {
isResource_Kind()
}
type Resource_Bind struct {
Bind *Bind `protobuf:"bytes,1,opt,name=bind,proto3,oneof"`
}
type Resource_Listener struct {
Listener *Listener `protobuf:"bytes,2,opt,name=listener,proto3,oneof"`
}
type Resource_Route struct {
Route *Route `protobuf:"bytes,3,opt,name=route,proto3,oneof"`
}
type Resource_Backend struct {
Backend *Backend `protobuf:"bytes,4,opt,name=backend,proto3,oneof"`
}
type Resource_Policy struct {
Policy *Policy `protobuf:"bytes,5,opt,name=policy,proto3,oneof"`
}
type Resource_TcpRoute struct {
TcpRoute *TCPRoute `protobuf:"bytes,6,opt,name=tcp_route,json=tcpRoute,proto3,oneof"`
}
type Resource_Workload struct {
Workload *workloadapi.Workload `protobuf:"bytes,7,opt,name=workload,proto3,oneof"`
}
type Resource_Service struct {
// Service represents a service - a group of workloads that can be accessed together.
Service *workloadapi.Service `protobuf:"bytes,8,opt,name=service,proto3,oneof"`
}
func (*Resource_Bind) isResource_Kind() {}
func (*Resource_Listener) isResource_Kind() {}
func (*Resource_Route) isResource_Kind() {}
func (*Resource_Backend) isResource_Kind() {}
func (*Resource_Policy) isResource_Kind() {}
func (*Resource_TcpRoute) isResource_Kind() {}
func (*Resource_Workload) isResource_Kind() {}
func (*Resource_Service) isResource_Kind() {}
type Bind struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
Protocol Bind_Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=agentgateway.dev.resource.Bind_Protocol" json:"protocol,omitempty"`
TunnelProtocol Bind_TunnelProtocol `protobuf:"varint,4,opt,name=tunnel_protocol,json=tunnelProtocol,proto3,enum=agentgateway.dev.resource.Bind_TunnelProtocol" json:"tunnel_protocol,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Bind) Reset() {
*x = Bind{}
mi := &file_resource_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Bind) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Bind) ProtoMessage() {}
func (x *Bind) ProtoReflect() protoreflect.Message {
mi := &file_resource_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 Bind.ProtoReflect.Descriptor instead.
func (*Bind) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{1}
}
func (x *Bind) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Bind) GetPort() uint32 {
if x != nil {
return x.Port
}
return 0
}
func (x *Bind) GetProtocol() Bind_Protocol {
if x != nil {
return x.Protocol
}
return Bind_HTTP
}
func (x *Bind) GetTunnelProtocol() Bind_TunnelProtocol {
if x != nil {
return x.TunnelProtocol
}
return Bind_DIRECT
}
type RouteName struct {
state protoimpl.MessageState `protogen:"open.v1"`
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
RuleName *string `protobuf:"bytes,4,opt,name=rule_name,json=ruleName,proto3,oneof" json:"rule_name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RouteName) Reset() {
*x = RouteName{}
mi := &file_resource_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RouteName) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RouteName) ProtoMessage() {}
func (x *RouteName) ProtoReflect() protoreflect.Message {
mi := &file_resource_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 RouteName.ProtoReflect.Descriptor instead.
func (*RouteName) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{2}
}
func (x *RouteName) GetKind() string {
if x != nil {
return x.Kind
}
return ""
}
func (x *RouteName) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RouteName) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *RouteName) GetRuleName() string {
if x != nil && x.RuleName != nil {
return *x.RuleName
}
return ""
}
type ListenerName struct {
state protoimpl.MessageState `protogen:"open.v1"`
GatewayName string `protobuf:"bytes,1,opt,name=gateway_name,json=gatewayName,proto3" json:"gateway_name,omitempty"`
GatewayNamespace string `protobuf:"bytes,2,opt,name=gateway_namespace,json=gatewayNamespace,proto3" json:"gateway_namespace,omitempty"`
ListenerName string `protobuf:"bytes,3,opt,name=listener_name,json=listenerName,proto3" json:"listener_name,omitempty"`
// If the listener is derive from a listenerset, the metadata of the listenerset
ListenerSet *ResourceName `protobuf:"bytes,4,opt,name=listener_set,json=listenerSet,proto3" json:"listener_set,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListenerName) Reset() {
*x = ListenerName{}
mi := &file_resource_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListenerName) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListenerName) ProtoMessage() {}
func (x *ListenerName) ProtoReflect() protoreflect.Message {
mi := &file_resource_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 ListenerName.ProtoReflect.Descriptor instead.
func (*ListenerName) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{3}
}
func (x *ListenerName) GetGatewayName() string {
if x != nil {
return x.GatewayName
}
return ""
}
func (x *ListenerName) GetGatewayNamespace() string {
if x != nil {
return x.GatewayNamespace
}
return ""
}
func (x *ListenerName) GetListenerName() string {
if x != nil {
return x.ListenerName
}
return ""
}
func (x *ListenerName) GetListenerSet() *ResourceName {
if x != nil {
return x.ListenerSet
}
return nil
}
type ResourceName struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ResourceName) Reset() {
*x = ResourceName{}
mi := &file_resource_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ResourceName) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceName) ProtoMessage() {}
func (x *ResourceName) ProtoReflect() protoreflect.Message {
mi := &file_resource_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 ResourceName.ProtoReflect.Descriptor instead.
func (*ResourceName) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{4}
}
func (x *ResourceName) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ResourceName) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
type TypedResourceName struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TypedResourceName) Reset() {
*x = TypedResourceName{}
mi := &file_resource_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TypedResourceName) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TypedResourceName) ProtoMessage() {}
func (x *TypedResourceName) ProtoReflect() protoreflect.Message {
mi := &file_resource_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 TypedResourceName.ProtoReflect.Descriptor instead.
func (*TypedResourceName) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{5}
}
func (x *TypedResourceName) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TypedResourceName) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *TypedResourceName) GetKind() string {
if x != nil {
return x.Kind
}
return ""
}
type Listener struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Unique key for this listener
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Key for the bind this is a part of.
BindKey string `protobuf:"bytes,2,opt,name=bind_key,json=bindKey,proto3" json:"bind_key,omitempty"`
// User facing name for this resource
Name *ListenerName `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
Protocol Protocol `protobuf:"varint,5,opt,name=protocol,proto3,enum=agentgateway.dev.resource.Protocol" json:"protocol,omitempty"`
Tls *TLSConfig `protobuf:"bytes,6,opt,name=tls,proto3" json:"tls,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Listener) Reset() {
*x = Listener{}
mi := &file_resource_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Listener) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Listener) ProtoMessage() {}
func (x *Listener) ProtoReflect() protoreflect.Message {
mi := &file_resource_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 Listener.ProtoReflect.Descriptor instead.
func (*Listener) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{6}
}
func (x *Listener) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Listener) GetBindKey() string {
if x != nil {
return x.BindKey
}
return ""
}
func (x *Listener) GetName() *ListenerName {
if x != nil {
return x.Name
}
return nil
}
func (x *Listener) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
func (x *Listener) GetProtocol() Protocol {
if x != nil {
return x.Protocol
}
return Protocol_UNKNOWN
}
func (x *Listener) GetTls() *TLSConfig {
if x != nil {
return x.Tls
}
return nil
}
type Route struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Unique key for this route
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Key for the listener this is a part of.
ListenerKey string `protobuf:"bytes,2,opt,name=listener_key,json=listenerKey,proto3" json:"listener_key,omitempty"`
// Service this route targets (set when parentRef is a Service).
ServiceKey *workloadapi.NamespacedHostname `protobuf:"bytes,9,opt,name=service_key,json=serviceKey,proto3" json:"service_key,omitempty"`
// User facing name for this resource
Name *RouteName `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Hostnames []string `protobuf:"bytes,5,rep,name=hostnames,proto3" json:"hostnames,omitempty"`
Matches []*RouteMatch `protobuf:"bytes,6,rep,name=matches,proto3" json:"matches,omitempty"`
Backends []*RouteBackend `protobuf:"bytes,7,rep,name=backends,proto3" json:"backends,omitempty"`
TrafficPolicies []*TrafficPolicySpec `protobuf:"bytes,8,rep,name=traffic_policies,json=trafficPolicies,proto3" json:"traffic_policies,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Route) Reset() {
*x = Route{}
mi := &file_resource_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Route) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Route) ProtoMessage() {}
func (x *Route) ProtoReflect() protoreflect.Message {
mi := &file_resource_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 Route.ProtoReflect.Descriptor instead.
func (*Route) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{7}
}
func (x *Route) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Route) GetListenerKey() string {
if x != nil {
return x.ListenerKey
}
return ""
}
func (x *Route) GetServiceKey() *workloadapi.NamespacedHostname {
if x != nil {
return x.ServiceKey
}
return nil
}
func (x *Route) GetName() *RouteName {
if x != nil {
return x.Name
}
return nil
}
func (x *Route) GetHostnames() []string {
if x != nil {
return x.Hostnames
}
return nil
}
func (x *Route) GetMatches() []*RouteMatch {
if x != nil {
return x.Matches
}
return nil
}
func (x *Route) GetBackends() []*RouteBackend {
if x != nil {
return x.Backends
}
return nil
}
func (x *Route) GetTrafficPolicies() []*TrafficPolicySpec {
if x != nil {
return x.TrafficPolicies
}
return nil
}
type TCPRoute struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Unique key for this route
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Key for the listener this is a part of.
ListenerKey string `protobuf:"bytes,2,opt,name=listener_key,json=listenerKey,proto3" json:"listener_key,omitempty"`
// Service this route targets (set when parentRef is a Service).
ServiceKey *workloadapi.NamespacedHostname `protobuf:"bytes,9,opt,name=service_key,json=serviceKey,proto3" json:"service_key,omitempty"`
// User facing name for this resource
Name *RouteName `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Hostnames []string `protobuf:"bytes,5,rep,name=hostnames,proto3" json:"hostnames,omitempty"`
Backends []*RouteBackend `protobuf:"bytes,6,rep,name=backends,proto3" json:"backends,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TCPRoute) Reset() {
*x = TCPRoute{}
mi := &file_resource_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TCPRoute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TCPRoute) ProtoMessage() {}
func (x *TCPRoute) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[8]
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 TCPRoute.ProtoReflect.Descriptor instead.
func (*TCPRoute) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{8}
}
func (x *TCPRoute) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *TCPRoute) GetListenerKey() string {
if x != nil {
return x.ListenerKey
}
return ""
}
func (x *TCPRoute) GetServiceKey() *workloadapi.NamespacedHostname {
if x != nil {
return x.ServiceKey
}
return nil
}
func (x *TCPRoute) GetName() *RouteName {
if x != nil {
return x.Name
}
return nil
}
func (x *TCPRoute) GetHostnames() []string {
if x != nil {
return x.Hostnames
}
return nil
}
func (x *TCPRoute) GetBackends() []*RouteBackend {
if x != nil {
return x.Backends
}
return nil
}
type Policy struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Unique key for this policy
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// User facing name for this resource
Name *TypedResourceName `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Target *PolicyTarget `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Types that are valid to be assigned to Kind:
//
// *Policy_Traffic
// *Policy_Backend
// *Policy_Frontend
Kind isPolicy_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Policy) Reset() {
*x = Policy{}
mi := &file_resource_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Policy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Policy) ProtoMessage() {}
func (x *Policy) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[9]
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 Policy.ProtoReflect.Descriptor instead.
func (*Policy) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{9}
}
func (x *Policy) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Policy) GetName() *TypedResourceName {
if x != nil {
return x.Name
}
return nil
}
func (x *Policy) GetTarget() *PolicyTarget {
if x != nil {
return x.Target
}
return nil
}
func (x *Policy) GetKind() isPolicy_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *Policy) GetTraffic() *TrafficPolicySpec {
if x != nil {
if x, ok := x.Kind.(*Policy_Traffic); ok {
return x.Traffic
}
}
return nil
}
func (x *Policy) GetBackend() *BackendPolicySpec {
if x != nil {
if x, ok := x.Kind.(*Policy_Backend); ok {
return x.Backend
}
}
return nil
}
func (x *Policy) GetFrontend() *FrontendPolicySpec {
if x != nil {
if x, ok := x.Kind.(*Policy_Frontend); ok {
return x.Frontend
}
}
return nil
}
type isPolicy_Kind interface {
isPolicy_Kind()
}
type Policy_Traffic struct {
Traffic *TrafficPolicySpec `protobuf:"bytes,4,opt,name=traffic,proto3,oneof"`
}
type Policy_Backend struct {
Backend *BackendPolicySpec `protobuf:"bytes,5,opt,name=backend,proto3,oneof"`
}
type Policy_Frontend struct {
Frontend *FrontendPolicySpec `protobuf:"bytes,6,opt,name=frontend,proto3,oneof"`
}
func (*Policy_Traffic) isPolicy_Kind() {}
func (*Policy_Backend) isPolicy_Kind() {}
func (*Policy_Frontend) isPolicy_Kind() {}
type Backend struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Unique key for this policy
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// User facing name for this resource
Name *ResourceName `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to Kind:
//
// *Backend_Static
// *Backend_Ai
// *Backend_Mcp
// *Backend_Dynamic
// *Backend_Aws
Kind isBackend_Kind `protobuf_oneof:"kind"`
InlinePolicies []*BackendPolicySpec `protobuf:"bytes,7,rep,name=inline_policies,json=inlinePolicies,proto3" json:"inline_policies,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Backend) Reset() {
*x = Backend{}
mi := &file_resource_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Backend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Backend) ProtoMessage() {}
func (x *Backend) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[10]
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 Backend.ProtoReflect.Descriptor instead.
func (*Backend) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{10}
}
func (x *Backend) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Backend) GetName() *ResourceName {
if x != nil {
return x.Name
}
return nil
}
func (x *Backend) GetKind() isBackend_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *Backend) GetStatic() *StaticBackend {
if x != nil {
if x, ok := x.Kind.(*Backend_Static); ok {
return x.Static
}
}
return nil
}
func (x *Backend) GetAi() *AIBackend {
if x != nil {
if x, ok := x.Kind.(*Backend_Ai); ok {
return x.Ai
}
}
return nil
}
func (x *Backend) GetMcp() *MCPBackend {
if x != nil {
if x, ok := x.Kind.(*Backend_Mcp); ok {
return x.Mcp
}
}
return nil
}
func (x *Backend) GetDynamic() *DynamicForwardProxy {
if x != nil {
if x, ok := x.Kind.(*Backend_Dynamic); ok {
return x.Dynamic
}
}
return nil
}
func (x *Backend) GetAws() *AwsBackend {
if x != nil {
if x, ok := x.Kind.(*Backend_Aws); ok {
return x.Aws
}
}
return nil
}
func (x *Backend) GetInlinePolicies() []*BackendPolicySpec {
if x != nil {
return x.InlinePolicies
}
return nil
}
type isBackend_Kind interface {
isBackend_Kind()
}
type Backend_Static struct {
Static *StaticBackend `protobuf:"bytes,3,opt,name=static,proto3,oneof"`
}
type Backend_Ai struct {
Ai *AIBackend `protobuf:"bytes,4,opt,name=ai,proto3,oneof"`
}
type Backend_Mcp struct {
Mcp *MCPBackend `protobuf:"bytes,5,opt,name=mcp,proto3,oneof"`
}
type Backend_Dynamic struct {
Dynamic *DynamicForwardProxy `protobuf:"bytes,6,opt,name=dynamic,proto3,oneof"`
}
type Backend_Aws struct {
Aws *AwsBackend `protobuf:"bytes,8,opt,name=aws,proto3,oneof"`
}
func (*Backend_Static) isBackend_Kind() {}
func (*Backend_Ai) isBackend_Kind() {}
func (*Backend_Mcp) isBackend_Kind() {}
func (*Backend_Dynamic) isBackend_Kind() {}
func (*Backend_Aws) isBackend_Kind() {}
type TLSConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
// Root to verify client certificates. If not set, mTLS will not be used
Root []byte `protobuf:"bytes,3,opt,name=root,proto3,oneof" json:"root,omitempty"`
CipherSuites []TLSConfig_CipherSuite `protobuf:"varint,4,rep,packed,name=cipher_suites,json=cipherSuites,proto3,enum=agentgateway.dev.resource.TLSConfig_CipherSuite" json:"cipher_suites,omitempty"`
MinVersion *TLSConfig_TLSVersion `protobuf:"varint,5,opt,name=min_version,json=minVersion,proto3,enum=agentgateway.dev.resource.TLSConfig_TLSVersion,oneof" json:"min_version,omitempty"`
MaxVersion *TLSConfig_TLSVersion `protobuf:"varint,6,opt,name=max_version,json=maxVersion,proto3,enum=agentgateway.dev.resource.TLSConfig_TLSVersion,oneof" json:"max_version,omitempty"`
MtlsMode TLSConfig_MTLSMode `protobuf:"varint,7,opt,name=mtls_mode,json=mtlsMode,proto3,enum=agentgateway.dev.resource.TLSConfig_MTLSMode" json:"mtls_mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TLSConfig) Reset() {
*x = TLSConfig{}
mi := &file_resource_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TLSConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TLSConfig) ProtoMessage() {}
func (x *TLSConfig) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[11]
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 TLSConfig.ProtoReflect.Descriptor instead.
func (*TLSConfig) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{11}
}
func (x *TLSConfig) GetCert() []byte {
if x != nil {
return x.Cert
}
return nil
}
func (x *TLSConfig) GetPrivateKey() []byte {
if x != nil {
return x.PrivateKey
}
return nil
}
func (x *TLSConfig) GetRoot() []byte {
if x != nil {
return x.Root
}
return nil
}
func (x *TLSConfig) GetCipherSuites() []TLSConfig_CipherSuite {
if x != nil {
return x.CipherSuites
}
return nil
}
func (x *TLSConfig) GetMinVersion() TLSConfig_TLSVersion {
if x != nil && x.MinVersion != nil {
return *x.MinVersion
}
return TLSConfig_TLS_VERSION_UNSPECIFIED
}
func (x *TLSConfig) GetMaxVersion() TLSConfig_TLSVersion {
if x != nil && x.MaxVersion != nil {
return *x.MaxVersion
}
return TLSConfig_TLS_VERSION_UNSPECIFIED
}
func (x *TLSConfig) GetMtlsMode() TLSConfig_MTLSMode {
if x != nil {
return x.MtlsMode
}
return TLSConfig_STRICT
}
type Timeout struct {
state protoimpl.MessageState `protogen:"open.v1"`
Request *durationpb.Duration `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
BackendRequest *durationpb.Duration `protobuf:"bytes,2,opt,name=backend_request,json=backendRequest,proto3" json:"backend_request,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Timeout) Reset() {
*x = Timeout{}
mi := &file_resource_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Timeout) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Timeout) ProtoMessage() {}
func (x *Timeout) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[12]
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 Timeout.ProtoReflect.Descriptor instead.
func (*Timeout) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{12}
}
func (x *Timeout) GetRequest() *durationpb.Duration {
if x != nil {
return x.Request
}
return nil
}
func (x *Timeout) GetBackendRequest() *durationpb.Duration {
if x != nil {
return x.BackendRequest
}
return nil
}
type Retry struct {
state protoimpl.MessageState `protogen:"open.v1"`
RetryStatusCodes []int32 `protobuf:"varint,1,rep,packed,name=retry_status_codes,json=retryStatusCodes,proto3" json:"retry_status_codes,omitempty"`
Attempts int32 `protobuf:"varint,2,opt,name=attempts,proto3" json:"attempts,omitempty"`
Backoff *durationpb.Duration `protobuf:"bytes,3,opt,name=backoff,proto3" json:"backoff,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Retry) Reset() {
*x = Retry{}
mi := &file_resource_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Retry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Retry) ProtoMessage() {}
func (x *Retry) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[13]
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 Retry.ProtoReflect.Descriptor instead.
func (*Retry) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{13}
}
func (x *Retry) GetRetryStatusCodes() []int32 {
if x != nil {
return x.RetryStatusCodes
}
return nil
}
func (x *Retry) GetAttempts() int32 {
if x != nil {
return x.Attempts
}
return 0
}
func (x *Retry) GetBackoff() *durationpb.Duration {
if x != nil {
return x.Backoff
}
return nil
}
type BackendAuthPolicy struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *BackendAuthPolicy_Passthrough
// *BackendAuthPolicy_Key
// *BackendAuthPolicy_Gcp
// *BackendAuthPolicy_Aws
// *BackendAuthPolicy_Azure
Kind isBackendAuthPolicy_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendAuthPolicy) Reset() {
*x = BackendAuthPolicy{}
mi := &file_resource_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendAuthPolicy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendAuthPolicy) ProtoMessage() {}
func (x *BackendAuthPolicy) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[14]
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 BackendAuthPolicy.ProtoReflect.Descriptor instead.
func (*BackendAuthPolicy) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{14}
}
func (x *BackendAuthPolicy) GetKind() isBackendAuthPolicy_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *BackendAuthPolicy) GetPassthrough() *Passthrough {
if x != nil {
if x, ok := x.Kind.(*BackendAuthPolicy_Passthrough); ok {
return x.Passthrough
}
}
return nil
}
func (x *BackendAuthPolicy) GetKey() *Key {
if x != nil {
if x, ok := x.Kind.(*BackendAuthPolicy_Key); ok {
return x.Key
}
}
return nil
}
func (x *BackendAuthPolicy) GetGcp() *Gcp {
if x != nil {
if x, ok := x.Kind.(*BackendAuthPolicy_Gcp); ok {
return x.Gcp
}
}
return nil
}
func (x *BackendAuthPolicy) GetAws() *Aws {
if x != nil {
if x, ok := x.Kind.(*BackendAuthPolicy_Aws); ok {
return x.Aws
}
}
return nil
}
func (x *BackendAuthPolicy) GetAzure() *Azure {
if x != nil {
if x, ok := x.Kind.(*BackendAuthPolicy_Azure); ok {
return x.Azure
}
}
return nil
}
type isBackendAuthPolicy_Kind interface {
isBackendAuthPolicy_Kind()
}
type BackendAuthPolicy_Passthrough struct {
Passthrough *Passthrough `protobuf:"bytes,1,opt,name=passthrough,proto3,oneof"`
}
type BackendAuthPolicy_Key struct {
Key *Key `protobuf:"bytes,2,opt,name=key,proto3,oneof"`
}
type BackendAuthPolicy_Gcp struct {
Gcp *Gcp `protobuf:"bytes,3,opt,name=gcp,proto3,oneof"`
}
type BackendAuthPolicy_Aws struct {
Aws *Aws `protobuf:"bytes,4,opt,name=aws,proto3,oneof"`
}
type BackendAuthPolicy_Azure struct {
Azure *Azure `protobuf:"bytes,5,opt,name=azure,proto3,oneof"`
}
func (*BackendAuthPolicy_Passthrough) isBackendAuthPolicy_Kind() {}
func (*BackendAuthPolicy_Key) isBackendAuthPolicy_Kind() {}
func (*BackendAuthPolicy_Gcp) isBackendAuthPolicy_Kind() {}
func (*BackendAuthPolicy_Aws) isBackendAuthPolicy_Kind() {}
func (*BackendAuthPolicy_Azure) isBackendAuthPolicy_Kind() {}
// No fields needed for passthrough authentication.
type Passthrough struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Passthrough) Reset() {
*x = Passthrough{}
mi := &file_resource_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Passthrough) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Passthrough) ProtoMessage() {}
func (x *Passthrough) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[15]
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 Passthrough.ProtoReflect.Descriptor instead.
func (*Passthrough) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{15}
}
// Contains a secret for authentication, e.g. an API key.
type Key struct {
state protoimpl.MessageState `protogen:"open.v1"`
Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Key) Reset() {
*x = Key{}
mi := &file_resource_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Key) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Key) ProtoMessage() {}
func (x *Key) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[16]
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 Key.ProtoReflect.Descriptor instead.
func (*Key) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{16}
}
func (x *Key) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
// GCP-specific backend authentication.
type Gcp struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to TokenType:
//
// *Gcp_AccessToken_
// *Gcp_IdToken_
TokenType isGcp_TokenType `protobuf_oneof:"token_type"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Gcp) Reset() {
*x = Gcp{}
mi := &file_resource_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Gcp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Gcp) ProtoMessage() {}
func (x *Gcp) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[17]
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 Gcp.ProtoReflect.Descriptor instead.
func (*Gcp) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{17}
}
func (x *Gcp) GetTokenType() isGcp_TokenType {
if x != nil {
return x.TokenType
}
return nil
}
func (x *Gcp) GetAccessToken() *Gcp_AccessToken {
if x != nil {
if x, ok := x.TokenType.(*Gcp_AccessToken_); ok {
return x.AccessToken
}
}
return nil
}
func (x *Gcp) GetIdToken() *Gcp_IdToken {
if x != nil {
if x, ok := x.TokenType.(*Gcp_IdToken_); ok {
return x.IdToken
}
}
return nil
}
type isGcp_TokenType interface {
isGcp_TokenType()
}
type Gcp_AccessToken_ struct {
// Default if unset
AccessToken *Gcp_AccessToken `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3,oneof"`
}
type Gcp_IdToken_ struct {
IdToken *Gcp_IdToken `protobuf:"bytes,2,opt,name=id_token,json=idToken,proto3,oneof"`
}
func (*Gcp_AccessToken_) isGcp_TokenType() {}
func (*Gcp_IdToken_) isGcp_TokenType() {}
// AWS-specific backend authentication.
type Aws struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *Aws_ExplicitConfig
// *Aws_Implicit
Kind isAws_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Aws) Reset() {
*x = Aws{}
mi := &file_resource_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Aws) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Aws) ProtoMessage() {}
func (x *Aws) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[18]
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 Aws.ProtoReflect.Descriptor instead.
func (*Aws) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{18}
}
func (x *Aws) GetKind() isAws_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *Aws) GetExplicitConfig() *AwsExplicitConfig {
if x != nil {
if x, ok := x.Kind.(*Aws_ExplicitConfig); ok {
return x.ExplicitConfig
}
}
return nil
}
func (x *Aws) GetImplicit() *AwsImplicit {
if x != nil {
if x, ok := x.Kind.(*Aws_Implicit); ok {
return x.Implicit
}
}
return nil
}
type isAws_Kind interface {
isAws_Kind()
}
type Aws_ExplicitConfig struct {
ExplicitConfig *AwsExplicitConfig `protobuf:"bytes,1,opt,name=explicit_config,json=explicitConfig,proto3,oneof"`
}
type Aws_Implicit struct {
Implicit *AwsImplicit `protobuf:"bytes,2,opt,name=implicit,proto3,oneof"`
}
func (*Aws_ExplicitConfig) isAws_Kind() {}
func (*Aws_Implicit) isAws_Kind() {}
// Azure-specific backend authentication.
type Azure struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *Azure_ExplicitConfig
// *Azure_DeveloperImplicit
// *Azure_Implicit
Kind isAzure_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Azure) Reset() {
*x = Azure{}
mi := &file_resource_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Azure) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Azure) ProtoMessage() {}
func (x *Azure) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[19]
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 Azure.ProtoReflect.Descriptor instead.
func (*Azure) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{19}
}
func (x *Azure) GetKind() isAzure_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *Azure) GetExplicitConfig() *AzureExplicitConfig {
if x != nil {
if x, ok := x.Kind.(*Azure_ExplicitConfig); ok {
return x.ExplicitConfig
}
}
return nil
}
func (x *Azure) GetDeveloperImplicit() *AzureDeveloperImplicit {
if x != nil {
if x, ok := x.Kind.(*Azure_DeveloperImplicit); ok {
return x.DeveloperImplicit
}
}
return nil
}
func (x *Azure) GetImplicit() *AzureImplicit {
if x != nil {
if x, ok := x.Kind.(*Azure_Implicit); ok {
return x.Implicit
}
}
return nil
}
type isAzure_Kind interface {
isAzure_Kind()
}
type Azure_ExplicitConfig struct {
ExplicitConfig *AzureExplicitConfig `protobuf:"bytes,1,opt,name=explicit_config,json=explicitConfig,proto3,oneof"`
}
type Azure_DeveloperImplicit struct {
DeveloperImplicit *AzureDeveloperImplicit `protobuf:"bytes,2,opt,name=developer_implicit,json=developerImplicit,proto3,oneof"`
}
type Azure_Implicit struct {
Implicit *AzureImplicit `protobuf:"bytes,3,opt,name=implicit,proto3,oneof"`
}
func (*Azure_ExplicitConfig) isAzure_Kind() {}
func (*Azure_DeveloperImplicit) isAzure_Kind() {}
func (*Azure_Implicit) isAzure_Kind() {}
// Explicit AWS credentials configuration
type AwsExplicitConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// AWS Access Key ID for authentication
AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
// AWS Secret Access Key for authentication
SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"`
// AWS Region (e.g., "us-west-2", "us-east-1"). Optional for AWS backends.
Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
// Optional session token for temporary credentials
SessionToken *string `protobuf:"bytes,4,opt,name=session_token,json=sessionToken,proto3,oneof" json:"session_token,omitempty"` // TODO: make service configurable
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AwsExplicitConfig) Reset() {
*x = AwsExplicitConfig{}
mi := &file_resource_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AwsExplicitConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AwsExplicitConfig) ProtoMessage() {}
func (x *AwsExplicitConfig) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[20]
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 AwsExplicitConfig.ProtoReflect.Descriptor instead.
func (*AwsExplicitConfig) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{20}
}
func (x *AwsExplicitConfig) GetAccessKeyId() string {
if x != nil {
return x.AccessKeyId
}
return ""
}
func (x *AwsExplicitConfig) GetSecretAccessKey() string {
if x != nil {
return x.SecretAccessKey
}
return ""
}
func (x *AwsExplicitConfig) GetRegion() string {
if x != nil {
return x.Region
}
return ""
}
func (x *AwsExplicitConfig) GetSessionToken() string {
if x != nil && x.SessionToken != nil {
return *x.SessionToken
}
return ""
}
// Use implicit AWS authentication (environment variables, IAM roles, etc.)
type AwsImplicit struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AwsImplicit) Reset() {
*x = AwsImplicit{}
mi := &file_resource_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AwsImplicit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AwsImplicit) ProtoMessage() {}
func (x *AwsImplicit) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[21]
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 AwsImplicit.ProtoReflect.Descriptor instead.
func (*AwsImplicit) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{21}
}
// Explicit Azure credentials configuration
type AzureExplicitConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to CredentialSource:
//
// *AzureExplicitConfig_ClientSecret
// *AzureExplicitConfig_ManagedIdentityCredential
// *AzureExplicitConfig_WorkloadIdentityCredential
CredentialSource isAzureExplicitConfig_CredentialSource `protobuf_oneof:"credential_source"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AzureExplicitConfig) Reset() {
*x = AzureExplicitConfig{}
mi := &file_resource_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AzureExplicitConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureExplicitConfig) ProtoMessage() {}
func (x *AzureExplicitConfig) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[22]
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 AzureExplicitConfig.ProtoReflect.Descriptor instead.
func (*AzureExplicitConfig) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{22}
}
func (x *AzureExplicitConfig) GetCredentialSource() isAzureExplicitConfig_CredentialSource {
if x != nil {
return x.CredentialSource
}
return nil
}
func (x *AzureExplicitConfig) GetClientSecret() *AzureClientSecret {
if x != nil {
if x, ok := x.CredentialSource.(*AzureExplicitConfig_ClientSecret); ok {
return x.ClientSecret
}
}
return nil
}
func (x *AzureExplicitConfig) GetManagedIdentityCredential() *AzureManagedIdentityCredential {
if x != nil {
if x, ok := x.CredentialSource.(*AzureExplicitConfig_ManagedIdentityCredential); ok {
return x.ManagedIdentityCredential
}
}
return nil
}
func (x *AzureExplicitConfig) GetWorkloadIdentityCredential() *AzureWorkloadIdentityCredential {
if x != nil {
if x, ok := x.CredentialSource.(*AzureExplicitConfig_WorkloadIdentityCredential); ok {
return x.WorkloadIdentityCredential
}
}
return nil
}
type isAzureExplicitConfig_CredentialSource interface {
isAzureExplicitConfig_CredentialSource()
}
type AzureExplicitConfig_ClientSecret struct {
ClientSecret *AzureClientSecret `protobuf:"bytes,1,opt,name=client_secret,json=clientSecret,proto3,oneof"`
}
type AzureExplicitConfig_ManagedIdentityCredential struct {
ManagedIdentityCredential *AzureManagedIdentityCredential `protobuf:"bytes,2,opt,name=managed_identity_credential,json=managedIdentityCredential,proto3,oneof"`
}
type AzureExplicitConfig_WorkloadIdentityCredential struct {
WorkloadIdentityCredential *AzureWorkloadIdentityCredential `protobuf:"bytes,3,opt,name=workload_identity_credential,json=workloadIdentityCredential,proto3,oneof"`
}
func (*AzureExplicitConfig_ClientSecret) isAzureExplicitConfig_CredentialSource() {}
func (*AzureExplicitConfig_ManagedIdentityCredential) isAzureExplicitConfig_CredentialSource() {}
func (*AzureExplicitConfig_WorkloadIdentityCredential) isAzureExplicitConfig_CredentialSource() {}
// Azure Client Secret authentication method
type AzureClientSecret struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Azure tenant ID
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
// Azure client ID (application ID)
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// Azure client secret
ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AzureClientSecret) Reset() {
*x = AzureClientSecret{}
mi := &file_resource_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AzureClientSecret) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureClientSecret) ProtoMessage() {}
func (x *AzureClientSecret) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[23]
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 AzureClientSecret.ProtoReflect.Descriptor instead.
func (*AzureClientSecret) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{23}
}
func (x *AzureClientSecret) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *AzureClientSecret) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
func (x *AzureClientSecret) GetClientSecret() string {
if x != nil {
return x.ClientSecret
}
return ""
}
// Azure Managed Identity authentication method
type AzureManagedIdentityCredential struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The UAMI to be used to authenticate. If not set, the system-assigned identity will be used.
UserAssignedIdentity *AzureManagedIdentityCredential_UserAssignedIdentity `protobuf:"bytes,1,opt,name=user_assigned_identity,json=userAssignedIdentity,proto3,oneof" json:"user_assigned_identity,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AzureManagedIdentityCredential) Reset() {
*x = AzureManagedIdentityCredential{}
mi := &file_resource_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AzureManagedIdentityCredential) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureManagedIdentityCredential) ProtoMessage() {}
func (x *AzureManagedIdentityCredential) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[24]
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 AzureManagedIdentityCredential.ProtoReflect.Descriptor instead.
func (*AzureManagedIdentityCredential) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{24}
}
func (x *AzureManagedIdentityCredential) GetUserAssignedIdentity() *AzureManagedIdentityCredential_UserAssignedIdentity {
if x != nil {
return x.UserAssignedIdentity
}
return nil
}
// Azure Workload Identity authentication method
type AzureWorkloadIdentityCredential struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AzureWorkloadIdentityCredential) Reset() {
*x = AzureWorkloadIdentityCredential{}
mi := &file_resource_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AzureWorkloadIdentityCredential) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureWorkloadIdentityCredential) ProtoMessage() {}
func (x *AzureWorkloadIdentityCredential) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[25]
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 AzureWorkloadIdentityCredential.ProtoReflect.Descriptor instead.
func (*AzureWorkloadIdentityCredential) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{25}
}
// Use implicit Azure authentication for developer use-cases only
type AzureDeveloperImplicit struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AzureDeveloperImplicit) Reset() {
*x = AzureDeveloperImplicit{}
mi := &file_resource_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AzureDeveloperImplicit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureDeveloperImplicit) ProtoMessage() {}
func (x *AzureDeveloperImplicit) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[26]
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 AzureDeveloperImplicit.ProtoReflect.Descriptor instead.
func (*AzureDeveloperImplicit) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{26}
}
// Automatically detect authentication method based on environment.
// Uses Workload Identity on K8s, Managed Identity on Azure VMs, or Developer Tools locally.
type AzureImplicit struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AzureImplicit) Reset() {
*x = AzureImplicit{}
mi := &file_resource_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AzureImplicit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureImplicit) ProtoMessage() {}
func (x *AzureImplicit) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[27]
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 AzureImplicit.ProtoReflect.Descriptor instead.
func (*AzureImplicit) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{27}
}
type RouteMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path *PathMatch `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Headers []*HeaderMatch `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
Method *MethodMatch `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
QueryParams []*QueryMatch `protobuf:"bytes,4,rep,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RouteMatch) Reset() {
*x = RouteMatch{}
mi := &file_resource_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RouteMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RouteMatch) ProtoMessage() {}
func (x *RouteMatch) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[28]
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 RouteMatch.ProtoReflect.Descriptor instead.
func (*RouteMatch) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{28}
}
func (x *RouteMatch) GetPath() *PathMatch {
if x != nil {
return x.Path
}
return nil
}
func (x *RouteMatch) GetHeaders() []*HeaderMatch {
if x != nil {
return x.Headers
}
return nil
}
func (x *RouteMatch) GetMethod() *MethodMatch {
if x != nil {
return x.Method
}
return nil
}
func (x *RouteMatch) GetQueryParams() []*QueryMatch {
if x != nil {
return x.QueryParams
}
return nil
}
type PathMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *PathMatch_Exact
// *PathMatch_PathPrefix
// *PathMatch_Regex
Kind isPathMatch_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PathMatch) Reset() {
*x = PathMatch{}
mi := &file_resource_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PathMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PathMatch) ProtoMessage() {}
func (x *PathMatch) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[29]
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 PathMatch.ProtoReflect.Descriptor instead.
func (*PathMatch) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{29}
}
func (x *PathMatch) GetKind() isPathMatch_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *PathMatch) GetExact() string {
if x != nil {
if x, ok := x.Kind.(*PathMatch_Exact); ok {
return x.Exact
}
}
return ""
}
func (x *PathMatch) GetPathPrefix() string {
if x != nil {
if x, ok := x.Kind.(*PathMatch_PathPrefix); ok {
return x.PathPrefix
}
}
return ""
}
func (x *PathMatch) GetRegex() string {
if x != nil {
if x, ok := x.Kind.(*PathMatch_Regex); ok {
return x.Regex
}
}
return ""
}
type isPathMatch_Kind interface {
isPathMatch_Kind()
}
type PathMatch_Exact struct {
Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}
type PathMatch_PathPrefix struct {
PathPrefix string `protobuf:"bytes,2,opt,name=path_prefix,json=pathPrefix,proto3,oneof"`
}
type PathMatch_Regex struct {
Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}
func (*PathMatch_Exact) isPathMatch_Kind() {}
func (*PathMatch_PathPrefix) isPathMatch_Kind() {}
func (*PathMatch_Regex) isPathMatch_Kind() {}
type QueryMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to Value:
//
// *QueryMatch_Exact
// *QueryMatch_Regex
Value isQueryMatch_Value `protobuf_oneof:"value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryMatch) Reset() {
*x = QueryMatch{}
mi := &file_resource_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryMatch) ProtoMessage() {}
func (x *QueryMatch) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[30]
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 QueryMatch.ProtoReflect.Descriptor instead.
func (*QueryMatch) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{30}
}
func (x *QueryMatch) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *QueryMatch) GetValue() isQueryMatch_Value {
if x != nil {
return x.Value
}
return nil
}
func (x *QueryMatch) GetExact() string {
if x != nil {
if x, ok := x.Value.(*QueryMatch_Exact); ok {
return x.Exact
}
}
return ""
}
func (x *QueryMatch) GetRegex() string {
if x != nil {
if x, ok := x.Value.(*QueryMatch_Regex); ok {
return x.Regex
}
}
return ""
}
type isQueryMatch_Value interface {
isQueryMatch_Value()
}
type QueryMatch_Exact struct {
Exact string `protobuf:"bytes,2,opt,name=exact,proto3,oneof"`
}
type QueryMatch_Regex struct {
Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}
func (*QueryMatch_Exact) isQueryMatch_Value() {}
func (*QueryMatch_Regex) isQueryMatch_Value() {}
type MethodMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Exact string `protobuf:"bytes,1,opt,name=exact,proto3" json:"exact,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MethodMatch) Reset() {
*x = MethodMatch{}
mi := &file_resource_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MethodMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MethodMatch) ProtoMessage() {}
func (x *MethodMatch) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[31]
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 MethodMatch.ProtoReflect.Descriptor instead.
func (*MethodMatch) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{31}
}
func (x *MethodMatch) GetExact() string {
if x != nil {
return x.Exact
}
return ""
}
type HeaderMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to Value:
//
// *HeaderMatch_Exact
// *HeaderMatch_Regex
Value isHeaderMatch_Value `protobuf_oneof:"value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HeaderMatch) Reset() {
*x = HeaderMatch{}
mi := &file_resource_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HeaderMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HeaderMatch) ProtoMessage() {}
func (x *HeaderMatch) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[32]
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 HeaderMatch.ProtoReflect.Descriptor instead.
func (*HeaderMatch) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{32}
}
func (x *HeaderMatch) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *HeaderMatch) GetValue() isHeaderMatch_Value {
if x != nil {
return x.Value
}
return nil
}
func (x *HeaderMatch) GetExact() string {
if x != nil {
if x, ok := x.Value.(*HeaderMatch_Exact); ok {
return x.Exact
}
}
return ""
}
func (x *HeaderMatch) GetRegex() string {
if x != nil {
if x, ok := x.Value.(*HeaderMatch_Regex); ok {
return x.Regex
}
}
return ""
}
type isHeaderMatch_Value interface {
isHeaderMatch_Value()
}
type HeaderMatch_Exact struct {
Exact string `protobuf:"bytes,2,opt,name=exact,proto3,oneof"`
}
type HeaderMatch_Regex struct {
Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}
func (*HeaderMatch_Exact) isHeaderMatch_Value() {}
func (*HeaderMatch_Regex) isHeaderMatch_Value() {}
type CORS struct {
state protoimpl.MessageState `protogen:"open.v1"`
AllowCredentials bool `protobuf:"varint,1,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"`
AllowHeaders []string `protobuf:"bytes,2,rep,name=allow_headers,json=allowHeaders,proto3" json:"allow_headers,omitempty"`
AllowMethods []string `protobuf:"bytes,3,rep,name=allow_methods,json=allowMethods,proto3" json:"allow_methods,omitempty"`
AllowOrigins []string `protobuf:"bytes,4,rep,name=allow_origins,json=allowOrigins,proto3" json:"allow_origins,omitempty"`
ExposeHeaders []string `protobuf:"bytes,5,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"`
// max_age is in seconds, use google.protobuf.Duration if available, otherwise uint64 for seconds
MaxAge *durationpb.Duration `protobuf:"bytes,6,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CORS) Reset() {
*x = CORS{}
mi := &file_resource_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CORS) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CORS) ProtoMessage() {}
func (x *CORS) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[33]
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 CORS.ProtoReflect.Descriptor instead.
func (*CORS) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{33}
}
func (x *CORS) GetAllowCredentials() bool {
if x != nil {
return x.AllowCredentials
}
return false
}
func (x *CORS) GetAllowHeaders() []string {
if x != nil {
return x.AllowHeaders
}
return nil
}
func (x *CORS) GetAllowMethods() []string {
if x != nil {
return x.AllowMethods
}
return nil
}
func (x *CORS) GetAllowOrigins() []string {
if x != nil {
return x.AllowOrigins
}
return nil
}
func (x *CORS) GetExposeHeaders() []string {
if x != nil {
return x.ExposeHeaders
}
return nil
}
func (x *CORS) GetMaxAge() *durationpb.Duration {
if x != nil {
return x.MaxAge
}
return nil
}
type DirectResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DirectResponse) Reset() {
*x = DirectResponse{}
mi := &file_resource_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DirectResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DirectResponse) ProtoMessage() {}
func (x *DirectResponse) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[34]
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 DirectResponse.ProtoReflect.Descriptor instead.
func (*DirectResponse) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{34}
}
func (x *DirectResponse) GetStatus() uint32 {
if x != nil {
return x.Status
}
return 0
}
func (x *DirectResponse) GetBody() []byte {
if x != nil {
return x.Body
}
return nil
}
type HeaderModifier struct {
state protoimpl.MessageState `protogen:"open.v1"`
Add []*Header `protobuf:"bytes,1,rep,name=add,proto3" json:"add,omitempty"`
Set []*Header `protobuf:"bytes,2,rep,name=set,proto3" json:"set,omitempty"`
Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HeaderModifier) Reset() {
*x = HeaderModifier{}
mi := &file_resource_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HeaderModifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HeaderModifier) ProtoMessage() {}
func (x *HeaderModifier) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[35]
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 HeaderModifier.ProtoReflect.Descriptor instead.
func (*HeaderModifier) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{35}
}
func (x *HeaderModifier) GetAdd() []*Header {
if x != nil {
return x.Add
}
return nil
}
func (x *HeaderModifier) GetSet() []*Header {
if x != nil {
return x.Set
}
return nil
}
func (x *HeaderModifier) GetRemove() []string {
if x != nil {
return x.Remove
}
return nil
}
type RequestMirrors struct {
state protoimpl.MessageState `protogen:"open.v1"`
Mirrors []*RequestMirrors_Mirror `protobuf:"bytes,1,rep,name=mirrors,proto3" json:"mirrors,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RequestMirrors) Reset() {
*x = RequestMirrors{}
mi := &file_resource_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RequestMirrors) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestMirrors) ProtoMessage() {}
func (x *RequestMirrors) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[36]
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 RequestMirrors.ProtoReflect.Descriptor instead.
func (*RequestMirrors) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{36}
}
func (x *RequestMirrors) GetMirrors() []*RequestMirrors_Mirror {
if x != nil {
return x.Mirrors
}
return nil
}
type RequestRedirect struct {
state protoimpl.MessageState `protogen:"open.v1"`
Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
// Types that are valid to be assigned to Path:
//
// *RequestRedirect_Full
// *RequestRedirect_Prefix
Path isRequestRedirect_Path `protobuf_oneof:"path"`
Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"`
Status uint32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RequestRedirect) Reset() {
*x = RequestRedirect{}
mi := &file_resource_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RequestRedirect) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestRedirect) ProtoMessage() {}
func (x *RequestRedirect) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[37]
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 RequestRedirect.ProtoReflect.Descriptor instead.
func (*RequestRedirect) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{37}
}
func (x *RequestRedirect) GetScheme() string {
if x != nil {
return x.Scheme
}
return ""
}
func (x *RequestRedirect) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *RequestRedirect) GetPath() isRequestRedirect_Path {
if x != nil {
return x.Path
}
return nil
}
func (x *RequestRedirect) GetFull() string {
if x != nil {
if x, ok := x.Path.(*RequestRedirect_Full); ok {
return x.Full
}
}
return ""
}
func (x *RequestRedirect) GetPrefix() string {
if x != nil {
if x, ok := x.Path.(*RequestRedirect_Prefix); ok {
return x.Prefix
}
}
return ""
}
func (x *RequestRedirect) GetPort() uint32 {
if x != nil {
return x.Port
}
return 0
}
func (x *RequestRedirect) GetStatus() uint32 {
if x != nil {
return x.Status
}
return 0
}
type isRequestRedirect_Path interface {
isRequestRedirect_Path()
}
type RequestRedirect_Full struct {
Full string `protobuf:"bytes,3,opt,name=full,proto3,oneof"`
}
type RequestRedirect_Prefix struct {
Prefix string `protobuf:"bytes,4,opt,name=prefix,proto3,oneof"`
}
func (*RequestRedirect_Full) isRequestRedirect_Path() {}
func (*RequestRedirect_Prefix) isRequestRedirect_Path() {}
type UrlRewrite struct {
state protoimpl.MessageState `protogen:"open.v1"`
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// Types that are valid to be assigned to Path:
//
// *UrlRewrite_Full
// *UrlRewrite_Prefix
Path isUrlRewrite_Path `protobuf_oneof:"path"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UrlRewrite) Reset() {
*x = UrlRewrite{}
mi := &file_resource_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UrlRewrite) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UrlRewrite) ProtoMessage() {}
func (x *UrlRewrite) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[38]
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 UrlRewrite.ProtoReflect.Descriptor instead.
func (*UrlRewrite) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{38}
}
func (x *UrlRewrite) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *UrlRewrite) GetPath() isUrlRewrite_Path {
if x != nil {
return x.Path
}
return nil
}
func (x *UrlRewrite) GetFull() string {
if x != nil {
if x, ok := x.Path.(*UrlRewrite_Full); ok {
return x.Full
}
}
return ""
}
func (x *UrlRewrite) GetPrefix() string {
if x != nil {
if x, ok := x.Path.(*UrlRewrite_Prefix); ok {
return x.Prefix
}
}
return ""
}
type isUrlRewrite_Path interface {
isUrlRewrite_Path()
}
type UrlRewrite_Full struct {
Full string `protobuf:"bytes,2,opt,name=full,proto3,oneof"`
}
type UrlRewrite_Prefix struct {
Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3,oneof"`
}
func (*UrlRewrite_Full) isUrlRewrite_Path() {}
func (*UrlRewrite_Prefix) isUrlRewrite_Path() {}
type Header struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Header) Reset() {
*x = Header{}
mi := &file_resource_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Header) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Header) ProtoMessage() {}
func (x *Header) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[39]
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 Header.ProtoReflect.Descriptor instead.
func (*Header) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{39}
}
func (x *Header) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Header) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type RouteBackend struct {
state protoimpl.MessageState `protogen:"open.v1"`
Backend *BackendReference `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"`
Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
BackendPolicies []*BackendPolicySpec `protobuf:"bytes,5,rep,name=backend_policies,json=backendPolicies,proto3" json:"backend_policies,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RouteBackend) Reset() {
*x = RouteBackend{}
mi := &file_resource_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RouteBackend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RouteBackend) ProtoMessage() {}
func (x *RouteBackend) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[40]
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 RouteBackend.ProtoReflect.Descriptor instead.
func (*RouteBackend) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{40}
}
func (x *RouteBackend) GetBackend() *BackendReference {
if x != nil {
return x.Backend
}
return nil
}
func (x *RouteBackend) GetWeight() int32 {
if x != nil {
return x.Weight
}
return 0
}
func (x *RouteBackend) GetBackendPolicies() []*BackendPolicySpec {
if x != nil {
return x.BackendPolicies
}
return nil
}
type PolicyTarget struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *PolicyTarget_Gateway
// *PolicyTarget_Route
// *PolicyTarget_Backend
// *PolicyTarget_Service
Kind isPolicyTarget_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PolicyTarget) Reset() {
*x = PolicyTarget{}
mi := &file_resource_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PolicyTarget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PolicyTarget) ProtoMessage() {}
func (x *PolicyTarget) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[41]
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 PolicyTarget.ProtoReflect.Descriptor instead.
func (*PolicyTarget) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{41}
}
func (x *PolicyTarget) GetKind() isPolicyTarget_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *PolicyTarget) GetGateway() *PolicyTarget_GatewayTarget {
if x != nil {
if x, ok := x.Kind.(*PolicyTarget_Gateway); ok {
return x.Gateway
}
}
return nil
}
func (x *PolicyTarget) GetRoute() *PolicyTarget_RouteTarget {
if x != nil {
if x, ok := x.Kind.(*PolicyTarget_Route); ok {
return x.Route
}
}
return nil
}
func (x *PolicyTarget) GetBackend() *PolicyTarget_BackendTarget {
if x != nil {
if x, ok := x.Kind.(*PolicyTarget_Backend); ok {
return x.Backend
}
}
return nil
}
func (x *PolicyTarget) GetService() *PolicyTarget_ServiceTarget {
if x != nil {
if x, ok := x.Kind.(*PolicyTarget_Service); ok {
return x.Service
}
}
return nil
}
type isPolicyTarget_Kind interface {
isPolicyTarget_Kind()
}
type PolicyTarget_Gateway struct {
Gateway *PolicyTarget_GatewayTarget `protobuf:"bytes,1,opt,name=gateway,proto3,oneof"`
}
type PolicyTarget_Route struct {
Route *PolicyTarget_RouteTarget `protobuf:"bytes,2,opt,name=route,proto3,oneof"`
}
type PolicyTarget_Backend struct {
Backend *PolicyTarget_BackendTarget `protobuf:"bytes,3,opt,name=backend,proto3,oneof"`
}
type PolicyTarget_Service struct {
Service *PolicyTarget_ServiceTarget `protobuf:"bytes,4,opt,name=service,proto3,oneof"`
}
func (*PolicyTarget_Gateway) isPolicyTarget_Kind() {}
func (*PolicyTarget_Route) isPolicyTarget_Kind() {}
func (*PolicyTarget_Backend) isPolicyTarget_Kind() {}
func (*PolicyTarget_Service) isPolicyTarget_Kind() {}
type KeepaliveConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Time before sending keepalive probes
Time *durationpb.Duration `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// Interval between keepalive probes
Interval *durationpb.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
// Number of keepalive retries before giving up
Retries *uint32 `protobuf:"varint,3,opt,name=retries,proto3,oneof" json:"retries,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *KeepaliveConfig) Reset() {
*x = KeepaliveConfig{}
mi := &file_resource_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *KeepaliveConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*KeepaliveConfig) ProtoMessage() {}
func (x *KeepaliveConfig) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[42]
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 KeepaliveConfig.ProtoReflect.Descriptor instead.
func (*KeepaliveConfig) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{42}
}
func (x *KeepaliveConfig) GetTime() *durationpb.Duration {
if x != nil {
return x.Time
}
return nil
}
func (x *KeepaliveConfig) GetInterval() *durationpb.Duration {
if x != nil {
return x.Interval
}
return nil
}
func (x *KeepaliveConfig) GetRetries() uint32 {
if x != nil && x.Retries != nil {
return *x.Retries
}
return 0
}
type FrontendPolicySpec struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *FrontendPolicySpec_Tcp
// *FrontendPolicySpec_Tls
// *FrontendPolicySpec_Http
// *FrontendPolicySpec_Logging_
// *FrontendPolicySpec_Tracing_
// *FrontendPolicySpec_NetworkAuthorization_
Kind isFrontendPolicySpec_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec) Reset() {
*x = FrontendPolicySpec{}
mi := &file_resource_proto_msgTypes[43]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec) ProtoMessage() {}
func (x *FrontendPolicySpec) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[43]
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 FrontendPolicySpec.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43}
}
func (x *FrontendPolicySpec) GetKind() isFrontendPolicySpec_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *FrontendPolicySpec) GetTcp() *FrontendPolicySpec_TCP {
if x != nil {
if x, ok := x.Kind.(*FrontendPolicySpec_Tcp); ok {
return x.Tcp
}
}
return nil
}
func (x *FrontendPolicySpec) GetTls() *FrontendPolicySpec_TLS {
if x != nil {
if x, ok := x.Kind.(*FrontendPolicySpec_Tls); ok {
return x.Tls
}
}
return nil
}
func (x *FrontendPolicySpec) GetHttp() *FrontendPolicySpec_HTTP {
if x != nil {
if x, ok := x.Kind.(*FrontendPolicySpec_Http); ok {
return x.Http
}
}
return nil
}
func (x *FrontendPolicySpec) GetLogging() *FrontendPolicySpec_Logging {
if x != nil {
if x, ok := x.Kind.(*FrontendPolicySpec_Logging_); ok {
return x.Logging
}
}
return nil
}
func (x *FrontendPolicySpec) GetTracing() *FrontendPolicySpec_Tracing {
if x != nil {
if x, ok := x.Kind.(*FrontendPolicySpec_Tracing_); ok {
return x.Tracing
}
}
return nil
}
func (x *FrontendPolicySpec) GetNetworkAuthorization() *FrontendPolicySpec_NetworkAuthorization {
if x != nil {
if x, ok := x.Kind.(*FrontendPolicySpec_NetworkAuthorization_); ok {
return x.NetworkAuthorization
}
}
return nil
}
type isFrontendPolicySpec_Kind interface {
isFrontendPolicySpec_Kind()
}
type FrontendPolicySpec_Tcp struct {
Tcp *FrontendPolicySpec_TCP `protobuf:"bytes,1,opt,name=tcp,proto3,oneof"`
}
type FrontendPolicySpec_Tls struct {
Tls *FrontendPolicySpec_TLS `protobuf:"bytes,2,opt,name=tls,proto3,oneof"`
}
type FrontendPolicySpec_Http struct {
Http *FrontendPolicySpec_HTTP `protobuf:"bytes,3,opt,name=http,proto3,oneof"`
}
type FrontendPolicySpec_Logging_ struct {
Logging *FrontendPolicySpec_Logging `protobuf:"bytes,4,opt,name=logging,proto3,oneof"`
}
type FrontendPolicySpec_Tracing_ struct {
Tracing *FrontendPolicySpec_Tracing `protobuf:"bytes,5,opt,name=tracing,proto3,oneof"`
}
type FrontendPolicySpec_NetworkAuthorization_ struct {
NetworkAuthorization *FrontendPolicySpec_NetworkAuthorization `protobuf:"bytes,6,opt,name=network_authorization,json=networkAuthorization,proto3,oneof"`
}
func (*FrontendPolicySpec_Tcp) isFrontendPolicySpec_Kind() {}
func (*FrontendPolicySpec_Tls) isFrontendPolicySpec_Kind() {}
func (*FrontendPolicySpec_Http) isFrontendPolicySpec_Kind() {}
func (*FrontendPolicySpec_Logging_) isFrontendPolicySpec_Kind() {}
func (*FrontendPolicySpec_Tracing_) isFrontendPolicySpec_Kind() {}
func (*FrontendPolicySpec_NetworkAuthorization_) isFrontendPolicySpec_Kind() {}
// JWT validation options controlling which claims must be present in a token.
// Recognized values: "exp", "nbf", "aud", "iss", "sub".
// Claims present in the token are still validated even if not listed as required.
type JWTValidationOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Claims that must be present in the token before validation.
// Defaults to ["exp"]. Use an empty list to require no claims.
RequiredClaims []string `protobuf:"bytes,1,rep,name=required_claims,json=requiredClaims,proto3" json:"required_claims,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *JWTValidationOptions) Reset() {
*x = JWTValidationOptions{}
mi := &file_resource_proto_msgTypes[44]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *JWTValidationOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*JWTValidationOptions) ProtoMessage() {}
func (x *JWTValidationOptions) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[44]
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 JWTValidationOptions.ProtoReflect.Descriptor instead.
func (*JWTValidationOptions) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{44}
}
func (x *JWTValidationOptions) GetRequiredClaims() []string {
if x != nil {
return x.RequiredClaims
}
return nil
}
type TrafficPolicySpec struct {
state protoimpl.MessageState `protogen:"open.v1"`
Phase TrafficPolicySpec_PolicyPhase `protobuf:"varint,1,opt,name=phase,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_PolicyPhase" json:"phase,omitempty"`
// Types that are valid to be assigned to Kind:
//
// *TrafficPolicySpec_Timeout
// *TrafficPolicySpec_Retry
// *TrafficPolicySpec_LocalRateLimit_
// *TrafficPolicySpec_ExtAuthz
// *TrafficPolicySpec_Authorization
// *TrafficPolicySpec_Jwt
// *TrafficPolicySpec_Transformation
// *TrafficPolicySpec_RemoteRateLimit_
// *TrafficPolicySpec_Csrf
// *TrafficPolicySpec_ExtProc_
// *TrafficPolicySpec_RequestHeaderModifier
// *TrafficPolicySpec_ResponseHeaderModifier
// *TrafficPolicySpec_RequestRedirect
// *TrafficPolicySpec_UrlRewrite
// *TrafficPolicySpec_RequestMirror
// *TrafficPolicySpec_DirectResponse
// *TrafficPolicySpec_Cors
// *TrafficPolicySpec_BasicAuth
// *TrafficPolicySpec_ApiKeyAuth
// *TrafficPolicySpec_HostRewrite_
Kind isTrafficPolicySpec_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec) Reset() {
*x = TrafficPolicySpec{}
mi := &file_resource_proto_msgTypes[45]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec) ProtoMessage() {}
func (x *TrafficPolicySpec) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[45]
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 TrafficPolicySpec.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45}
}
func (x *TrafficPolicySpec) GetPhase() TrafficPolicySpec_PolicyPhase {
if x != nil {
return x.Phase
}
return TrafficPolicySpec_ROUTE
}
func (x *TrafficPolicySpec) GetKind() isTrafficPolicySpec_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *TrafficPolicySpec) GetTimeout() *Timeout {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_Timeout); ok {
return x.Timeout
}
}
return nil
}
func (x *TrafficPolicySpec) GetRetry() *Retry {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_Retry); ok {
return x.Retry
}
}
return nil
}
func (x *TrafficPolicySpec) GetLocalRateLimit() *TrafficPolicySpec_LocalRateLimit {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_LocalRateLimit_); ok {
return x.LocalRateLimit
}
}
return nil
}
func (x *TrafficPolicySpec) GetExtAuthz() *TrafficPolicySpec_ExternalAuth {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_ExtAuthz); ok {
return x.ExtAuthz
}
}
return nil
}
func (x *TrafficPolicySpec) GetAuthorization() *TrafficPolicySpec_RBAC {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_Authorization); ok {
return x.Authorization
}
}
return nil
}
func (x *TrafficPolicySpec) GetJwt() *TrafficPolicySpec_JWT {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_Jwt); ok {
return x.Jwt
}
}
return nil
}
func (x *TrafficPolicySpec) GetTransformation() *TrafficPolicySpec_TransformationPolicy {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_Transformation); ok {
return x.Transformation
}
}
return nil
}
func (x *TrafficPolicySpec) GetRemoteRateLimit() *TrafficPolicySpec_RemoteRateLimit {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_RemoteRateLimit_); ok {
return x.RemoteRateLimit
}
}
return nil
}
func (x *TrafficPolicySpec) GetCsrf() *TrafficPolicySpec_CSRF {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_Csrf); ok {
return x.Csrf
}
}
return nil
}
func (x *TrafficPolicySpec) GetExtProc() *TrafficPolicySpec_ExtProc {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_ExtProc_); ok {
return x.ExtProc
}
}
return nil
}
func (x *TrafficPolicySpec) GetRequestHeaderModifier() *HeaderModifier {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_RequestHeaderModifier); ok {
return x.RequestHeaderModifier
}
}
return nil
}
func (x *TrafficPolicySpec) GetResponseHeaderModifier() *HeaderModifier {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_ResponseHeaderModifier); ok {
return x.ResponseHeaderModifier
}
}
return nil
}
func (x *TrafficPolicySpec) GetRequestRedirect() *RequestRedirect {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_RequestRedirect); ok {
return x.RequestRedirect
}
}
return nil
}
func (x *TrafficPolicySpec) GetUrlRewrite() *UrlRewrite {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_UrlRewrite); ok {
return x.UrlRewrite
}
}
return nil
}
func (x *TrafficPolicySpec) GetRequestMirror() *RequestMirrors {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_RequestMirror); ok {
return x.RequestMirror
}
}
return nil
}
func (x *TrafficPolicySpec) GetDirectResponse() *DirectResponse {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_DirectResponse); ok {
return x.DirectResponse
}
}
return nil
}
func (x *TrafficPolicySpec) GetCors() *CORS {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_Cors); ok {
return x.Cors
}
}
return nil
}
func (x *TrafficPolicySpec) GetBasicAuth() *TrafficPolicySpec_BasicAuthentication {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_BasicAuth); ok {
return x.BasicAuth
}
}
return nil
}
func (x *TrafficPolicySpec) GetApiKeyAuth() *TrafficPolicySpec_APIKey {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_ApiKeyAuth); ok {
return x.ApiKeyAuth
}
}
return nil
}
func (x *TrafficPolicySpec) GetHostRewrite() *TrafficPolicySpec_HostRewrite {
if x != nil {
if x, ok := x.Kind.(*TrafficPolicySpec_HostRewrite_); ok {
return x.HostRewrite
}
}
return nil
}
type isTrafficPolicySpec_Kind interface {
isTrafficPolicySpec_Kind()
}
type TrafficPolicySpec_Timeout struct {
Timeout *Timeout `protobuf:"bytes,2,opt,name=timeout,proto3,oneof"`
}
type TrafficPolicySpec_Retry struct {
Retry *Retry `protobuf:"bytes,3,opt,name=retry,proto3,oneof"`
}
type TrafficPolicySpec_LocalRateLimit_ struct {
LocalRateLimit *TrafficPolicySpec_LocalRateLimit `protobuf:"bytes,4,opt,name=local_rate_limit,json=localRateLimit,proto3,oneof"`
}
type TrafficPolicySpec_ExtAuthz struct {
ExtAuthz *TrafficPolicySpec_ExternalAuth `protobuf:"bytes,5,opt,name=ext_authz,json=extAuthz,proto3,oneof"`
}
type TrafficPolicySpec_Authorization struct {
Authorization *TrafficPolicySpec_RBAC `protobuf:"bytes,6,opt,name=authorization,proto3,oneof"`
}
type TrafficPolicySpec_Jwt struct {
Jwt *TrafficPolicySpec_JWT `protobuf:"bytes,7,opt,name=jwt,proto3,oneof"`
}
type TrafficPolicySpec_Transformation struct {
Transformation *TrafficPolicySpec_TransformationPolicy `protobuf:"bytes,8,opt,name=transformation,proto3,oneof"`
}
type TrafficPolicySpec_RemoteRateLimit_ struct {
RemoteRateLimit *TrafficPolicySpec_RemoteRateLimit `protobuf:"bytes,9,opt,name=remote_rate_limit,json=remoteRateLimit,proto3,oneof"`
}
type TrafficPolicySpec_Csrf struct {
Csrf *TrafficPolicySpec_CSRF `protobuf:"bytes,10,opt,name=csrf,proto3,oneof"`
}
type TrafficPolicySpec_ExtProc_ struct {
ExtProc *TrafficPolicySpec_ExtProc `protobuf:"bytes,11,opt,name=ext_proc,json=extProc,proto3,oneof"`
}
type TrafficPolicySpec_RequestHeaderModifier struct {
RequestHeaderModifier *HeaderModifier `protobuf:"bytes,12,opt,name=request_header_modifier,json=requestHeaderModifier,proto3,oneof"`
}
type TrafficPolicySpec_ResponseHeaderModifier struct {
ResponseHeaderModifier *HeaderModifier `protobuf:"bytes,13,opt,name=response_header_modifier,json=responseHeaderModifier,proto3,oneof"`
}
type TrafficPolicySpec_RequestRedirect struct {
RequestRedirect *RequestRedirect `protobuf:"bytes,14,opt,name=request_redirect,json=requestRedirect,proto3,oneof"`
}
type TrafficPolicySpec_UrlRewrite struct {
UrlRewrite *UrlRewrite `protobuf:"bytes,15,opt,name=url_rewrite,json=urlRewrite,proto3,oneof"`
}
type TrafficPolicySpec_RequestMirror struct {
RequestMirror *RequestMirrors `protobuf:"bytes,16,opt,name=request_mirror,json=requestMirror,proto3,oneof"`
}
type TrafficPolicySpec_DirectResponse struct {
DirectResponse *DirectResponse `protobuf:"bytes,17,opt,name=direct_response,json=directResponse,proto3,oneof"`
}
type TrafficPolicySpec_Cors struct {
Cors *CORS `protobuf:"bytes,18,opt,name=cors,proto3,oneof"`
}
type TrafficPolicySpec_BasicAuth struct {
BasicAuth *TrafficPolicySpec_BasicAuthentication `protobuf:"bytes,19,opt,name=basic_auth,json=basicAuth,proto3,oneof"`
}
type TrafficPolicySpec_ApiKeyAuth struct {
ApiKeyAuth *TrafficPolicySpec_APIKey `protobuf:"bytes,20,opt,name=api_key_auth,json=apiKeyAuth,proto3,oneof"`
}
type TrafficPolicySpec_HostRewrite_ struct {
HostRewrite *TrafficPolicySpec_HostRewrite `protobuf:"bytes,21,opt,name=host_rewrite,json=hostRewrite,proto3,oneof"`
}
func (*TrafficPolicySpec_Timeout) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_Retry) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_LocalRateLimit_) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_ExtAuthz) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_Authorization) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_Jwt) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_Transformation) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_RemoteRateLimit_) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_Csrf) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_ExtProc_) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_RequestHeaderModifier) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_ResponseHeaderModifier) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_RequestRedirect) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_UrlRewrite) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_RequestMirror) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_DirectResponse) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_Cors) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_BasicAuth) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_ApiKeyAuth) isTrafficPolicySpec_Kind() {}
func (*TrafficPolicySpec_HostRewrite_) isTrafficPolicySpec_Kind() {}
type BackendPolicySpec struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *BackendPolicySpec_A2A_
// *BackendPolicySpec_InferenceRouting_
// *BackendPolicySpec_BackendTls
// *BackendPolicySpec_Auth
// *BackendPolicySpec_McpAuthorization_
// *BackendPolicySpec_McpAuthentication_
// *BackendPolicySpec_Ai_
// *BackendPolicySpec_RequestHeaderModifier
// *BackendPolicySpec_ResponseHeaderModifier
// *BackendPolicySpec_RequestRedirect
// *BackendPolicySpec_RequestMirror
// *BackendPolicySpec_BackendHttp
// *BackendPolicySpec_BackendTcp
// *BackendPolicySpec_Transformation
// *BackendPolicySpec_Health_
// *BackendPolicySpec_BackendTunnel_
Kind isBackendPolicySpec_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec) Reset() {
*x = BackendPolicySpec{}
mi := &file_resource_proto_msgTypes[46]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec) ProtoMessage() {}
func (x *BackendPolicySpec) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[46]
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 BackendPolicySpec.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46}
}
func (x *BackendPolicySpec) GetKind() isBackendPolicySpec_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *BackendPolicySpec) GetA2A() *BackendPolicySpec_A2A {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_A2A_); ok {
return x.A2A
}
}
return nil
}
func (x *BackendPolicySpec) GetInferenceRouting() *BackendPolicySpec_InferenceRouting {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_InferenceRouting_); ok {
return x.InferenceRouting
}
}
return nil
}
func (x *BackendPolicySpec) GetBackendTls() *BackendPolicySpec_BackendTLS {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_BackendTls); ok {
return x.BackendTls
}
}
return nil
}
func (x *BackendPolicySpec) GetAuth() *BackendAuthPolicy {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Auth); ok {
return x.Auth
}
}
return nil
}
func (x *BackendPolicySpec) GetMcpAuthorization() *BackendPolicySpec_McpAuthorization {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_McpAuthorization_); ok {
return x.McpAuthorization
}
}
return nil
}
func (x *BackendPolicySpec) GetMcpAuthentication() *BackendPolicySpec_McpAuthentication {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_McpAuthentication_); ok {
return x.McpAuthentication
}
}
return nil
}
func (x *BackendPolicySpec) GetAi() *BackendPolicySpec_Ai {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_); ok {
return x.Ai
}
}
return nil
}
func (x *BackendPolicySpec) GetRequestHeaderModifier() *HeaderModifier {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_RequestHeaderModifier); ok {
return x.RequestHeaderModifier
}
}
return nil
}
func (x *BackendPolicySpec) GetResponseHeaderModifier() *HeaderModifier {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_ResponseHeaderModifier); ok {
return x.ResponseHeaderModifier
}
}
return nil
}
func (x *BackendPolicySpec) GetRequestRedirect() *RequestRedirect {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_RequestRedirect); ok {
return x.RequestRedirect
}
}
return nil
}
func (x *BackendPolicySpec) GetRequestMirror() *RequestMirrors {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_RequestMirror); ok {
return x.RequestMirror
}
}
return nil
}
func (x *BackendPolicySpec) GetBackendHttp() *BackendPolicySpec_BackendHTTP {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_BackendHttp); ok {
return x.BackendHttp
}
}
return nil
}
func (x *BackendPolicySpec) GetBackendTcp() *BackendPolicySpec_BackendTCP {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_BackendTcp); ok {
return x.BackendTcp
}
}
return nil
}
func (x *BackendPolicySpec) GetTransformation() *TrafficPolicySpec_TransformationPolicy {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Transformation); ok {
return x.Transformation
}
}
return nil
}
func (x *BackendPolicySpec) GetHealth() *BackendPolicySpec_Health {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Health_); ok {
return x.Health
}
}
return nil
}
func (x *BackendPolicySpec) GetBackendTunnel() *BackendPolicySpec_BackendTunnel {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_BackendTunnel_); ok {
return x.BackendTunnel
}
}
return nil
}
type isBackendPolicySpec_Kind interface {
isBackendPolicySpec_Kind()
}
type BackendPolicySpec_A2A_ struct {
A2A *BackendPolicySpec_A2A `protobuf:"bytes,1,opt,name=a2a,proto3,oneof"`
}
type BackendPolicySpec_InferenceRouting_ struct {
InferenceRouting *BackendPolicySpec_InferenceRouting `protobuf:"bytes,2,opt,name=inference_routing,json=inferenceRouting,proto3,oneof"`
}
type BackendPolicySpec_BackendTls struct {
BackendTls *BackendPolicySpec_BackendTLS `protobuf:"bytes,3,opt,name=backend_tls,json=backendTls,proto3,oneof"`
}
type BackendPolicySpec_Auth struct {
Auth *BackendAuthPolicy `protobuf:"bytes,4,opt,name=auth,proto3,oneof"`
}
type BackendPolicySpec_McpAuthorization_ struct {
McpAuthorization *BackendPolicySpec_McpAuthorization `protobuf:"bytes,5,opt,name=mcp_authorization,json=mcpAuthorization,proto3,oneof"`
}
type BackendPolicySpec_McpAuthentication_ struct {
McpAuthentication *BackendPolicySpec_McpAuthentication `protobuf:"bytes,6,opt,name=mcp_authentication,json=mcpAuthentication,proto3,oneof"`
}
type BackendPolicySpec_Ai_ struct {
Ai *BackendPolicySpec_Ai `protobuf:"bytes,7,opt,name=ai,proto3,oneof"`
}
type BackendPolicySpec_RequestHeaderModifier struct {
RequestHeaderModifier *HeaderModifier `protobuf:"bytes,8,opt,name=request_header_modifier,json=requestHeaderModifier,proto3,oneof"`
}
type BackendPolicySpec_ResponseHeaderModifier struct {
ResponseHeaderModifier *HeaderModifier `protobuf:"bytes,9,opt,name=response_header_modifier,json=responseHeaderModifier,proto3,oneof"`
}
type BackendPolicySpec_RequestRedirect struct {
RequestRedirect *RequestRedirect `protobuf:"bytes,10,opt,name=request_redirect,json=requestRedirect,proto3,oneof"`
}
type BackendPolicySpec_RequestMirror struct {
RequestMirror *RequestMirrors `protobuf:"bytes,11,opt,name=request_mirror,json=requestMirror,proto3,oneof"`
}
type BackendPolicySpec_BackendHttp struct {
BackendHttp *BackendPolicySpec_BackendHTTP `protobuf:"bytes,12,opt,name=backend_http,json=backendHttp,proto3,oneof"`
}
type BackendPolicySpec_BackendTcp struct {
BackendTcp *BackendPolicySpec_BackendTCP `protobuf:"bytes,13,opt,name=backend_tcp,json=backendTcp,proto3,oneof"`
}
type BackendPolicySpec_Transformation struct {
Transformation *TrafficPolicySpec_TransformationPolicy `protobuf:"bytes,14,opt,name=transformation,proto3,oneof"`
}
type BackendPolicySpec_Health_ struct {
Health *BackendPolicySpec_Health `protobuf:"bytes,15,opt,name=health,proto3,oneof"`
}
type BackendPolicySpec_BackendTunnel_ struct {
BackendTunnel *BackendPolicySpec_BackendTunnel `protobuf:"bytes,16,opt,name=backend_tunnel,json=backendTunnel,proto3,oneof"`
}
func (*BackendPolicySpec_A2A_) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_InferenceRouting_) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_BackendTls) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_Auth) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_McpAuthorization_) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_McpAuthentication_) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_Ai_) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_RequestHeaderModifier) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_ResponseHeaderModifier) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_RequestRedirect) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_RequestMirror) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_BackendHttp) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_BackendTcp) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_Transformation) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_Health_) isBackendPolicySpec_Kind() {}
func (*BackendPolicySpec_BackendTunnel_) isBackendPolicySpec_Kind() {}
type StaticBackend struct {
state protoimpl.MessageState `protogen:"open.v1"`
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StaticBackend) Reset() {
*x = StaticBackend{}
mi := &file_resource_proto_msgTypes[47]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StaticBackend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StaticBackend) ProtoMessage() {}
func (x *StaticBackend) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[47]
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 StaticBackend.ProtoReflect.Descriptor instead.
func (*StaticBackend) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{47}
}
func (x *StaticBackend) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *StaticBackend) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
type DynamicForwardProxy struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DynamicForwardProxy) Reset() {
*x = DynamicForwardProxy{}
mi := &file_resource_proto_msgTypes[48]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DynamicForwardProxy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DynamicForwardProxy) ProtoMessage() {}
func (x *DynamicForwardProxy) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[48]
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 DynamicForwardProxy.ProtoReflect.Descriptor instead.
func (*DynamicForwardProxy) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{48}
}
type AwsBackend struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Service:
//
// *AwsBackend_AgentCore
Service isAwsBackend_Service `protobuf_oneof:"service"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AwsBackend) Reset() {
*x = AwsBackend{}
mi := &file_resource_proto_msgTypes[49]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AwsBackend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AwsBackend) ProtoMessage() {}
func (x *AwsBackend) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[49]
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 AwsBackend.ProtoReflect.Descriptor instead.
func (*AwsBackend) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{49}
}
func (x *AwsBackend) GetService() isAwsBackend_Service {
if x != nil {
return x.Service
}
return nil
}
func (x *AwsBackend) GetAgentCore() *AwsAgentCoreBackend {
if x != nil {
if x, ok := x.Service.(*AwsBackend_AgentCore); ok {
return x.AgentCore
}
}
return nil
}
type isAwsBackend_Service interface {
isAwsBackend_Service()
}
type AwsBackend_AgentCore struct {
AgentCore *AwsAgentCoreBackend `protobuf:"bytes,1,opt,name=agent_core,json=agentCore,proto3,oneof"`
}
func (*AwsBackend_AgentCore) isAwsBackend_Service() {}
type AwsAgentCoreBackend struct {
state protoimpl.MessageState `protogen:"open.v1"`
AgentRuntimeArn string `protobuf:"bytes,1,opt,name=agent_runtime_arn,json=agentRuntimeArn,proto3" json:"agent_runtime_arn,omitempty"`
Qualifier *string `protobuf:"bytes,2,opt,name=qualifier,proto3,oneof" json:"qualifier,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AwsAgentCoreBackend) Reset() {
*x = AwsAgentCoreBackend{}
mi := &file_resource_proto_msgTypes[50]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AwsAgentCoreBackend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AwsAgentCoreBackend) ProtoMessage() {}
func (x *AwsAgentCoreBackend) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[50]
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 AwsAgentCoreBackend.ProtoReflect.Descriptor instead.
func (*AwsAgentCoreBackend) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{50}
}
func (x *AwsAgentCoreBackend) GetAgentRuntimeArn() string {
if x != nil {
return x.AgentRuntimeArn
}
return ""
}
func (x *AwsAgentCoreBackend) GetQualifier() string {
if x != nil && x.Qualifier != nil {
return *x.Qualifier
}
return ""
}
type AIBackend struct {
state protoimpl.MessageState `protogen:"open.v1"`
ProviderGroups []*AIBackend_ProviderGroup `protobuf:"bytes,1,rep,name=provider_groups,json=providerGroups,proto3" json:"provider_groups,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend) Reset() {
*x = AIBackend{}
mi := &file_resource_proto_msgTypes[51]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend) ProtoMessage() {}
func (x *AIBackend) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[51]
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 AIBackend.ProtoReflect.Descriptor instead.
func (*AIBackend) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51}
}
func (x *AIBackend) GetProviderGroups() []*AIBackend_ProviderGroup {
if x != nil {
return x.ProviderGroups
}
return nil
}
type MCPBackend struct {
state protoimpl.MessageState `protogen:"open.v1"`
Targets []*MCPTarget `protobuf:"bytes,2,rep,name=targets,proto3" json:"targets,omitempty"`
// Whether or not this backend should serve stateful MCP connections.
// We set this at the backend level because it would be illegal/nonsensical
// to mix stateful and stateless targets in the same backend.
StatefulMode MCPBackend_StatefulMode `protobuf:"varint,3,opt,name=stateful_mode,json=statefulMode,proto3,enum=agentgateway.dev.resource.MCPBackend_StatefulMode" json:"stateful_mode,omitempty"`
// Whether to always prefix the tool name using the target name
PrefixMode MCPBackend_PrefixMode `protobuf:"varint,4,opt,name=prefix_mode,json=prefixMode,proto3,enum=agentgateway.dev.resource.MCPBackend_PrefixMode" json:"prefix_mode,omitempty"`
FailureMode MCPBackend_FailureMode `protobuf:"varint,5,opt,name=failure_mode,json=failureMode,proto3,enum=agentgateway.dev.resource.MCPBackend_FailureMode" json:"failure_mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MCPBackend) Reset() {
*x = MCPBackend{}
mi := &file_resource_proto_msgTypes[52]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MCPBackend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MCPBackend) ProtoMessage() {}
func (x *MCPBackend) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[52]
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 MCPBackend.ProtoReflect.Descriptor instead.
func (*MCPBackend) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{52}
}
func (x *MCPBackend) GetTargets() []*MCPTarget {
if x != nil {
return x.Targets
}
return nil
}
func (x *MCPBackend) GetStatefulMode() MCPBackend_StatefulMode {
if x != nil {
return x.StatefulMode
}
return MCPBackend_STATEFUL
}
func (x *MCPBackend) GetPrefixMode() MCPBackend_PrefixMode {
if x != nil {
return x.PrefixMode
}
return MCPBackend_CONDITIONAL
}
func (x *MCPBackend) GetFailureMode() MCPBackend_FailureMode {
if x != nil {
return x.FailureMode
}
return MCPBackend_FAIL_CLOSED
}
type MCPTarget struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Backend *BackendReference `protobuf:"bytes,2,opt,name=backend,proto3" json:"backend,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
Protocol MCPTarget_Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=agentgateway.dev.resource.MCPTarget_Protocol" json:"protocol,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MCPTarget) Reset() {
*x = MCPTarget{}
mi := &file_resource_proto_msgTypes[53]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MCPTarget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MCPTarget) ProtoMessage() {}
func (x *MCPTarget) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[53]
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 MCPTarget.ProtoReflect.Descriptor instead.
func (*MCPTarget) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{53}
}
func (x *MCPTarget) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *MCPTarget) GetBackend() *BackendReference {
if x != nil {
return x.Backend
}
return nil
}
func (x *MCPTarget) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *MCPTarget) GetProtocol() MCPTarget_Protocol {
if x != nil {
return x.Protocol
}
return MCPTarget_UNDEFINED
}
type BackendReference struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *BackendReference_Service_
// *BackendReference_Backend
Kind isBackendReference_Kind `protobuf_oneof:"kind"`
// Port, used only with 'service' type
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendReference) Reset() {
*x = BackendReference{}
mi := &file_resource_proto_msgTypes[54]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendReference) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendReference) ProtoMessage() {}
func (x *BackendReference) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[54]
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 BackendReference.ProtoReflect.Descriptor instead.
func (*BackendReference) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{54}
}
func (x *BackendReference) GetKind() isBackendReference_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *BackendReference) GetService() *BackendReference_Service {
if x != nil {
if x, ok := x.Kind.(*BackendReference_Service_); ok {
return x.Service
}
}
return nil
}
func (x *BackendReference) GetBackend() string {
if x != nil {
if x, ok := x.Kind.(*BackendReference_Backend); ok {
return x.Backend
}
}
return ""
}
func (x *BackendReference) GetPort() uint32 {
if x != nil {
return x.Port
}
return 0
}
type isBackendReference_Kind interface {
isBackendReference_Kind()
}
type BackendReference_Service_ struct {
Service *BackendReference_Service `protobuf:"bytes,1,opt,name=service,proto3,oneof"`
}
type BackendReference_Backend struct {
// A Backend object. The format is "<backend key>"
Backend string `protobuf:"bytes,2,opt,name=backend,proto3,oneof"`
}
func (*BackendReference_Service_) isBackendReference_Kind() {}
func (*BackendReference_Backend) isBackendReference_Kind() {}
type Alpn struct {
state protoimpl.MessageState `protogen:"open.v1"`
Protocols []string `protobuf:"bytes,1,rep,name=protocols,proto3" json:"protocols,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Alpn) Reset() {
*x = Alpn{}
mi := &file_resource_proto_msgTypes[55]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Alpn) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Alpn) ProtoMessage() {}
func (x *Alpn) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[55]
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 Alpn.ProtoReflect.Descriptor instead.
func (*Alpn) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{55}
}
func (x *Alpn) GetProtocols() []string {
if x != nil {
return x.Protocols
}
return nil
}
type Gcp_AccessToken struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Gcp_AccessToken) Reset() {
*x = Gcp_AccessToken{}
mi := &file_resource_proto_msgTypes[56]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Gcp_AccessToken) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Gcp_AccessToken) ProtoMessage() {}
func (x *Gcp_AccessToken) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[56]
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 Gcp_AccessToken.ProtoReflect.Descriptor instead.
func (*Gcp_AccessToken) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{17, 0}
}
type Gcp_IdToken struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Optional; else will use the backend hostname
Audience *string `protobuf:"bytes,1,opt,name=audience,proto3,oneof" json:"audience,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Gcp_IdToken) Reset() {
*x = Gcp_IdToken{}
mi := &file_resource_proto_msgTypes[57]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Gcp_IdToken) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Gcp_IdToken) ProtoMessage() {}
func (x *Gcp_IdToken) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[57]
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 Gcp_IdToken.ProtoReflect.Descriptor instead.
func (*Gcp_IdToken) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{17, 1}
}
func (x *Gcp_IdToken) GetAudience() string {
if x != nil && x.Audience != nil {
return *x.Audience
}
return ""
}
type AzureManagedIdentityCredential_UserAssignedIdentity struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Id:
//
// *AzureManagedIdentityCredential_UserAssignedIdentity_ClientId
// *AzureManagedIdentityCredential_UserAssignedIdentity_ObjectId
// *AzureManagedIdentityCredential_UserAssignedIdentity_ResourceId
Id isAzureManagedIdentityCredential_UserAssignedIdentity_Id `protobuf_oneof:"id"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AzureManagedIdentityCredential_UserAssignedIdentity) Reset() {
*x = AzureManagedIdentityCredential_UserAssignedIdentity{}
mi := &file_resource_proto_msgTypes[58]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AzureManagedIdentityCredential_UserAssignedIdentity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureManagedIdentityCredential_UserAssignedIdentity) ProtoMessage() {}
func (x *AzureManagedIdentityCredential_UserAssignedIdentity) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[58]
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 AzureManagedIdentityCredential_UserAssignedIdentity.ProtoReflect.Descriptor instead.
func (*AzureManagedIdentityCredential_UserAssignedIdentity) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{24, 0}
}
func (x *AzureManagedIdentityCredential_UserAssignedIdentity) GetId() isAzureManagedIdentityCredential_UserAssignedIdentity_Id {
if x != nil {
return x.Id
}
return nil
}
func (x *AzureManagedIdentityCredential_UserAssignedIdentity) GetClientId() string {
if x != nil {
if x, ok := x.Id.(*AzureManagedIdentityCredential_UserAssignedIdentity_ClientId); ok {
return x.ClientId
}
}
return ""
}
func (x *AzureManagedIdentityCredential_UserAssignedIdentity) GetObjectId() string {
if x != nil {
if x, ok := x.Id.(*AzureManagedIdentityCredential_UserAssignedIdentity_ObjectId); ok {
return x.ObjectId
}
}
return ""
}
func (x *AzureManagedIdentityCredential_UserAssignedIdentity) GetResourceId() string {
if x != nil {
if x, ok := x.Id.(*AzureManagedIdentityCredential_UserAssignedIdentity_ResourceId); ok {
return x.ResourceId
}
}
return ""
}
type isAzureManagedIdentityCredential_UserAssignedIdentity_Id interface {
isAzureManagedIdentityCredential_UserAssignedIdentity_Id()
}
type AzureManagedIdentityCredential_UserAssignedIdentity_ClientId struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3,oneof"`
}
type AzureManagedIdentityCredential_UserAssignedIdentity_ObjectId struct {
ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3,oneof"`
}
type AzureManagedIdentityCredential_UserAssignedIdentity_ResourceId struct {
ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"`
}
func (*AzureManagedIdentityCredential_UserAssignedIdentity_ClientId) isAzureManagedIdentityCredential_UserAssignedIdentity_Id() {
}
func (*AzureManagedIdentityCredential_UserAssignedIdentity_ObjectId) isAzureManagedIdentityCredential_UserAssignedIdentity_Id() {
}
func (*AzureManagedIdentityCredential_UserAssignedIdentity_ResourceId) isAzureManagedIdentityCredential_UserAssignedIdentity_Id() {
}
type RequestMirrors_Mirror struct {
state protoimpl.MessageState `protogen:"open.v1"`
Backend *BackendReference `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"`
// 0-100
Percentage float64 `protobuf:"fixed64,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RequestMirrors_Mirror) Reset() {
*x = RequestMirrors_Mirror{}
mi := &file_resource_proto_msgTypes[59]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RequestMirrors_Mirror) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestMirrors_Mirror) ProtoMessage() {}
func (x *RequestMirrors_Mirror) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[59]
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 RequestMirrors_Mirror.ProtoReflect.Descriptor instead.
func (*RequestMirrors_Mirror) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{36, 0}
}
func (x *RequestMirrors_Mirror) GetBackend() *BackendReference {
if x != nil {
return x.Backend
}
return nil
}
func (x *RequestMirrors_Mirror) GetPercentage() float64 {
if x != nil {
return x.Percentage
}
return 0
}
type PolicyTarget_ServiceTarget struct {
state protoimpl.MessageState `protogen:"open.v1"`
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
Port *uint32 `protobuf:"varint,3,opt,name=port,proto3,oneof" json:"port,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PolicyTarget_ServiceTarget) Reset() {
*x = PolicyTarget_ServiceTarget{}
mi := &file_resource_proto_msgTypes[60]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PolicyTarget_ServiceTarget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PolicyTarget_ServiceTarget) ProtoMessage() {}
func (x *PolicyTarget_ServiceTarget) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[60]
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 PolicyTarget_ServiceTarget.ProtoReflect.Descriptor instead.
func (*PolicyTarget_ServiceTarget) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{41, 0}
}
func (x *PolicyTarget_ServiceTarget) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *PolicyTarget_ServiceTarget) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
func (x *PolicyTarget_ServiceTarget) GetPort() uint32 {
if x != nil && x.Port != nil {
return *x.Port
}
return 0
}
type PolicyTarget_BackendTarget struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
Section *string `protobuf:"bytes,3,opt,name=section,proto3,oneof" json:"section,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PolicyTarget_BackendTarget) Reset() {
*x = PolicyTarget_BackendTarget{}
mi := &file_resource_proto_msgTypes[61]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PolicyTarget_BackendTarget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PolicyTarget_BackendTarget) ProtoMessage() {}
func (x *PolicyTarget_BackendTarget) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[61]
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 PolicyTarget_BackendTarget.ProtoReflect.Descriptor instead.
func (*PolicyTarget_BackendTarget) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{41, 1}
}
func (x *PolicyTarget_BackendTarget) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PolicyTarget_BackendTarget) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *PolicyTarget_BackendTarget) GetSection() string {
if x != nil && x.Section != nil {
return *x.Section
}
return ""
}
type PolicyTarget_GatewayTarget struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
Listener *string `protobuf:"bytes,3,opt,name=listener,proto3,oneof" json:"listener,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PolicyTarget_GatewayTarget) Reset() {
*x = PolicyTarget_GatewayTarget{}
mi := &file_resource_proto_msgTypes[62]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PolicyTarget_GatewayTarget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PolicyTarget_GatewayTarget) ProtoMessage() {}
func (x *PolicyTarget_GatewayTarget) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[62]
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 PolicyTarget_GatewayTarget.ProtoReflect.Descriptor instead.
func (*PolicyTarget_GatewayTarget) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{41, 2}
}
func (x *PolicyTarget_GatewayTarget) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PolicyTarget_GatewayTarget) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *PolicyTarget_GatewayTarget) GetListener() string {
if x != nil && x.Listener != nil {
return *x.Listener
}
return ""
}
type PolicyTarget_RouteTarget struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
RouteRule *string `protobuf:"bytes,3,opt,name=route_rule,json=routeRule,proto3,oneof" json:"route_rule,omitempty"`
Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PolicyTarget_RouteTarget) Reset() {
*x = PolicyTarget_RouteTarget{}
mi := &file_resource_proto_msgTypes[63]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PolicyTarget_RouteTarget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PolicyTarget_RouteTarget) ProtoMessage() {}
func (x *PolicyTarget_RouteTarget) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[63]
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 PolicyTarget_RouteTarget.ProtoReflect.Descriptor instead.
func (*PolicyTarget_RouteTarget) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{41, 3}
}
func (x *PolicyTarget_RouteTarget) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PolicyTarget_RouteTarget) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *PolicyTarget_RouteTarget) GetRouteRule() string {
if x != nil && x.RouteRule != nil {
return *x.RouteRule
}
return ""
}
func (x *PolicyTarget_RouteTarget) GetKind() string {
if x != nil {
return x.Kind
}
return ""
}
type FrontendPolicySpec_HTTP struct {
state protoimpl.MessageState `protogen:"open.v1"`
MaxBufferSize *uint32 `protobuf:"varint,1,opt,name=max_buffer_size,json=maxBufferSize,proto3,oneof" json:"max_buffer_size,omitempty"`
Http1MaxHeaders *uint32 `protobuf:"varint,2,opt,name=http1_max_headers,json=http1MaxHeaders,proto3,oneof" json:"http1_max_headers,omitempty"`
Http1IdleTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=http1_idle_timeout,json=http1IdleTimeout,proto3" json:"http1_idle_timeout,omitempty"`
Http2WindowSize *uint32 `protobuf:"varint,4,opt,name=http2_window_size,json=http2WindowSize,proto3,oneof" json:"http2_window_size,omitempty"`
Http2ConnectionWindowSize *uint32 `protobuf:"varint,5,opt,name=http2_connection_window_size,json=http2ConnectionWindowSize,proto3,oneof" json:"http2_connection_window_size,omitempty"`
Http2FrameSize *uint32 `protobuf:"varint,6,opt,name=http2_frame_size,json=http2FrameSize,proto3,oneof" json:"http2_frame_size,omitempty"`
Http2KeepaliveInterval *durationpb.Duration `protobuf:"bytes,7,opt,name=http2_keepalive_interval,json=http2KeepaliveInterval,proto3" json:"http2_keepalive_interval,omitempty"`
Http2KeepaliveTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=http2_keepalive_timeout,json=http2KeepaliveTimeout,proto3" json:"http2_keepalive_timeout,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_HTTP) Reset() {
*x = FrontendPolicySpec_HTTP{}
mi := &file_resource_proto_msgTypes[64]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_HTTP) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_HTTP) ProtoMessage() {}
func (x *FrontendPolicySpec_HTTP) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[64]
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 FrontendPolicySpec_HTTP.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_HTTP) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 0}
}
func (x *FrontendPolicySpec_HTTP) GetMaxBufferSize() uint32 {
if x != nil && x.MaxBufferSize != nil {
return *x.MaxBufferSize
}
return 0
}
func (x *FrontendPolicySpec_HTTP) GetHttp1MaxHeaders() uint32 {
if x != nil && x.Http1MaxHeaders != nil {
return *x.Http1MaxHeaders
}
return 0
}
func (x *FrontendPolicySpec_HTTP) GetHttp1IdleTimeout() *durationpb.Duration {
if x != nil {
return x.Http1IdleTimeout
}
return nil
}
func (x *FrontendPolicySpec_HTTP) GetHttp2WindowSize() uint32 {
if x != nil && x.Http2WindowSize != nil {
return *x.Http2WindowSize
}
return 0
}
func (x *FrontendPolicySpec_HTTP) GetHttp2ConnectionWindowSize() uint32 {
if x != nil && x.Http2ConnectionWindowSize != nil {
return *x.Http2ConnectionWindowSize
}
return 0
}
func (x *FrontendPolicySpec_HTTP) GetHttp2FrameSize() uint32 {
if x != nil && x.Http2FrameSize != nil {
return *x.Http2FrameSize
}
return 0
}
func (x *FrontendPolicySpec_HTTP) GetHttp2KeepaliveInterval() *durationpb.Duration {
if x != nil {
return x.Http2KeepaliveInterval
}
return nil
}
func (x *FrontendPolicySpec_HTTP) GetHttp2KeepaliveTimeout() *durationpb.Duration {
if x != nil {
return x.Http2KeepaliveTimeout
}
return nil
}
type FrontendPolicySpec_TLS struct {
state protoimpl.MessageState `protogen:"open.v1"`
// TLS handshake timeout
HandshakeTimeout *durationpb.Duration `protobuf:"bytes,1,opt,name=handshake_timeout,json=handshakeTimeout,proto3" json:"handshake_timeout,omitempty"`
// Unset: use defaults (h2,http/1.1)
// Set but empty: send none
// Set with values: send those values
Alpn *Alpn `protobuf:"bytes,2,opt,name=alpn,proto3" json:"alpn,omitempty"`
// Cipher suites allowed for negotiating TLS.
// If empty, defaults are used.
CipherSuites []TLSConfig_CipherSuite `protobuf:"varint,3,rep,packed,name=cipher_suites,json=cipherSuites,proto3,enum=agentgateway.dev.resource.TLSConfig_CipherSuite" json:"cipher_suites,omitempty"`
// TLS version range allowed for negotiating TLS.
// If unset, defaults are used.
MinVersion *TLSConfig_TLSVersion `protobuf:"varint,4,opt,name=min_version,json=minVersion,proto3,enum=agentgateway.dev.resource.TLSConfig_TLSVersion,oneof" json:"min_version,omitempty"`
MaxVersion *TLSConfig_TLSVersion `protobuf:"varint,5,opt,name=max_version,json=maxVersion,proto3,enum=agentgateway.dev.resource.TLSConfig_TLSVersion,oneof" json:"max_version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_TLS) Reset() {
*x = FrontendPolicySpec_TLS{}
mi := &file_resource_proto_msgTypes[65]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_TLS) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_TLS) ProtoMessage() {}
func (x *FrontendPolicySpec_TLS) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[65]
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 FrontendPolicySpec_TLS.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_TLS) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 1}
}
func (x *FrontendPolicySpec_TLS) GetHandshakeTimeout() *durationpb.Duration {
if x != nil {
return x.HandshakeTimeout
}
return nil
}
func (x *FrontendPolicySpec_TLS) GetAlpn() *Alpn {
if x != nil {
return x.Alpn
}
return nil
}
func (x *FrontendPolicySpec_TLS) GetCipherSuites() []TLSConfig_CipherSuite {
if x != nil {
return x.CipherSuites
}
return nil
}
func (x *FrontendPolicySpec_TLS) GetMinVersion() TLSConfig_TLSVersion {
if x != nil && x.MinVersion != nil {
return *x.MinVersion
}
return TLSConfig_TLS_VERSION_UNSPECIFIED
}
func (x *FrontendPolicySpec_TLS) GetMaxVersion() TLSConfig_TLSVersion {
if x != nil && x.MaxVersion != nil {
return *x.MaxVersion
}
return TLSConfig_TLS_VERSION_UNSPECIFIED
}
type FrontendPolicySpec_TCP struct {
state protoimpl.MessageState `protogen:"open.v1"`
// TCP keepalive configuration
Keepalives *KeepaliveConfig `protobuf:"bytes,1,opt,name=keepalives,proto3" json:"keepalives,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_TCP) Reset() {
*x = FrontendPolicySpec_TCP{}
mi := &file_resource_proto_msgTypes[66]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_TCP) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_TCP) ProtoMessage() {}
func (x *FrontendPolicySpec_TCP) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[66]
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 FrontendPolicySpec_TCP.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_TCP) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 2}
}
func (x *FrontendPolicySpec_TCP) GetKeepalives() *KeepaliveConfig {
if x != nil {
return x.Keepalives
}
return nil
}
type FrontendPolicySpec_NetworkAuthorization struct {
state protoimpl.MessageState `protogen:"open.v1"`
Allow []string `protobuf:"bytes,1,rep,name=allow,proto3" json:"allow,omitempty"`
Deny []string `protobuf:"bytes,2,rep,name=deny,proto3" json:"deny,omitempty"`
Require []string `protobuf:"bytes,3,rep,name=require,proto3" json:"require,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_NetworkAuthorization) Reset() {
*x = FrontendPolicySpec_NetworkAuthorization{}
mi := &file_resource_proto_msgTypes[67]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_NetworkAuthorization) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_NetworkAuthorization) ProtoMessage() {}
func (x *FrontendPolicySpec_NetworkAuthorization) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[67]
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 FrontendPolicySpec_NetworkAuthorization.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_NetworkAuthorization) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 3}
}
func (x *FrontendPolicySpec_NetworkAuthorization) GetAllow() []string {
if x != nil {
return x.Allow
}
return nil
}
func (x *FrontendPolicySpec_NetworkAuthorization) GetDeny() []string {
if x != nil {
return x.Deny
}
return nil
}
func (x *FrontendPolicySpec_NetworkAuthorization) GetRequire() []string {
if x != nil {
return x.Require
}
return nil
}
// Logging configuration policy
type FrontendPolicySpec_Logging struct {
state protoimpl.MessageState `protogen:"open.v1"`
// CEL expression to filter out logs. If unset, all logs are considered.
Filter *string `protobuf:"bytes,1,opt,name=filter,proto3,oneof" json:"filter,omitempty"`
// Fields applied to logs
Fields *FrontendPolicySpec_Logging_Fields `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"`
// Optional OTLP access log export configuration.
OtlpAccessLog *FrontendPolicySpec_Logging_OtlpAccessLog `protobuf:"bytes,3,opt,name=otlp_access_log,json=otlpAccessLog,proto3" json:"otlp_access_log,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_Logging) Reset() {
*x = FrontendPolicySpec_Logging{}
mi := &file_resource_proto_msgTypes[68]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_Logging) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_Logging) ProtoMessage() {}
func (x *FrontendPolicySpec_Logging) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[68]
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 FrontendPolicySpec_Logging.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_Logging) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 4}
}
func (x *FrontendPolicySpec_Logging) GetFilter() string {
if x != nil && x.Filter != nil {
return *x.Filter
}
return ""
}
func (x *FrontendPolicySpec_Logging) GetFields() *FrontendPolicySpec_Logging_Fields {
if x != nil {
return x.Fields
}
return nil
}
func (x *FrontendPolicySpec_Logging) GetOtlpAccessLog() *FrontendPolicySpec_Logging_OtlpAccessLog {
if x != nil {
return x.OtlpAccessLog
}
return nil
}
type FrontendPolicySpec_Tracing struct {
state protoimpl.MessageState `protogen:"open.v1"`
ProviderBackend *BackendReference `protobuf:"bytes,1,opt,name=provider_backend,json=providerBackend,proto3" json:"provider_backend,omitempty"`
Attributes []*FrontendPolicySpec_TracingAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"`
Resources []*FrontendPolicySpec_TracingAttribute `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty"`
// remove is a list of attribute keys to remove from emitted spans.
// This is applied before `attributes` are evaluated/added, so it can drop defaults
// or avoid duplicates.
Remove []string `protobuf:"bytes,8,rep,name=remove,proto3" json:"remove,omitempty"`
// random_sampling is a CEL expression to determine the amount of random sampling.
// Random sampling will initiate a new trace span if the incoming request does not
// have a trace initiated already. This should evaluate to a float between 0.0-1.0,
// or a boolean (true/false). If unspecified, random sampling is disabled.
RandomSampling *string `protobuf:"bytes,4,opt,name=random_sampling,json=randomSampling,proto3,oneof" json:"random_sampling,omitempty"`
// client_sampling is a CEL expression to determine the amount of client sampling.
// Client sampling determines whether to initiate a new trace span if the incoming
// request already has a trace. This should evaluate to a float between 0.0-1.0,
// or a boolean (true/false). If unspecified, client sampling is 100% enabled.
ClientSampling *string `protobuf:"bytes,5,opt,name=client_sampling,json=clientSampling,proto3,oneof" json:"client_sampling,omitempty"`
// OTLP/HTTP path. Only applicable when protocol is HTTP. Default is /v1/traces
Path *string `protobuf:"bytes,6,opt,name=path,proto3,oneof" json:"path,omitempty"`
// protocol specifies the OTLP protocol variant to use. Default is HTTP
Protocol FrontendPolicySpec_Tracing_Protocol `protobuf:"varint,7,opt,name=protocol,proto3,enum=agentgateway.dev.resource.FrontendPolicySpec_Tracing_Protocol" json:"protocol,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_Tracing) Reset() {
*x = FrontendPolicySpec_Tracing{}
mi := &file_resource_proto_msgTypes[69]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_Tracing) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_Tracing) ProtoMessage() {}
func (x *FrontendPolicySpec_Tracing) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[69]
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 FrontendPolicySpec_Tracing.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_Tracing) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 5}
}
func (x *FrontendPolicySpec_Tracing) GetProviderBackend() *BackendReference {
if x != nil {
return x.ProviderBackend
}
return nil
}
func (x *FrontendPolicySpec_Tracing) GetAttributes() []*FrontendPolicySpec_TracingAttribute {
if x != nil {
return x.Attributes
}
return nil
}
func (x *FrontendPolicySpec_Tracing) GetResources() []*FrontendPolicySpec_TracingAttribute {
if x != nil {
return x.Resources
}
return nil
}
func (x *FrontendPolicySpec_Tracing) GetRemove() []string {
if x != nil {
return x.Remove
}
return nil
}
func (x *FrontendPolicySpec_Tracing) GetRandomSampling() string {
if x != nil && x.RandomSampling != nil {
return *x.RandomSampling
}
return ""
}
func (x *FrontendPolicySpec_Tracing) GetClientSampling() string {
if x != nil && x.ClientSampling != nil {
return *x.ClientSampling
}
return ""
}
func (x *FrontendPolicySpec_Tracing) GetPath() string {
if x != nil && x.Path != nil {
return *x.Path
}
return ""
}
func (x *FrontendPolicySpec_Tracing) GetProtocol() FrontendPolicySpec_Tracing_Protocol {
if x != nil {
return x.Protocol
}
return FrontendPolicySpec_Tracing_HTTP
}
type FrontendPolicySpec_TracingAttribute struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // CEL expression
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_TracingAttribute) Reset() {
*x = FrontendPolicySpec_TracingAttribute{}
mi := &file_resource_proto_msgTypes[70]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_TracingAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_TracingAttribute) ProtoMessage() {}
func (x *FrontendPolicySpec_TracingAttribute) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[70]
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 FrontendPolicySpec_TracingAttribute.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_TracingAttribute) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 6}
}
func (x *FrontendPolicySpec_TracingAttribute) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *FrontendPolicySpec_TracingAttribute) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type FrontendPolicySpec_Logging_Field struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_Logging_Field) Reset() {
*x = FrontendPolicySpec_Logging_Field{}
mi := &file_resource_proto_msgTypes[71]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_Logging_Field) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_Logging_Field) ProtoMessage() {}
func (x *FrontendPolicySpec_Logging_Field) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[71]
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 FrontendPolicySpec_Logging_Field.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_Logging_Field) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 4, 0}
}
func (x *FrontendPolicySpec_Logging_Field) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *FrontendPolicySpec_Logging_Field) GetExpression() string {
if x != nil {
return x.Expression
}
return ""
}
// Additional log fields configuration
type FrontendPolicySpec_Logging_Fields struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Field keys to remove from logs
Remove []string `protobuf:"bytes,1,rep,name=remove,proto3" json:"remove,omitempty"`
// Field keys to add with CEL expressions
Add []*FrontendPolicySpec_Logging_Field `protobuf:"bytes,2,rep,name=add,proto3" json:"add,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_Logging_Fields) Reset() {
*x = FrontendPolicySpec_Logging_Fields{}
mi := &file_resource_proto_msgTypes[72]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_Logging_Fields) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_Logging_Fields) ProtoMessage() {}
func (x *FrontendPolicySpec_Logging_Fields) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[72]
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 FrontendPolicySpec_Logging_Fields.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_Logging_Fields) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 4, 1}
}
func (x *FrontendPolicySpec_Logging_Fields) GetRemove() []string {
if x != nil {
return x.Remove
}
return nil
}
func (x *FrontendPolicySpec_Logging_Fields) GetAdd() []*FrontendPolicySpec_Logging_Field {
if x != nil {
return x.Add
}
return nil
}
// OTLP access log configuration for shipping access logs to an
// OpenTelemetry-compatible backend.
type FrontendPolicySpec_Logging_OtlpAccessLog struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Backend to send OTLP access logs to.
ProviderBackend *BackendReference `protobuf:"bytes,1,opt,name=provider_backend,json=providerBackend,proto3" json:"provider_backend,omitempty"`
// Inline backend policies (e.g. TLS, auth) for the OTLP backend.
InlinePolicies []*BackendPolicySpec `protobuf:"bytes,2,rep,name=inline_policies,json=inlinePolicies,proto3" json:"inline_policies,omitempty"`
// OTLP protocol variant. Default is HTTP.
Protocol FrontendPolicySpec_Logging_OtlpAccessLog_Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=agentgateway.dev.resource.FrontendPolicySpec_Logging_OtlpAccessLog_Protocol" json:"protocol,omitempty"`
// OTLP/HTTP path. Only applicable when protocol is HTTP. Default is /v1/logs.
Path *string `protobuf:"bytes,4,opt,name=path,proto3,oneof" json:"path,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FrontendPolicySpec_Logging_OtlpAccessLog) Reset() {
*x = FrontendPolicySpec_Logging_OtlpAccessLog{}
mi := &file_resource_proto_msgTypes[73]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FrontendPolicySpec_Logging_OtlpAccessLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FrontendPolicySpec_Logging_OtlpAccessLog) ProtoMessage() {}
func (x *FrontendPolicySpec_Logging_OtlpAccessLog) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[73]
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 FrontendPolicySpec_Logging_OtlpAccessLog.ProtoReflect.Descriptor instead.
func (*FrontendPolicySpec_Logging_OtlpAccessLog) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{43, 4, 2}
}
func (x *FrontendPolicySpec_Logging_OtlpAccessLog) GetProviderBackend() *BackendReference {
if x != nil {
return x.ProviderBackend
}
return nil
}
func (x *FrontendPolicySpec_Logging_OtlpAccessLog) GetInlinePolicies() []*BackendPolicySpec {
if x != nil {
return x.InlinePolicies
}
return nil
}
func (x *FrontendPolicySpec_Logging_OtlpAccessLog) GetProtocol() FrontendPolicySpec_Logging_OtlpAccessLog_Protocol {
if x != nil {
return x.Protocol
}
return FrontendPolicySpec_Logging_OtlpAccessLog_HTTP
}
func (x *FrontendPolicySpec_Logging_OtlpAccessLog) GetPath() string {
if x != nil && x.Path != nil {
return *x.Path
}
return ""
}
type TrafficPolicySpec_RemoteRateLimit struct {
state protoimpl.MessageState `protogen:"open.v1"`
Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
Descriptors []*TrafficPolicySpec_RemoteRateLimit_Descriptor `protobuf:"bytes,2,rep,name=descriptors,proto3" json:"descriptors,omitempty"`
Target *BackendReference `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
FailureMode TrafficPolicySpec_RemoteRateLimit_FailureMode `protobuf:"varint,4,opt,name=failure_mode,json=failureMode,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_RemoteRateLimit_FailureMode" json:"failure_mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_RemoteRateLimit) Reset() {
*x = TrafficPolicySpec_RemoteRateLimit{}
mi := &file_resource_proto_msgTypes[74]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_RemoteRateLimit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_RemoteRateLimit) ProtoMessage() {}
func (x *TrafficPolicySpec_RemoteRateLimit) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[74]
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 TrafficPolicySpec_RemoteRateLimit.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_RemoteRateLimit) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 0}
}
func (x *TrafficPolicySpec_RemoteRateLimit) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *TrafficPolicySpec_RemoteRateLimit) GetDescriptors() []*TrafficPolicySpec_RemoteRateLimit_Descriptor {
if x != nil {
return x.Descriptors
}
return nil
}
func (x *TrafficPolicySpec_RemoteRateLimit) GetTarget() *BackendReference {
if x != nil {
return x.Target
}
return nil
}
func (x *TrafficPolicySpec_RemoteRateLimit) GetFailureMode() TrafficPolicySpec_RemoteRateLimit_FailureMode {
if x != nil {
return x.FailureMode
}
return TrafficPolicySpec_RemoteRateLimit_FAIL_CLOSED
}
type TrafficPolicySpec_LocalRateLimit struct {
state protoimpl.MessageState `protogen:"open.v1"`
MaxTokens uint64 `protobuf:"varint,1,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
TokensPerFill uint64 `protobuf:"varint,2,opt,name=tokens_per_fill,json=tokensPerFill,proto3" json:"tokens_per_fill,omitempty"`
FillInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=fill_interval,json=fillInterval,proto3" json:"fill_interval,omitempty"`
Type TrafficPolicySpec_LocalRateLimit_Type `protobuf:"varint,4,opt,name=type,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_LocalRateLimit_Type" json:"type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_LocalRateLimit) Reset() {
*x = TrafficPolicySpec_LocalRateLimit{}
mi := &file_resource_proto_msgTypes[75]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_LocalRateLimit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_LocalRateLimit) ProtoMessage() {}
func (x *TrafficPolicySpec_LocalRateLimit) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[75]
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 TrafficPolicySpec_LocalRateLimit.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_LocalRateLimit) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 1}
}
func (x *TrafficPolicySpec_LocalRateLimit) GetMaxTokens() uint64 {
if x != nil {
return x.MaxTokens
}
return 0
}
func (x *TrafficPolicySpec_LocalRateLimit) GetTokensPerFill() uint64 {
if x != nil {
return x.TokensPerFill
}
return 0
}
func (x *TrafficPolicySpec_LocalRateLimit) GetFillInterval() *durationpb.Duration {
if x != nil {
return x.FillInterval
}
return nil
}
func (x *TrafficPolicySpec_LocalRateLimit) GetType() TrafficPolicySpec_LocalRateLimit_Type {
if x != nil {
return x.Type
}
return TrafficPolicySpec_LocalRateLimit_REQUEST
}
type TrafficPolicySpec_ExternalAuth struct {
state protoimpl.MessageState `protogen:"open.v1"`
Target *BackendReference `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// Types that are valid to be assigned to Protocol:
//
// *TrafficPolicySpec_ExternalAuth_Grpc
// *TrafficPolicySpec_ExternalAuth_Http
Protocol isTrafficPolicySpec_ExternalAuth_Protocol `protobuf_oneof:"protocol"`
FailureMode TrafficPolicySpec_ExternalAuth_FailureMode `protobuf:"varint,4,opt,name=failure_mode,json=failureMode,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_ExternalAuth_FailureMode" json:"failure_mode,omitempty"`
StatusOnError *uint32 `protobuf:"varint,5,opt,name=status_on_error,json=statusOnError,proto3,oneof" json:"status_on_error,omitempty"`
IncludeRequestHeaders []string `protobuf:"bytes,6,rep,name=include_request_headers,json=includeRequestHeaders,proto3" json:"include_request_headers,omitempty"`
IncludeRequestBody *TrafficPolicySpec_ExternalAuth_BodyOptions `protobuf:"bytes,7,opt,name=include_request_body,json=includeRequestBody,proto3" json:"include_request_body,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_ExternalAuth) Reset() {
*x = TrafficPolicySpec_ExternalAuth{}
mi := &file_resource_proto_msgTypes[76]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_ExternalAuth) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_ExternalAuth) ProtoMessage() {}
func (x *TrafficPolicySpec_ExternalAuth) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[76]
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 TrafficPolicySpec_ExternalAuth.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_ExternalAuth) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 2}
}
func (x *TrafficPolicySpec_ExternalAuth) GetTarget() *BackendReference {
if x != nil {
return x.Target
}
return nil
}
func (x *TrafficPolicySpec_ExternalAuth) GetProtocol() isTrafficPolicySpec_ExternalAuth_Protocol {
if x != nil {
return x.Protocol
}
return nil
}
func (x *TrafficPolicySpec_ExternalAuth) GetGrpc() *TrafficPolicySpec_ExternalAuth_GRPCProtocol {
if x != nil {
if x, ok := x.Protocol.(*TrafficPolicySpec_ExternalAuth_Grpc); ok {
return x.Grpc
}
}
return nil
}
func (x *TrafficPolicySpec_ExternalAuth) GetHttp() *TrafficPolicySpec_ExternalAuth_HTTPProtocol {
if x != nil {
if x, ok := x.Protocol.(*TrafficPolicySpec_ExternalAuth_Http); ok {
return x.Http
}
}
return nil
}
func (x *TrafficPolicySpec_ExternalAuth) GetFailureMode() TrafficPolicySpec_ExternalAuth_FailureMode {
if x != nil {
return x.FailureMode
}
return TrafficPolicySpec_ExternalAuth_DENY
}
func (x *TrafficPolicySpec_ExternalAuth) GetStatusOnError() uint32 {
if x != nil && x.StatusOnError != nil {
return *x.StatusOnError
}
return 0
}
func (x *TrafficPolicySpec_ExternalAuth) GetIncludeRequestHeaders() []string {
if x != nil {
return x.IncludeRequestHeaders
}
return nil
}
func (x *TrafficPolicySpec_ExternalAuth) GetIncludeRequestBody() *TrafficPolicySpec_ExternalAuth_BodyOptions {
if x != nil {
return x.IncludeRequestBody
}
return nil
}
type isTrafficPolicySpec_ExternalAuth_Protocol interface {
isTrafficPolicySpec_ExternalAuth_Protocol()
}
type TrafficPolicySpec_ExternalAuth_Grpc struct {
Grpc *TrafficPolicySpec_ExternalAuth_GRPCProtocol `protobuf:"bytes,2,opt,name=grpc,proto3,oneof"`
}
type TrafficPolicySpec_ExternalAuth_Http struct {
Http *TrafficPolicySpec_ExternalAuth_HTTPProtocol `protobuf:"bytes,3,opt,name=http,proto3,oneof"`
}
func (*TrafficPolicySpec_ExternalAuth_Grpc) isTrafficPolicySpec_ExternalAuth_Protocol() {}
func (*TrafficPolicySpec_ExternalAuth_Http) isTrafficPolicySpec_ExternalAuth_Protocol() {}
type TrafficPolicySpec_RBAC struct {
state protoimpl.MessageState `protogen:"open.v1"`
Allow []string `protobuf:"bytes,1,rep,name=allow,proto3" json:"allow,omitempty"`
Deny []string `protobuf:"bytes,2,rep,name=deny,proto3" json:"deny,omitempty"`
Require []string `protobuf:"bytes,3,rep,name=require,proto3" json:"require,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_RBAC) Reset() {
*x = TrafficPolicySpec_RBAC{}
mi := &file_resource_proto_msgTypes[77]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_RBAC) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_RBAC) ProtoMessage() {}
func (x *TrafficPolicySpec_RBAC) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[77]
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 TrafficPolicySpec_RBAC.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_RBAC) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 3}
}
func (x *TrafficPolicySpec_RBAC) GetAllow() []string {
if x != nil {
return x.Allow
}
return nil
}
func (x *TrafficPolicySpec_RBAC) GetDeny() []string {
if x != nil {
return x.Deny
}
return nil
}
func (x *TrafficPolicySpec_RBAC) GetRequire() []string {
if x != nil {
return x.Require
}
return nil
}
type TrafficPolicySpec_JWTProvider struct {
state protoimpl.MessageState `protogen:"open.v1"`
// JWT issuer that must match the 'iss' claim
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
// List of audiences - the 'aud' claim must be in this list
Audiences []string `protobuf:"bytes,2,rep,name=audiences,proto3" json:"audiences,omitempty"`
// JWKS configuration - where to get the keys for validation
//
// Types that are valid to be assigned to JwksSource:
//
// *TrafficPolicySpec_JWTProvider_Inline
JwksSource isTrafficPolicySpec_JWTProvider_JwksSource `protobuf_oneof:"jwks_source"`
// JWT validation options controlling which claims must be present.
JwtValidationOptions *JWTValidationOptions `protobuf:"bytes,4,opt,name=jwt_validation_options,json=jwtValidationOptions,proto3" json:"jwt_validation_options,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_JWTProvider) Reset() {
*x = TrafficPolicySpec_JWTProvider{}
mi := &file_resource_proto_msgTypes[78]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_JWTProvider) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_JWTProvider) ProtoMessage() {}
func (x *TrafficPolicySpec_JWTProvider) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[78]
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 TrafficPolicySpec_JWTProvider.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_JWTProvider) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 4}
}
func (x *TrafficPolicySpec_JWTProvider) GetIssuer() string {
if x != nil {
return x.Issuer
}
return ""
}
func (x *TrafficPolicySpec_JWTProvider) GetAudiences() []string {
if x != nil {
return x.Audiences
}
return nil
}
func (x *TrafficPolicySpec_JWTProvider) GetJwksSource() isTrafficPolicySpec_JWTProvider_JwksSource {
if x != nil {
return x.JwksSource
}
return nil
}
func (x *TrafficPolicySpec_JWTProvider) GetInline() string {
if x != nil {
if x, ok := x.JwksSource.(*TrafficPolicySpec_JWTProvider_Inline); ok {
return x.Inline
}
}
return ""
}
func (x *TrafficPolicySpec_JWTProvider) GetJwtValidationOptions() *JWTValidationOptions {
if x != nil {
return x.JwtValidationOptions
}
return nil
}
type isTrafficPolicySpec_JWTProvider_JwksSource interface {
isTrafficPolicySpec_JWTProvider_JwksSource()
}
type TrafficPolicySpec_JWTProvider_Inline struct {
// Inline JWKS as a JSON string
Inline string `protobuf:"bytes,3,opt,name=inline,proto3,oneof"`
}
func (*TrafficPolicySpec_JWTProvider_Inline) isTrafficPolicySpec_JWTProvider_JwksSource() {}
// JWT authentication configuration
type TrafficPolicySpec_JWT struct {
state protoimpl.MessageState `protogen:"open.v1"`
// How the JWT validation should behave
Mode TrafficPolicySpec_JWT_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_JWT_Mode" json:"mode,omitempty"`
Providers []*TrafficPolicySpec_JWTProvider `protobuf:"bytes,2,rep,name=providers,proto3" json:"providers,omitempty"`
Mcp *TrafficPolicySpec_JWT_MCP `protobuf:"bytes,3,opt,name=mcp,proto3" json:"mcp,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_JWT) Reset() {
*x = TrafficPolicySpec_JWT{}
mi := &file_resource_proto_msgTypes[79]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_JWT) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_JWT) ProtoMessage() {}
func (x *TrafficPolicySpec_JWT) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[79]
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 TrafficPolicySpec_JWT.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_JWT) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 5}
}
func (x *TrafficPolicySpec_JWT) GetMode() TrafficPolicySpec_JWT_Mode {
if x != nil {
return x.Mode
}
return TrafficPolicySpec_JWT_OPTIONAL
}
func (x *TrafficPolicySpec_JWT) GetProviders() []*TrafficPolicySpec_JWTProvider {
if x != nil {
return x.Providers
}
return nil
}
func (x *TrafficPolicySpec_JWT) GetMcp() *TrafficPolicySpec_JWT_MCP {
if x != nil {
return x.Mcp
}
return nil
}
// Basic authentication configuration using htpasswd file
type TrafficPolicySpec_BasicAuthentication struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Htpasswd file content
HtpasswdContent string `protobuf:"bytes,1,opt,name=htpasswd_content,json=htpasswdContent,proto3" json:"htpasswd_content,omitempty"`
// Realm name for WWW-Authenticate header
Realm *string `protobuf:"bytes,2,opt,name=realm,proto3,oneof" json:"realm,omitempty"`
// How the basic authentication should behave
Mode TrafficPolicySpec_BasicAuthentication_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_BasicAuthentication_Mode" json:"mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_BasicAuthentication) Reset() {
*x = TrafficPolicySpec_BasicAuthentication{}
mi := &file_resource_proto_msgTypes[80]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_BasicAuthentication) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_BasicAuthentication) ProtoMessage() {}
func (x *TrafficPolicySpec_BasicAuthentication) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[80]
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 TrafficPolicySpec_BasicAuthentication.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_BasicAuthentication) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 6}
}
func (x *TrafficPolicySpec_BasicAuthentication) GetHtpasswdContent() string {
if x != nil {
return x.HtpasswdContent
}
return ""
}
func (x *TrafficPolicySpec_BasicAuthentication) GetRealm() string {
if x != nil && x.Realm != nil {
return *x.Realm
}
return ""
}
func (x *TrafficPolicySpec_BasicAuthentication) GetMode() TrafficPolicySpec_BasicAuthentication_Mode {
if x != nil {
return x.Mode
}
return TrafficPolicySpec_BasicAuthentication_STRICT
}
// API Key authentication
type TrafficPolicySpec_APIKey struct {
state protoimpl.MessageState `protogen:"open.v1"`
ApiKeys []*TrafficPolicySpec_APIKey_User `protobuf:"bytes,1,rep,name=api_keys,json=apiKeys,proto3" json:"api_keys,omitempty"`
// How the API key authentication should behave
Mode TrafficPolicySpec_APIKey_Mode `protobuf:"varint,2,opt,name=mode,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_APIKey_Mode" json:"mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_APIKey) Reset() {
*x = TrafficPolicySpec_APIKey{}
mi := &file_resource_proto_msgTypes[81]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_APIKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_APIKey) ProtoMessage() {}
func (x *TrafficPolicySpec_APIKey) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[81]
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 TrafficPolicySpec_APIKey.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_APIKey) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 7}
}
func (x *TrafficPolicySpec_APIKey) GetApiKeys() []*TrafficPolicySpec_APIKey_User {
if x != nil {
return x.ApiKeys
}
return nil
}
func (x *TrafficPolicySpec_APIKey) GetMode() TrafficPolicySpec_APIKey_Mode {
if x != nil {
return x.Mode
}
return TrafficPolicySpec_APIKey_STRICT
}
type TrafficPolicySpec_TransformationPolicy struct {
state protoimpl.MessageState `protogen:"open.v1"`
Request *TrafficPolicySpec_TransformationPolicy_Transform `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
Response *TrafficPolicySpec_TransformationPolicy_Transform `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_TransformationPolicy) Reset() {
*x = TrafficPolicySpec_TransformationPolicy{}
mi := &file_resource_proto_msgTypes[82]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_TransformationPolicy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_TransformationPolicy) ProtoMessage() {}
func (x *TrafficPolicySpec_TransformationPolicy) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[82]
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 TrafficPolicySpec_TransformationPolicy.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_TransformationPolicy) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 8}
}
func (x *TrafficPolicySpec_TransformationPolicy) GetRequest() *TrafficPolicySpec_TransformationPolicy_Transform {
if x != nil {
return x.Request
}
return nil
}
func (x *TrafficPolicySpec_TransformationPolicy) GetResponse() *TrafficPolicySpec_TransformationPolicy_Transform {
if x != nil {
return x.Response
}
return nil
}
type TrafficPolicySpec_HeaderTransformation struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_HeaderTransformation) Reset() {
*x = TrafficPolicySpec_HeaderTransformation{}
mi := &file_resource_proto_msgTypes[83]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_HeaderTransformation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_HeaderTransformation) ProtoMessage() {}
func (x *TrafficPolicySpec_HeaderTransformation) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[83]
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 TrafficPolicySpec_HeaderTransformation.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_HeaderTransformation) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 9}
}
func (x *TrafficPolicySpec_HeaderTransformation) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TrafficPolicySpec_HeaderTransformation) GetExpression() string {
if x != nil {
return x.Expression
}
return ""
}
type TrafficPolicySpec_BodyTransformation struct {
state protoimpl.MessageState `protogen:"open.v1"`
Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_BodyTransformation) Reset() {
*x = TrafficPolicySpec_BodyTransformation{}
mi := &file_resource_proto_msgTypes[84]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_BodyTransformation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_BodyTransformation) ProtoMessage() {}
func (x *TrafficPolicySpec_BodyTransformation) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[84]
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 TrafficPolicySpec_BodyTransformation.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_BodyTransformation) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 10}
}
func (x *TrafficPolicySpec_BodyTransformation) GetExpression() string {
if x != nil {
return x.Expression
}
return ""
}
// Cross-Site Request Forgery (CSRF) policy configuration.
type TrafficPolicySpec_CSRF struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Additional origins that are allowed for CSRF validation beyond the same-origin policy.
// If a request's origin header matches any of these exact origins, the request will be allowed.
// Each origin should be in the format "scheme://host[:port]" (e.g., "https://www.example.com")
AdditionalOrigins []string `protobuf:"bytes,1,rep,name=additional_origins,json=additionalOrigins,proto3" json:"additional_origins,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_CSRF) Reset() {
*x = TrafficPolicySpec_CSRF{}
mi := &file_resource_proto_msgTypes[85]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_CSRF) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_CSRF) ProtoMessage() {}
func (x *TrafficPolicySpec_CSRF) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[85]
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 TrafficPolicySpec_CSRF.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_CSRF) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 11}
}
func (x *TrafficPolicySpec_CSRF) GetAdditionalOrigins() []string {
if x != nil {
return x.AdditionalOrigins
}
return nil
}
type TrafficPolicySpec_ExtProc struct {
state protoimpl.MessageState `protogen:"open.v1"`
Target *BackendReference `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
FailureMode TrafficPolicySpec_ExtProc_FailureMode `protobuf:"varint,2,opt,name=failure_mode,json=failureMode,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_ExtProc_FailureMode" json:"failure_mode,omitempty"`
RequestAttributes map[string]string `protobuf:"bytes,3,rep,name=request_attributes,json=requestAttributes,proto3" json:"request_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
ResponseAttributes map[string]string `protobuf:"bytes,4,rep,name=response_attributes,json=responseAttributes,proto3" json:"response_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MetadataContext map[string]*TrafficPolicySpec_ExtProc_NamespacedMetadataContext `protobuf:"bytes,5,rep,name=metadata_context,json=metadataContext,proto3" json:"metadata_context,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_ExtProc) Reset() {
*x = TrafficPolicySpec_ExtProc{}
mi := &file_resource_proto_msgTypes[86]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_ExtProc) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_ExtProc) ProtoMessage() {}
func (x *TrafficPolicySpec_ExtProc) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[86]
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 TrafficPolicySpec_ExtProc.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_ExtProc) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 12}
}
func (x *TrafficPolicySpec_ExtProc) GetTarget() *BackendReference {
if x != nil {
return x.Target
}
return nil
}
func (x *TrafficPolicySpec_ExtProc) GetFailureMode() TrafficPolicySpec_ExtProc_FailureMode {
if x != nil {
return x.FailureMode
}
return TrafficPolicySpec_ExtProc_FAIL_CLOSED
}
func (x *TrafficPolicySpec_ExtProc) GetRequestAttributes() map[string]string {
if x != nil {
return x.RequestAttributes
}
return nil
}
func (x *TrafficPolicySpec_ExtProc) GetResponseAttributes() map[string]string {
if x != nil {
return x.ResponseAttributes
}
return nil
}
func (x *TrafficPolicySpec_ExtProc) GetMetadataContext() map[string]*TrafficPolicySpec_ExtProc_NamespacedMetadataContext {
if x != nil {
return x.MetadataContext
}
return nil
}
type TrafficPolicySpec_HostRewrite struct {
state protoimpl.MessageState `protogen:"open.v1"`
Mode TrafficPolicySpec_HostRewrite_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_HostRewrite_Mode" json:"mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_HostRewrite) Reset() {
*x = TrafficPolicySpec_HostRewrite{}
mi := &file_resource_proto_msgTypes[87]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_HostRewrite) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_HostRewrite) ProtoMessage() {}
func (x *TrafficPolicySpec_HostRewrite) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[87]
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 TrafficPolicySpec_HostRewrite.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_HostRewrite) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 13}
}
func (x *TrafficPolicySpec_HostRewrite) GetMode() TrafficPolicySpec_HostRewrite_Mode {
if x != nil {
return x.Mode
}
return TrafficPolicySpec_HostRewrite_NONE
}
type TrafficPolicySpec_RemoteRateLimit_Descriptor struct {
state protoimpl.MessageState `protogen:"open.v1"`
Entries []*TrafficPolicySpec_RemoteRateLimit_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
Type TrafficPolicySpec_RemoteRateLimit_Type `protobuf:"varint,2,opt,name=type,proto3,enum=agentgateway.dev.resource.TrafficPolicySpec_RemoteRateLimit_Type" json:"type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_RemoteRateLimit_Descriptor) Reset() {
*x = TrafficPolicySpec_RemoteRateLimit_Descriptor{}
mi := &file_resource_proto_msgTypes[88]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_RemoteRateLimit_Descriptor) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_RemoteRateLimit_Descriptor) ProtoMessage() {}
func (x *TrafficPolicySpec_RemoteRateLimit_Descriptor) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[88]
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 TrafficPolicySpec_RemoteRateLimit_Descriptor.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_RemoteRateLimit_Descriptor) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 0, 0}
}
func (x *TrafficPolicySpec_RemoteRateLimit_Descriptor) GetEntries() []*TrafficPolicySpec_RemoteRateLimit_Entry {
if x != nil {
return x.Entries
}
return nil
}
func (x *TrafficPolicySpec_RemoteRateLimit_Descriptor) GetType() TrafficPolicySpec_RemoteRateLimit_Type {
if x != nil {
return x.Type
}
return TrafficPolicySpec_RemoteRateLimit_REQUESTS
}
type TrafficPolicySpec_RemoteRateLimit_Entry struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // CEL expr
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_RemoteRateLimit_Entry) Reset() {
*x = TrafficPolicySpec_RemoteRateLimit_Entry{}
mi := &file_resource_proto_msgTypes[89]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_RemoteRateLimit_Entry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_RemoteRateLimit_Entry) ProtoMessage() {}
func (x *TrafficPolicySpec_RemoteRateLimit_Entry) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[89]
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 TrafficPolicySpec_RemoteRateLimit_Entry.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_RemoteRateLimit_Entry) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 0, 1}
}
func (x *TrafficPolicySpec_RemoteRateLimit_Entry) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *TrafficPolicySpec_RemoteRateLimit_Entry) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type TrafficPolicySpec_ExternalAuth_BodyOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
MaxRequestBytes uint32 `protobuf:"varint,1,opt,name=max_request_bytes,json=maxRequestBytes,proto3" json:"max_request_bytes,omitempty"`
AllowPartialMessage bool `protobuf:"varint,2,opt,name=allow_partial_message,json=allowPartialMessage,proto3" json:"allow_partial_message,omitempty"`
PackAsBytes bool `protobuf:"varint,3,opt,name=pack_as_bytes,json=packAsBytes,proto3" json:"pack_as_bytes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_ExternalAuth_BodyOptions) Reset() {
*x = TrafficPolicySpec_ExternalAuth_BodyOptions{}
mi := &file_resource_proto_msgTypes[90]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_ExternalAuth_BodyOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_ExternalAuth_BodyOptions) ProtoMessage() {}
func (x *TrafficPolicySpec_ExternalAuth_BodyOptions) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[90]
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 TrafficPolicySpec_ExternalAuth_BodyOptions.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_ExternalAuth_BodyOptions) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 2, 0}
}
func (x *TrafficPolicySpec_ExternalAuth_BodyOptions) GetMaxRequestBytes() uint32 {
if x != nil {
return x.MaxRequestBytes
}
return 0
}
func (x *TrafficPolicySpec_ExternalAuth_BodyOptions) GetAllowPartialMessage() bool {
if x != nil {
return x.AllowPartialMessage
}
return false
}
func (x *TrafficPolicySpec_ExternalAuth_BodyOptions) GetPackAsBytes() bool {
if x != nil {
return x.PackAsBytes
}
return false
}
type TrafficPolicySpec_ExternalAuth_GRPCProtocol struct {
state protoimpl.MessageState `protogen:"open.v1"`
Context map[string]string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_ExternalAuth_GRPCProtocol) Reset() {
*x = TrafficPolicySpec_ExternalAuth_GRPCProtocol{}
mi := &file_resource_proto_msgTypes[91]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_ExternalAuth_GRPCProtocol) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_ExternalAuth_GRPCProtocol) ProtoMessage() {}
func (x *TrafficPolicySpec_ExternalAuth_GRPCProtocol) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[91]
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 TrafficPolicySpec_ExternalAuth_GRPCProtocol.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_ExternalAuth_GRPCProtocol) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 2, 1}
}
func (x *TrafficPolicySpec_ExternalAuth_GRPCProtocol) GetContext() map[string]string {
if x != nil {
return x.Context
}
return nil
}
func (x *TrafficPolicySpec_ExternalAuth_GRPCProtocol) GetMetadata() map[string]string {
if x != nil {
return x.Metadata
}
return nil
}
type TrafficPolicySpec_ExternalAuth_HTTPProtocol struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path *string `protobuf:"bytes,1,opt,name=path,proto3,oneof" json:"path,omitempty"`
Redirect *string `protobuf:"bytes,2,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"`
IncludeResponseHeaders []string `protobuf:"bytes,3,rep,name=include_response_headers,json=includeResponseHeaders,proto3" json:"include_response_headers,omitempty"`
AddRequestHeaders map[string]string `protobuf:"bytes,4,rep,name=add_request_headers,json=addRequestHeaders,proto3" json:"add_request_headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_ExternalAuth_HTTPProtocol) Reset() {
*x = TrafficPolicySpec_ExternalAuth_HTTPProtocol{}
mi := &file_resource_proto_msgTypes[92]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_ExternalAuth_HTTPProtocol) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_ExternalAuth_HTTPProtocol) ProtoMessage() {}
func (x *TrafficPolicySpec_ExternalAuth_HTTPProtocol) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[92]
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 TrafficPolicySpec_ExternalAuth_HTTPProtocol.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_ExternalAuth_HTTPProtocol) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 2, 2}
}
func (x *TrafficPolicySpec_ExternalAuth_HTTPProtocol) GetPath() string {
if x != nil && x.Path != nil {
return *x.Path
}
return ""
}
func (x *TrafficPolicySpec_ExternalAuth_HTTPProtocol) GetRedirect() string {
if x != nil && x.Redirect != nil {
return *x.Redirect
}
return ""
}
func (x *TrafficPolicySpec_ExternalAuth_HTTPProtocol) GetIncludeResponseHeaders() []string {
if x != nil {
return x.IncludeResponseHeaders
}
return nil
}
func (x *TrafficPolicySpec_ExternalAuth_HTTPProtocol) GetAddRequestHeaders() map[string]string {
if x != nil {
return x.AddRequestHeaders
}
return nil
}
func (x *TrafficPolicySpec_ExternalAuth_HTTPProtocol) GetMetadata() map[string]string {
if x != nil {
return x.Metadata
}
return nil
}
type TrafficPolicySpec_JWT_MCP struct {
state protoimpl.MessageState `protogen:"open.v1"`
Provider BackendPolicySpec_McpAuthentication_McpIDP `protobuf:"varint,1,opt,name=provider,proto3,enum=agentgateway.dev.resource.BackendPolicySpec_McpAuthentication_McpIDP" json:"provider,omitempty"`
ResourceMetadata *BackendPolicySpec_McpAuthentication_ResourceMetadata `protobuf:"bytes,2,opt,name=resource_metadata,json=resourceMetadata,proto3" json:"resource_metadata,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_JWT_MCP) Reset() {
*x = TrafficPolicySpec_JWT_MCP{}
mi := &file_resource_proto_msgTypes[97]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_JWT_MCP) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_JWT_MCP) ProtoMessage() {}
func (x *TrafficPolicySpec_JWT_MCP) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[97]
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 TrafficPolicySpec_JWT_MCP.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_JWT_MCP) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 5, 0}
}
func (x *TrafficPolicySpec_JWT_MCP) GetProvider() BackendPolicySpec_McpAuthentication_McpIDP {
if x != nil {
return x.Provider
}
return BackendPolicySpec_McpAuthentication_UNSPECIFIED
}
func (x *TrafficPolicySpec_JWT_MCP) GetResourceMetadata() *BackendPolicySpec_McpAuthentication_ResourceMetadata {
if x != nil {
return x.ResourceMetadata
}
return nil
}
type TrafficPolicySpec_APIKey_User struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Metadata *structpb.Struct `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_APIKey_User) Reset() {
*x = TrafficPolicySpec_APIKey_User{}
mi := &file_resource_proto_msgTypes[98]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_APIKey_User) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_APIKey_User) ProtoMessage() {}
func (x *TrafficPolicySpec_APIKey_User) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[98]
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 TrafficPolicySpec_APIKey_User.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_APIKey_User) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 7, 0}
}
func (x *TrafficPolicySpec_APIKey_User) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *TrafficPolicySpec_APIKey_User) GetMetadata() *structpb.Struct {
if x != nil {
return x.Metadata
}
return nil
}
type TrafficPolicySpec_TransformationPolicy_Transform struct {
state protoimpl.MessageState `protogen:"open.v1"`
Set []*TrafficPolicySpec_HeaderTransformation `protobuf:"bytes,1,rep,name=set,proto3" json:"set,omitempty"`
Add []*TrafficPolicySpec_HeaderTransformation `protobuf:"bytes,2,rep,name=add,proto3" json:"add,omitempty"`
Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
Body *TrafficPolicySpec_BodyTransformation `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_TransformationPolicy_Transform) Reset() {
*x = TrafficPolicySpec_TransformationPolicy_Transform{}
mi := &file_resource_proto_msgTypes[99]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_TransformationPolicy_Transform) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_TransformationPolicy_Transform) ProtoMessage() {}
func (x *TrafficPolicySpec_TransformationPolicy_Transform) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[99]
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 TrafficPolicySpec_TransformationPolicy_Transform.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_TransformationPolicy_Transform) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 8, 0}
}
func (x *TrafficPolicySpec_TransformationPolicy_Transform) GetSet() []*TrafficPolicySpec_HeaderTransformation {
if x != nil {
return x.Set
}
return nil
}
func (x *TrafficPolicySpec_TransformationPolicy_Transform) GetAdd() []*TrafficPolicySpec_HeaderTransformation {
if x != nil {
return x.Add
}
return nil
}
func (x *TrafficPolicySpec_TransformationPolicy_Transform) GetRemove() []string {
if x != nil {
return x.Remove
}
return nil
}
func (x *TrafficPolicySpec_TransformationPolicy_Transform) GetBody() *TrafficPolicySpec_BodyTransformation {
if x != nil {
return x.Body
}
return nil
}
func (x *TrafficPolicySpec_TransformationPolicy_Transform) GetMetadata() map[string]string {
if x != nil {
return x.Metadata
}
return nil
}
type TrafficPolicySpec_ExtProc_NamespacedMetadataContext struct {
state protoimpl.MessageState `protogen:"open.v1"`
Context map[string]string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TrafficPolicySpec_ExtProc_NamespacedMetadataContext) Reset() {
*x = TrafficPolicySpec_ExtProc_NamespacedMetadataContext{}
mi := &file_resource_proto_msgTypes[103]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TrafficPolicySpec_ExtProc_NamespacedMetadataContext) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolicySpec_ExtProc_NamespacedMetadataContext) ProtoMessage() {}
func (x *TrafficPolicySpec_ExtProc_NamespacedMetadataContext) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[103]
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 TrafficPolicySpec_ExtProc_NamespacedMetadataContext.ProtoReflect.Descriptor instead.
func (*TrafficPolicySpec_ExtProc_NamespacedMetadataContext) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{45, 12, 2}
}
func (x *TrafficPolicySpec_ExtProc_NamespacedMetadataContext) GetContext() map[string]string {
if x != nil {
return x.Context
}
return nil
}
type BackendPolicySpec_Ai struct {
state protoimpl.MessageState `protogen:"open.v1"`
PromptGuard *BackendPolicySpec_Ai_PromptGuard `protobuf:"bytes,1,opt,name=prompt_guard,json=promptGuard,proto3" json:"prompt_guard,omitempty"`
Defaults map[string]string `protobuf:"bytes,2,rep,name=defaults,proto3" json:"defaults,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Override JSON key-value pairs to set in the LLM request regardless of whether they are set in the request.
Overrides map[string]string `protobuf:"bytes,3,rep,name=overrides,proto3" json:"overrides,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// CEL transformation expressions to evaluate and set in the LLM request.
// Expressions are evaluated against the current request body and behave like overrides.
Transformations map[string]string `protobuf:"bytes,8,rep,name=transformations,proto3" json:"transformations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Prompts *BackendPolicySpec_Ai_PromptEnrichment `protobuf:"bytes,4,opt,name=prompts,proto3" json:"prompts,omitempty"`
// Model aliases - map from alias name to actual model name
ModelAliases map[string]string `protobuf:"bytes,5,rep,name=model_aliases,json=modelAliases,proto3" json:"model_aliases,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
PromptCaching *BackendPolicySpec_Ai_PromptCaching `protobuf:"bytes,6,opt,name=prompt_caching,json=promptCaching,proto3" json:"prompt_caching,omitempty"`
// Routes defines how to identify the type of LLM request to handle.
// The keys are URL suffix matches (e.g., "/v1/chat/completions", "/v1/messages").
// The special "*" wildcard matches any path.
// If empty or no route matches, the implementation defaults to COMPLETIONS behavior.
Routes map[string]BackendPolicySpec_Ai_RouteType `protobuf:"bytes,7,rep,name=routes,proto3" json:"routes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=agentgateway.dev.resource.BackendPolicySpec_Ai_RouteType"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai) Reset() {
*x = BackendPolicySpec_Ai{}
mi := &file_resource_proto_msgTypes[106]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai) ProtoMessage() {}
func (x *BackendPolicySpec_Ai) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[106]
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 BackendPolicySpec_Ai.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0}
}
func (x *BackendPolicySpec_Ai) GetPromptGuard() *BackendPolicySpec_Ai_PromptGuard {
if x != nil {
return x.PromptGuard
}
return nil
}
func (x *BackendPolicySpec_Ai) GetDefaults() map[string]string {
if x != nil {
return x.Defaults
}
return nil
}
func (x *BackendPolicySpec_Ai) GetOverrides() map[string]string {
if x != nil {
return x.Overrides
}
return nil
}
func (x *BackendPolicySpec_Ai) GetTransformations() map[string]string {
if x != nil {
return x.Transformations
}
return nil
}
func (x *BackendPolicySpec_Ai) GetPrompts() *BackendPolicySpec_Ai_PromptEnrichment {
if x != nil {
return x.Prompts
}
return nil
}
func (x *BackendPolicySpec_Ai) GetModelAliases() map[string]string {
if x != nil {
return x.ModelAliases
}
return nil
}
func (x *BackendPolicySpec_Ai) GetPromptCaching() *BackendPolicySpec_Ai_PromptCaching {
if x != nil {
return x.PromptCaching
}
return nil
}
func (x *BackendPolicySpec_Ai) GetRoutes() map[string]BackendPolicySpec_Ai_RouteType {
if x != nil {
return x.Routes
}
return nil
}
type BackendPolicySpec_A2A struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_A2A) Reset() {
*x = BackendPolicySpec_A2A{}
mi := &file_resource_proto_msgTypes[107]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_A2A) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_A2A) ProtoMessage() {}
func (x *BackendPolicySpec_A2A) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[107]
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 BackendPolicySpec_A2A.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_A2A) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 1}
}
type BackendPolicySpec_InferenceRouting struct {
state protoimpl.MessageState `protogen:"open.v1"`
EndpointPicker *BackendReference `protobuf:"bytes,1,opt,name=endpoint_picker,json=endpointPicker,proto3" json:"endpoint_picker,omitempty"`
FailureMode BackendPolicySpec_InferenceRouting_FailureMode `protobuf:"varint,2,opt,name=failure_mode,json=failureMode,proto3,enum=agentgateway.dev.resource.BackendPolicySpec_InferenceRouting_FailureMode" json:"failure_mode,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_InferenceRouting) Reset() {
*x = BackendPolicySpec_InferenceRouting{}
mi := &file_resource_proto_msgTypes[108]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_InferenceRouting) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_InferenceRouting) ProtoMessage() {}
func (x *BackendPolicySpec_InferenceRouting) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[108]
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 BackendPolicySpec_InferenceRouting.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_InferenceRouting) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 2}
}
func (x *BackendPolicySpec_InferenceRouting) GetEndpointPicker() *BackendReference {
if x != nil {
return x.EndpointPicker
}
return nil
}
func (x *BackendPolicySpec_InferenceRouting) GetFailureMode() BackendPolicySpec_InferenceRouting_FailureMode {
if x != nil {
return x.FailureMode
}
return BackendPolicySpec_InferenceRouting_UNKNOWN
}
type BackendPolicySpec_Eviction struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Base time to evict (e.g. 3s, 10s). The actual ejection time equals
// base * times_ejected, growing without cap via multiplicative backoff.
// If all endpoints are evicted, the loadbalancer falls back to returning
// evicted endpoints rather than failing entirely.
Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
// Health score (0.0–1.0) to assign to a backend when it returns from eviction.
// For example, 0.5 brings the backend back at half-health so it recovers gradually,
// while 1.0 restores it to full health immediately.
// When unset, the health score is left unchanged on recovery (i.e. the backend
// returns at whatever score it had when it was evicted).
RestoreHealth *float64 `protobuf:"fixed64,3,opt,name=restore_health,json=restoreHealth,proto3,oneof" json:"restore_health,omitempty"`
// Number of consecutive unhealthy responses required before evicting the backend.
// For example, 3 means the backend must fail 3 times in a row before being evicted.
// When both consecutive_failures and health_threshold are set, eviction triggers when
// either condition is met. When neither is set, a single unhealthy response triggers eviction.
ConsecutiveFailures *int32 `protobuf:"varint,5,opt,name=consecutive_failures,json=consecutiveFailures,proto3,oneof" json:"consecutive_failures,omitempty"`
// EWMA health score threshold (0.0–1.0) below which an unhealthy backend is evicted.
// When set, the backend is only evicted if its exponentially-weighted moving average health
// score drops below this value. Unlike consecutive_failures (which counts consecutive failures),
// this uses a sliding-window average so a single success can delay eviction.
// When both health_threshold and consecutive_failures are set, eviction triggers when
// either condition is met. When neither is set, a single unhealthy response triggers eviction.
HealthThreshold *float64 `protobuf:"fixed64,6,opt,name=health_threshold,json=healthThreshold,proto3,oneof" json:"health_threshold,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Eviction) Reset() {
*x = BackendPolicySpec_Eviction{}
mi := &file_resource_proto_msgTypes[109]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Eviction) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Eviction) ProtoMessage() {}
func (x *BackendPolicySpec_Eviction) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[109]
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 BackendPolicySpec_Eviction.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Eviction) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 3}
}
func (x *BackendPolicySpec_Eviction) GetDuration() *durationpb.Duration {
if x != nil {
return x.Duration
}
return nil
}
func (x *BackendPolicySpec_Eviction) GetRestoreHealth() float64 {
if x != nil && x.RestoreHealth != nil {
return *x.RestoreHealth
}
return 0
}
func (x *BackendPolicySpec_Eviction) GetConsecutiveFailures() int32 {
if x != nil && x.ConsecutiveFailures != nil {
return *x.ConsecutiveFailures
}
return 0
}
func (x *BackendPolicySpec_Eviction) GetHealthThreshold() float64 {
if x != nil && x.HealthThreshold != nil {
return *x.HealthThreshold
}
return 0
}
type BackendPolicySpec_Health struct {
state protoimpl.MessageState `protogen:"open.v1"`
// cel expression evaluated per request to determine if eviction should be triggered
// `true`: treat this response as **unhealthy** (candidate for eviction).
// `false`: treat as healthy (no eviction from this response alone).
// When empty, any 5xx response, or a connection failure, is treated as unhealthy.
// This default lowers the backend's health score but does not trigger eviction on its own.
UnhealthyCondition string `protobuf:"bytes,1,opt,name=unhealthy_condition,json=unhealthyCondition,proto3" json:"unhealthy_condition,omitempty"`
Eviction *BackendPolicySpec_Eviction `protobuf:"bytes,2,opt,name=eviction,proto3" json:"eviction,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Health) Reset() {
*x = BackendPolicySpec_Health{}
mi := &file_resource_proto_msgTypes[110]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Health) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Health) ProtoMessage() {}
func (x *BackendPolicySpec_Health) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[110]
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 BackendPolicySpec_Health.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Health) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 4}
}
func (x *BackendPolicySpec_Health) GetUnhealthyCondition() string {
if x != nil {
return x.UnhealthyCondition
}
return ""
}
func (x *BackendPolicySpec_Health) GetEviction() *BackendPolicySpec_Eviction {
if x != nil {
return x.Eviction
}
return nil
}
type BackendPolicySpec_BackendTLS struct {
state protoimpl.MessageState `protogen:"open.v1"`
Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3,oneof" json:"cert,omitempty"`
Key []byte `protobuf:"bytes,2,opt,name=key,proto3,oneof" json:"key,omitempty"`
// Root to verify. If not set, system certs will be used.
// If no verification is desired, use 'insecure'
Root []byte `protobuf:"bytes,3,opt,name=root,proto3,oneof" json:"root,omitempty"`
Verification BackendPolicySpec_BackendTLS_VerificationMode `protobuf:"varint,4,opt,name=verification,proto3,enum=agentgateway.dev.resource.BackendPolicySpec_BackendTLS_VerificationMode" json:"verification,omitempty"`
// If set, override the SNI explicitly. Otherwise, it is auto-derived.
Hostname *string `protobuf:"bytes,5,opt,name=hostname,proto3,oneof" json:"hostname,omitempty"`
// If set, the request must come from one of these hostnames. Otherwise, the destination
// is used.
VerifySubjectAltNames []string `protobuf:"bytes,6,rep,name=verify_subject_alt_names,json=verifySubjectAltNames,proto3" json:"verify_subject_alt_names,omitempty"`
// Unset: use defaults (h2,http/1.1)
// Set but empty: send none
// Set with values: send those values
Alpn *Alpn `protobuf:"bytes,7,opt,name=alpn,proto3" json:"alpn,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_BackendTLS) Reset() {
*x = BackendPolicySpec_BackendTLS{}
mi := &file_resource_proto_msgTypes[111]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_BackendTLS) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_BackendTLS) ProtoMessage() {}
func (x *BackendPolicySpec_BackendTLS) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[111]
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 BackendPolicySpec_BackendTLS.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_BackendTLS) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 5}
}
func (x *BackendPolicySpec_BackendTLS) GetCert() []byte {
if x != nil {
return x.Cert
}
return nil
}
func (x *BackendPolicySpec_BackendTLS) GetKey() []byte {
if x != nil {
return x.Key
}
return nil
}
func (x *BackendPolicySpec_BackendTLS) GetRoot() []byte {
if x != nil {
return x.Root
}
return nil
}
func (x *BackendPolicySpec_BackendTLS) GetVerification() BackendPolicySpec_BackendTLS_VerificationMode {
if x != nil {
return x.Verification
}
return BackendPolicySpec_BackendTLS_STRICT
}
func (x *BackendPolicySpec_BackendTLS) GetHostname() string {
if x != nil && x.Hostname != nil {
return *x.Hostname
}
return ""
}
func (x *BackendPolicySpec_BackendTLS) GetVerifySubjectAltNames() []string {
if x != nil {
return x.VerifySubjectAltNames
}
return nil
}
func (x *BackendPolicySpec_BackendTLS) GetAlpn() *Alpn {
if x != nil {
return x.Alpn
}
return nil
}
type BackendPolicySpec_BackendHTTP struct {
state protoimpl.MessageState `protogen:"open.v1"`
Version BackendPolicySpec_BackendHTTP_HttpVersion `protobuf:"varint,1,opt,name=version,proto3,enum=agentgateway.dev.resource.BackendPolicySpec_BackendHTTP_HttpVersion" json:"version,omitempty"`
RequestTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=request_timeout,json=requestTimeout,proto3" json:"request_timeout,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_BackendHTTP) Reset() {
*x = BackendPolicySpec_BackendHTTP{}
mi := &file_resource_proto_msgTypes[112]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_BackendHTTP) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_BackendHTTP) ProtoMessage() {}
func (x *BackendPolicySpec_BackendHTTP) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[112]
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 BackendPolicySpec_BackendHTTP.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_BackendHTTP) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 6}
}
func (x *BackendPolicySpec_BackendHTTP) GetVersion() BackendPolicySpec_BackendHTTP_HttpVersion {
if x != nil {
return x.Version
}
return BackendPolicySpec_BackendHTTP_UNSPECIFIED
}
func (x *BackendPolicySpec_BackendHTTP) GetRequestTimeout() *durationpb.Duration {
if x != nil {
return x.RequestTimeout
}
return nil
}
type BackendPolicySpec_BackendTunnel struct {
state protoimpl.MessageState `protogen:"open.v1"`
Proxy *BackendReference `protobuf:"bytes,1,opt,name=proxy,proto3" json:"proxy,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_BackendTunnel) Reset() {
*x = BackendPolicySpec_BackendTunnel{}
mi := &file_resource_proto_msgTypes[113]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_BackendTunnel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_BackendTunnel) ProtoMessage() {}
func (x *BackendPolicySpec_BackendTunnel) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[113]
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 BackendPolicySpec_BackendTunnel.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_BackendTunnel) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 7}
}
func (x *BackendPolicySpec_BackendTunnel) GetProxy() *BackendReference {
if x != nil {
return x.Proxy
}
return nil
}
type BackendPolicySpec_BackendTCP struct {
state protoimpl.MessageState `protogen:"open.v1"`
Keepalive *KeepaliveConfig `protobuf:"bytes,1,opt,name=keepalive,proto3" json:"keepalive,omitempty"`
ConnectTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_BackendTCP) Reset() {
*x = BackendPolicySpec_BackendTCP{}
mi := &file_resource_proto_msgTypes[114]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_BackendTCP) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_BackendTCP) ProtoMessage() {}
func (x *BackendPolicySpec_BackendTCP) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[114]
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 BackendPolicySpec_BackendTCP.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_BackendTCP) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 8}
}
func (x *BackendPolicySpec_BackendTCP) GetKeepalive() *KeepaliveConfig {
if x != nil {
return x.Keepalive
}
return nil
}
func (x *BackendPolicySpec_BackendTCP) GetConnectTimeout() *durationpb.Duration {
if x != nil {
return x.ConnectTimeout
}
return nil
}
type BackendPolicySpec_McpAuthorization struct {
state protoimpl.MessageState `protogen:"open.v1"`
Allow []string `protobuf:"bytes,1,rep,name=allow,proto3" json:"allow,omitempty"`
Deny []string `protobuf:"bytes,2,rep,name=deny,proto3" json:"deny,omitempty"`
Require []string `protobuf:"bytes,3,rep,name=require,proto3" json:"require,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_McpAuthorization) Reset() {
*x = BackendPolicySpec_McpAuthorization{}
mi := &file_resource_proto_msgTypes[115]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_McpAuthorization) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_McpAuthorization) ProtoMessage() {}
func (x *BackendPolicySpec_McpAuthorization) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[115]
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 BackendPolicySpec_McpAuthorization.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_McpAuthorization) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 9}
}
func (x *BackendPolicySpec_McpAuthorization) GetAllow() []string {
if x != nil {
return x.Allow
}
return nil
}
func (x *BackendPolicySpec_McpAuthorization) GetDeny() []string {
if x != nil {
return x.Deny
}
return nil
}
func (x *BackendPolicySpec_McpAuthorization) GetRequire() []string {
if x != nil {
return x.Require
}
return nil
}
type BackendPolicySpec_McpAuthentication struct {
state protoimpl.MessageState `protogen:"open.v1"`
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
Audiences []string `protobuf:"bytes,2,rep,name=audiences,proto3" json:"audiences,omitempty"`
JwksInline string `protobuf:"bytes,3,opt,name=jwks_inline,json=jwksInline,proto3" json:"jwks_inline,omitempty"`
Provider BackendPolicySpec_McpAuthentication_McpIDP `protobuf:"varint,4,opt,name=provider,proto3,enum=agentgateway.dev.resource.BackendPolicySpec_McpAuthentication_McpIDP" json:"provider,omitempty"`
ResourceMetadata *BackendPolicySpec_McpAuthentication_ResourceMetadata `protobuf:"bytes,5,opt,name=resource_metadata,json=resourceMetadata,proto3" json:"resource_metadata,omitempty"`
// How the JWT validation should behave
Mode BackendPolicySpec_McpAuthentication_Mode `protobuf:"varint,6,opt,name=mode,proto3,enum=agentgateway.dev.resource.BackendPolicySpec_McpAuthentication_Mode" json:"mode,omitempty"`
// JWT validation options controlling which claims must be present.
JwtValidationOptions *JWTValidationOptions `protobuf:"bytes,7,opt,name=jwt_validation_options,json=jwtValidationOptions,proto3" json:"jwt_validation_options,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_McpAuthentication) Reset() {
*x = BackendPolicySpec_McpAuthentication{}
mi := &file_resource_proto_msgTypes[116]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_McpAuthentication) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_McpAuthentication) ProtoMessage() {}
func (x *BackendPolicySpec_McpAuthentication) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[116]
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 BackendPolicySpec_McpAuthentication.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_McpAuthentication) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 10}
}
func (x *BackendPolicySpec_McpAuthentication) GetIssuer() string {
if x != nil {
return x.Issuer
}
return ""
}
func (x *BackendPolicySpec_McpAuthentication) GetAudiences() []string {
if x != nil {
return x.Audiences
}
return nil
}
func (x *BackendPolicySpec_McpAuthentication) GetJwksInline() string {
if x != nil {
return x.JwksInline
}
return ""
}
func (x *BackendPolicySpec_McpAuthentication) GetProvider() BackendPolicySpec_McpAuthentication_McpIDP {
if x != nil {
return x.Provider
}
return BackendPolicySpec_McpAuthentication_UNSPECIFIED
}
func (x *BackendPolicySpec_McpAuthentication) GetResourceMetadata() *BackendPolicySpec_McpAuthentication_ResourceMetadata {
if x != nil {
return x.ResourceMetadata
}
return nil
}
func (x *BackendPolicySpec_McpAuthentication) GetMode() BackendPolicySpec_McpAuthentication_Mode {
if x != nil {
return x.Mode
}
return BackendPolicySpec_McpAuthentication_OPTIONAL
}
func (x *BackendPolicySpec_McpAuthentication) GetJwtValidationOptions() *JWTValidationOptions {
if x != nil {
return x.JwtValidationOptions
}
return nil
}
type BackendPolicySpec_Ai_Message struct {
state protoimpl.MessageState `protogen:"open.v1"`
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_Message) Reset() {
*x = BackendPolicySpec_Ai_Message{}
mi := &file_resource_proto_msgTypes[117]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_Message) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_Message) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_Message) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[117]
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 BackendPolicySpec_Ai_Message.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_Message) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 0}
}
func (x *BackendPolicySpec_Ai_Message) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *BackendPolicySpec_Ai_Message) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
type BackendPolicySpec_Ai_PromptEnrichment struct {
state protoimpl.MessageState `protogen:"open.v1"`
Append []*BackendPolicySpec_Ai_Message `protobuf:"bytes,1,rep,name=append,proto3" json:"append,omitempty"`
Prepend []*BackendPolicySpec_Ai_Message `protobuf:"bytes,2,rep,name=prepend,proto3" json:"prepend,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_PromptEnrichment) Reset() {
*x = BackendPolicySpec_Ai_PromptEnrichment{}
mi := &file_resource_proto_msgTypes[118]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_PromptEnrichment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_PromptEnrichment) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_PromptEnrichment) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[118]
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 BackendPolicySpec_Ai_PromptEnrichment.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_PromptEnrichment) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 1}
}
func (x *BackendPolicySpec_Ai_PromptEnrichment) GetAppend() []*BackendPolicySpec_Ai_Message {
if x != nil {
return x.Append
}
return nil
}
func (x *BackendPolicySpec_Ai_PromptEnrichment) GetPrepend() []*BackendPolicySpec_Ai_Message {
if x != nil {
return x.Prepend
}
return nil
}
type BackendPolicySpec_Ai_RegexRule struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Kind:
//
// *BackendPolicySpec_Ai_RegexRule_Builtin
// *BackendPolicySpec_Ai_RegexRule_Regex
Kind isBackendPolicySpec_Ai_RegexRule_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_RegexRule) Reset() {
*x = BackendPolicySpec_Ai_RegexRule{}
mi := &file_resource_proto_msgTypes[119]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_RegexRule) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_RegexRule) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_RegexRule) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[119]
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 BackendPolicySpec_Ai_RegexRule.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_RegexRule) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 2}
}
func (x *BackendPolicySpec_Ai_RegexRule) GetKind() isBackendPolicySpec_Ai_RegexRule_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *BackendPolicySpec_Ai_RegexRule) GetBuiltin() BackendPolicySpec_Ai_BuiltinRegexRule {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_RegexRule_Builtin); ok {
return x.Builtin
}
}
return BackendPolicySpec_Ai_BUILTIN_UNSPECIFIED
}
func (x *BackendPolicySpec_Ai_RegexRule) GetRegex() string {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_RegexRule_Regex); ok {
return x.Regex
}
}
return ""
}
type isBackendPolicySpec_Ai_RegexRule_Kind interface {
isBackendPolicySpec_Ai_RegexRule_Kind()
}
type BackendPolicySpec_Ai_RegexRule_Builtin struct {
Builtin BackendPolicySpec_Ai_BuiltinRegexRule `protobuf:"varint,1,opt,name=builtin,proto3,enum=agentgateway.dev.resource.BackendPolicySpec_Ai_BuiltinRegexRule,oneof"`
}
type BackendPolicySpec_Ai_RegexRule_Regex struct {
Regex string `protobuf:"bytes,2,opt,name=regex,proto3,oneof"`
}
func (*BackendPolicySpec_Ai_RegexRule_Builtin) isBackendPolicySpec_Ai_RegexRule_Kind() {}
func (*BackendPolicySpec_Ai_RegexRule_Regex) isBackendPolicySpec_Ai_RegexRule_Kind() {}
type BackendPolicySpec_Ai_RegexRules struct {
state protoimpl.MessageState `protogen:"open.v1"`
Action BackendPolicySpec_Ai_ActionKind `protobuf:"varint,1,opt,name=action,proto3,enum=agentgateway.dev.resource.BackendPolicySpec_Ai_ActionKind" json:"action,omitempty"`
Rules []*BackendPolicySpec_Ai_RegexRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_RegexRules) Reset() {
*x = BackendPolicySpec_Ai_RegexRules{}
mi := &file_resource_proto_msgTypes[120]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_RegexRules) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_RegexRules) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_RegexRules) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[120]
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 BackendPolicySpec_Ai_RegexRules.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_RegexRules) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 3}
}
func (x *BackendPolicySpec_Ai_RegexRules) GetAction() BackendPolicySpec_Ai_ActionKind {
if x != nil {
return x.Action
}
return BackendPolicySpec_Ai_ACTION_UNSPECIFIED
}
func (x *BackendPolicySpec_Ai_RegexRules) GetRules() []*BackendPolicySpec_Ai_RegexRule {
if x != nil {
return x.Rules
}
return nil
}
type BackendPolicySpec_Ai_Webhook struct {
state protoimpl.MessageState `protogen:"open.v1"`
Backend *BackendReference `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"`
ForwardHeaderMatches []*HeaderMatch `protobuf:"bytes,3,rep,name=forward_header_matches,json=forwardHeaderMatches,proto3" json:"forward_header_matches,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_Webhook) Reset() {
*x = BackendPolicySpec_Ai_Webhook{}
mi := &file_resource_proto_msgTypes[121]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_Webhook) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_Webhook) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_Webhook) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[121]
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 BackendPolicySpec_Ai_Webhook.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_Webhook) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 4}
}
func (x *BackendPolicySpec_Ai_Webhook) GetBackend() *BackendReference {
if x != nil {
return x.Backend
}
return nil
}
func (x *BackendPolicySpec_Ai_Webhook) GetForwardHeaderMatches() []*HeaderMatch {
if x != nil {
return x.ForwardHeaderMatches
}
return nil
}
type BackendPolicySpec_Ai_Moderation struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Model to use. Defaults to `omni-moderation-latest`
Model *string `protobuf:"bytes,1,opt,name=model,proto3,oneof" json:"model,omitempty"`
InlinePolicies []*BackendPolicySpec `protobuf:"bytes,2,rep,name=inline_policies,json=inlinePolicies,proto3" json:"inline_policies,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_Moderation) Reset() {
*x = BackendPolicySpec_Ai_Moderation{}
mi := &file_resource_proto_msgTypes[122]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_Moderation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_Moderation) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_Moderation) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[122]
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 BackendPolicySpec_Ai_Moderation.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_Moderation) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 5}
}
func (x *BackendPolicySpec_Ai_Moderation) GetModel() string {
if x != nil && x.Model != nil {
return *x.Model
}
return ""
}
func (x *BackendPolicySpec_Ai_Moderation) GetInlinePolicies() []*BackendPolicySpec {
if x != nil {
return x.InlinePolicies
}
return nil
}
type BackendPolicySpec_Ai_BedrockGuardrails struct {
state protoimpl.MessageState `protogen:"open.v1"`
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// AWS region where the guardrail is deployed (e.g., "us-west-2")
Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
InlinePolicies []*BackendPolicySpec `protobuf:"bytes,4,rep,name=inline_policies,json=inlinePolicies,proto3" json:"inline_policies,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_BedrockGuardrails) Reset() {
*x = BackendPolicySpec_Ai_BedrockGuardrails{}
mi := &file_resource_proto_msgTypes[123]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_BedrockGuardrails) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_BedrockGuardrails) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_BedrockGuardrails) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[123]
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 BackendPolicySpec_Ai_BedrockGuardrails.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_BedrockGuardrails) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 6}
}
func (x *BackendPolicySpec_Ai_BedrockGuardrails) GetIdentifier() string {
if x != nil {
return x.Identifier
}
return ""
}
func (x *BackendPolicySpec_Ai_BedrockGuardrails) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *BackendPolicySpec_Ai_BedrockGuardrails) GetRegion() string {
if x != nil {
return x.Region
}
return ""
}
func (x *BackendPolicySpec_Ai_BedrockGuardrails) GetInlinePolicies() []*BackendPolicySpec {
if x != nil {
return x.InlinePolicies
}
return nil
}
type BackendPolicySpec_Ai_GoogleModelArmor struct {
state protoimpl.MessageState `protogen:"open.v1"`
TemplateId string `protobuf:"bytes,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// default: us-central1
Location *string `protobuf:"bytes,3,opt,name=location,proto3,oneof" json:"location,omitempty"`
InlinePolicies []*BackendPolicySpec `protobuf:"bytes,4,rep,name=inline_policies,json=inlinePolicies,proto3" json:"inline_policies,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_GoogleModelArmor) Reset() {
*x = BackendPolicySpec_Ai_GoogleModelArmor{}
mi := &file_resource_proto_msgTypes[124]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_GoogleModelArmor) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_GoogleModelArmor) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_GoogleModelArmor) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[124]
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 BackendPolicySpec_Ai_GoogleModelArmor.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_GoogleModelArmor) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 7}
}
func (x *BackendPolicySpec_Ai_GoogleModelArmor) GetTemplateId() string {
if x != nil {
return x.TemplateId
}
return ""
}
func (x *BackendPolicySpec_Ai_GoogleModelArmor) GetProjectId() string {
if x != nil {
return x.ProjectId
}
return ""
}
func (x *BackendPolicySpec_Ai_GoogleModelArmor) GetLocation() string {
if x != nil && x.Location != nil {
return *x.Location
}
return ""
}
func (x *BackendPolicySpec_Ai_GoogleModelArmor) GetInlinePolicies() []*BackendPolicySpec {
if x != nil {
return x.InlinePolicies
}
return nil
}
// Response sent when rejecting a request
type BackendPolicySpec_Ai_RequestRejection struct {
state protoimpl.MessageState `protogen:"open.v1"`
Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
Status uint32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_RequestRejection) Reset() {
*x = BackendPolicySpec_Ai_RequestRejection{}
mi := &file_resource_proto_msgTypes[125]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_RequestRejection) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_RequestRejection) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_RequestRejection) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[125]
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 BackendPolicySpec_Ai_RequestRejection.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_RequestRejection) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 8}
}
func (x *BackendPolicySpec_Ai_RequestRejection) GetBody() []byte {
if x != nil {
return x.Body
}
return nil
}
func (x *BackendPolicySpec_Ai_RequestRejection) GetStatus() uint32 {
if x != nil {
return x.Status
}
return 0
}
// Configuration for guarding/processing LLM responses
type BackendPolicySpec_Ai_ResponseGuard struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Response to send when response is rejected
Rejection *BackendPolicySpec_Ai_RequestRejection `protobuf:"bytes,1,opt,name=rejection,proto3" json:"rejection,omitempty"`
// Types that are valid to be assigned to Kind:
//
// *BackendPolicySpec_Ai_ResponseGuard_Regex
// *BackendPolicySpec_Ai_ResponseGuard_Webhook
// *BackendPolicySpec_Ai_ResponseGuard_GoogleModelArmor
// *BackendPolicySpec_Ai_ResponseGuard_BedrockGuardrails
Kind isBackendPolicySpec_Ai_ResponseGuard_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_ResponseGuard) Reset() {
*x = BackendPolicySpec_Ai_ResponseGuard{}
mi := &file_resource_proto_msgTypes[126]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_ResponseGuard) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_ResponseGuard) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_ResponseGuard) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[126]
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 BackendPolicySpec_Ai_ResponseGuard.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_ResponseGuard) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 9}
}
func (x *BackendPolicySpec_Ai_ResponseGuard) GetRejection() *BackendPolicySpec_Ai_RequestRejection {
if x != nil {
return x.Rejection
}
return nil
}
func (x *BackendPolicySpec_Ai_ResponseGuard) GetKind() isBackendPolicySpec_Ai_ResponseGuard_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *BackendPolicySpec_Ai_ResponseGuard) GetRegex() *BackendPolicySpec_Ai_RegexRules {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_ResponseGuard_Regex); ok {
return x.Regex
}
}
return nil
}
func (x *BackendPolicySpec_Ai_ResponseGuard) GetWebhook() *BackendPolicySpec_Ai_Webhook {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_ResponseGuard_Webhook); ok {
return x.Webhook
}
}
return nil
}
func (x *BackendPolicySpec_Ai_ResponseGuard) GetGoogleModelArmor() *BackendPolicySpec_Ai_GoogleModelArmor {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_ResponseGuard_GoogleModelArmor); ok {
return x.GoogleModelArmor
}
}
return nil
}
func (x *BackendPolicySpec_Ai_ResponseGuard) GetBedrockGuardrails() *BackendPolicySpec_Ai_BedrockGuardrails {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_ResponseGuard_BedrockGuardrails); ok {
return x.BedrockGuardrails
}
}
return nil
}
type isBackendPolicySpec_Ai_ResponseGuard_Kind interface {
isBackendPolicySpec_Ai_ResponseGuard_Kind()
}
type BackendPolicySpec_Ai_ResponseGuard_Regex struct {
Regex *BackendPolicySpec_Ai_RegexRules `protobuf:"bytes,2,opt,name=regex,proto3,oneof"`
}
type BackendPolicySpec_Ai_ResponseGuard_Webhook struct {
Webhook *BackendPolicySpec_Ai_Webhook `protobuf:"bytes,3,opt,name=webhook,proto3,oneof"`
}
type BackendPolicySpec_Ai_ResponseGuard_GoogleModelArmor struct {
GoogleModelArmor *BackendPolicySpec_Ai_GoogleModelArmor `protobuf:"bytes,4,opt,name=google_model_armor,json=googleModelArmor,proto3,oneof"`
}
type BackendPolicySpec_Ai_ResponseGuard_BedrockGuardrails struct {
BedrockGuardrails *BackendPolicySpec_Ai_BedrockGuardrails `protobuf:"bytes,5,opt,name=bedrock_guardrails,json=bedrockGuardrails,proto3,oneof"`
}
func (*BackendPolicySpec_Ai_ResponseGuard_Regex) isBackendPolicySpec_Ai_ResponseGuard_Kind() {}
func (*BackendPolicySpec_Ai_ResponseGuard_Webhook) isBackendPolicySpec_Ai_ResponseGuard_Kind() {}
func (*BackendPolicySpec_Ai_ResponseGuard_GoogleModelArmor) isBackendPolicySpec_Ai_ResponseGuard_Kind() {
}
func (*BackendPolicySpec_Ai_ResponseGuard_BedrockGuardrails) isBackendPolicySpec_Ai_ResponseGuard_Kind() {
}
// Configuration for guarding/processing prompts
type BackendPolicySpec_Ai_RequestGuard struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Response to send when request is rejected
Rejection *BackendPolicySpec_Ai_RequestRejection `protobuf:"bytes,1,opt,name=rejection,proto3" json:"rejection,omitempty"`
// Types that are valid to be assigned to Kind:
//
// *BackendPolicySpec_Ai_RequestGuard_Regex
// *BackendPolicySpec_Ai_RequestGuard_Webhook
// *BackendPolicySpec_Ai_RequestGuard_OpenaiModeration
// *BackendPolicySpec_Ai_RequestGuard_GoogleModelArmor
// *BackendPolicySpec_Ai_RequestGuard_BedrockGuardrails
Kind isBackendPolicySpec_Ai_RequestGuard_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_RequestGuard) Reset() {
*x = BackendPolicySpec_Ai_RequestGuard{}
mi := &file_resource_proto_msgTypes[127]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_RequestGuard) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_RequestGuard) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_RequestGuard) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[127]
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 BackendPolicySpec_Ai_RequestGuard.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_RequestGuard) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 10}
}
func (x *BackendPolicySpec_Ai_RequestGuard) GetRejection() *BackendPolicySpec_Ai_RequestRejection {
if x != nil {
return x.Rejection
}
return nil
}
func (x *BackendPolicySpec_Ai_RequestGuard) GetKind() isBackendPolicySpec_Ai_RequestGuard_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *BackendPolicySpec_Ai_RequestGuard) GetRegex() *BackendPolicySpec_Ai_RegexRules {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_RequestGuard_Regex); ok {
return x.Regex
}
}
return nil
}
func (x *BackendPolicySpec_Ai_RequestGuard) GetWebhook() *BackendPolicySpec_Ai_Webhook {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_RequestGuard_Webhook); ok {
return x.Webhook
}
}
return nil
}
func (x *BackendPolicySpec_Ai_RequestGuard) GetOpenaiModeration() *BackendPolicySpec_Ai_Moderation {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_RequestGuard_OpenaiModeration); ok {
return x.OpenaiModeration
}
}
return nil
}
func (x *BackendPolicySpec_Ai_RequestGuard) GetGoogleModelArmor() *BackendPolicySpec_Ai_GoogleModelArmor {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_RequestGuard_GoogleModelArmor); ok {
return x.GoogleModelArmor
}
}
return nil
}
func (x *BackendPolicySpec_Ai_RequestGuard) GetBedrockGuardrails() *BackendPolicySpec_Ai_BedrockGuardrails {
if x != nil {
if x, ok := x.Kind.(*BackendPolicySpec_Ai_RequestGuard_BedrockGuardrails); ok {
return x.BedrockGuardrails
}
}
return nil
}
type isBackendPolicySpec_Ai_RequestGuard_Kind interface {
isBackendPolicySpec_Ai_RequestGuard_Kind()
}
type BackendPolicySpec_Ai_RequestGuard_Regex struct {
Regex *BackendPolicySpec_Ai_RegexRules `protobuf:"bytes,2,opt,name=regex,proto3,oneof"`
}
type BackendPolicySpec_Ai_RequestGuard_Webhook struct {
Webhook *BackendPolicySpec_Ai_Webhook `protobuf:"bytes,3,opt,name=webhook,proto3,oneof"`
}
type BackendPolicySpec_Ai_RequestGuard_OpenaiModeration struct {
OpenaiModeration *BackendPolicySpec_Ai_Moderation `protobuf:"bytes,4,opt,name=openai_moderation,json=openaiModeration,proto3,oneof"`
}
type BackendPolicySpec_Ai_RequestGuard_GoogleModelArmor struct {
GoogleModelArmor *BackendPolicySpec_Ai_GoogleModelArmor `protobuf:"bytes,5,opt,name=google_model_armor,json=googleModelArmor,proto3,oneof"`
}
type BackendPolicySpec_Ai_RequestGuard_BedrockGuardrails struct {
BedrockGuardrails *BackendPolicySpec_Ai_BedrockGuardrails `protobuf:"bytes,6,opt,name=bedrock_guardrails,json=bedrockGuardrails,proto3,oneof"`
}
func (*BackendPolicySpec_Ai_RequestGuard_Regex) isBackendPolicySpec_Ai_RequestGuard_Kind() {}
func (*BackendPolicySpec_Ai_RequestGuard_Webhook) isBackendPolicySpec_Ai_RequestGuard_Kind() {}
func (*BackendPolicySpec_Ai_RequestGuard_OpenaiModeration) isBackendPolicySpec_Ai_RequestGuard_Kind() {
}
func (*BackendPolicySpec_Ai_RequestGuard_GoogleModelArmor) isBackendPolicySpec_Ai_RequestGuard_Kind() {
}
func (*BackendPolicySpec_Ai_RequestGuard_BedrockGuardrails) isBackendPolicySpec_Ai_RequestGuard_Kind() {
}
type BackendPolicySpec_Ai_PromptGuard struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Guards applied to client requests before they reach the LLM
Request []*BackendPolicySpec_Ai_RequestGuard `protobuf:"bytes,1,rep,name=request,proto3" json:"request,omitempty"`
// Guards applied to LLM responses before they reach the client
Response []*BackendPolicySpec_Ai_ResponseGuard `protobuf:"bytes,2,rep,name=response,proto3" json:"response,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_PromptGuard) Reset() {
*x = BackendPolicySpec_Ai_PromptGuard{}
mi := &file_resource_proto_msgTypes[128]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_PromptGuard) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_PromptGuard) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_PromptGuard) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[128]
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 BackendPolicySpec_Ai_PromptGuard.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_PromptGuard) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 11}
}
func (x *BackendPolicySpec_Ai_PromptGuard) GetRequest() []*BackendPolicySpec_Ai_RequestGuard {
if x != nil {
return x.Request
}
return nil
}
func (x *BackendPolicySpec_Ai_PromptGuard) GetResponse() []*BackendPolicySpec_Ai_ResponseGuard {
if x != nil {
return x.Response
}
return nil
}
// Default JSON key-value pairs to add to the LLM request if the key is not set in the request.
type BackendPolicySpec_Ai_PromptCaching struct {
state protoimpl.MessageState `protogen:"open.v1"`
CacheSystem bool `protobuf:"varint,1,opt,name=cache_system,json=cacheSystem,proto3" json:"cache_system,omitempty"`
CacheMessages bool `protobuf:"varint,2,opt,name=cache_messages,json=cacheMessages,proto3" json:"cache_messages,omitempty"`
CacheTools bool `protobuf:"varint,3,opt,name=cache_tools,json=cacheTools,proto3" json:"cache_tools,omitempty"`
MinTokens *uint32 `protobuf:"varint,4,opt,name=min_tokens,json=minTokens,proto3,oneof" json:"min_tokens,omitempty"`
CacheMessageOffset *uint32 `protobuf:"varint,5,opt,name=cache_message_offset,json=cacheMessageOffset,proto3,oneof" json:"cache_message_offset,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_Ai_PromptCaching) Reset() {
*x = BackendPolicySpec_Ai_PromptCaching{}
mi := &file_resource_proto_msgTypes[129]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_Ai_PromptCaching) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_Ai_PromptCaching) ProtoMessage() {}
func (x *BackendPolicySpec_Ai_PromptCaching) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[129]
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 BackendPolicySpec_Ai_PromptCaching.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_Ai_PromptCaching) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 0, 12}
}
func (x *BackendPolicySpec_Ai_PromptCaching) GetCacheSystem() bool {
if x != nil {
return x.CacheSystem
}
return false
}
func (x *BackendPolicySpec_Ai_PromptCaching) GetCacheMessages() bool {
if x != nil {
return x.CacheMessages
}
return false
}
func (x *BackendPolicySpec_Ai_PromptCaching) GetCacheTools() bool {
if x != nil {
return x.CacheTools
}
return false
}
func (x *BackendPolicySpec_Ai_PromptCaching) GetMinTokens() uint32 {
if x != nil && x.MinTokens != nil {
return *x.MinTokens
}
return 0
}
func (x *BackendPolicySpec_Ai_PromptCaching) GetCacheMessageOffset() uint32 {
if x != nil && x.CacheMessageOffset != nil {
return *x.CacheMessageOffset
}
return 0
}
type BackendPolicySpec_McpAuthentication_ResourceMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
Extra map[string]*structpb.Value `protobuf:"bytes,1,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendPolicySpec_McpAuthentication_ResourceMetadata) Reset() {
*x = BackendPolicySpec_McpAuthentication_ResourceMetadata{}
mi := &file_resource_proto_msgTypes[135]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendPolicySpec_McpAuthentication_ResourceMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendPolicySpec_McpAuthentication_ResourceMetadata) ProtoMessage() {}
func (x *BackendPolicySpec_McpAuthentication_ResourceMetadata) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[135]
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 BackendPolicySpec_McpAuthentication_ResourceMetadata.ProtoReflect.Descriptor instead.
func (*BackendPolicySpec_McpAuthentication_ResourceMetadata) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{46, 10, 0}
}
func (x *BackendPolicySpec_McpAuthentication_ResourceMetadata) GetExtra() map[string]*structpb.Value {
if x != nil {
return x.Extra
}
return nil
}
type AIBackend_HostOverride struct {
state protoimpl.MessageState `protogen:"open.v1"`
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_HostOverride) Reset() {
*x = AIBackend_HostOverride{}
mi := &file_resource_proto_msgTypes[137]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_HostOverride) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_HostOverride) ProtoMessage() {}
func (x *AIBackend_HostOverride) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[137]
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 AIBackend_HostOverride.ProtoReflect.Descriptor instead.
func (*AIBackend_HostOverride) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 0}
}
func (x *AIBackend_HostOverride) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *AIBackend_HostOverride) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
type AIBackend_OpenAI struct {
state protoimpl.MessageState `protogen:"open.v1"`
Model *string `protobuf:"bytes,1,opt,name=model,proto3,oneof" json:"model,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_OpenAI) Reset() {
*x = AIBackend_OpenAI{}
mi := &file_resource_proto_msgTypes[138]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_OpenAI) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_OpenAI) ProtoMessage() {}
func (x *AIBackend_OpenAI) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[138]
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 AIBackend_OpenAI.ProtoReflect.Descriptor instead.
func (*AIBackend_OpenAI) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 1}
}
func (x *AIBackend_OpenAI) GetModel() string {
if x != nil && x.Model != nil {
return *x.Model
}
return ""
}
type AIBackend_Gemini struct {
state protoimpl.MessageState `protogen:"open.v1"`
Model *string `protobuf:"bytes,1,opt,name=model,proto3,oneof" json:"model,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_Gemini) Reset() {
*x = AIBackend_Gemini{}
mi := &file_resource_proto_msgTypes[139]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_Gemini) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_Gemini) ProtoMessage() {}
func (x *AIBackend_Gemini) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[139]
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 AIBackend_Gemini.ProtoReflect.Descriptor instead.
func (*AIBackend_Gemini) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 2}
}
func (x *AIBackend_Gemini) GetModel() string {
if x != nil && x.Model != nil {
return *x.Model
}
return ""
}
type AIBackend_Vertex struct {
state protoimpl.MessageState `protogen:"open.v1"`
Model *string `protobuf:"bytes,1,opt,name=model,proto3,oneof" json:"model,omitempty"`
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_Vertex) Reset() {
*x = AIBackend_Vertex{}
mi := &file_resource_proto_msgTypes[140]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_Vertex) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_Vertex) ProtoMessage() {}
func (x *AIBackend_Vertex) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[140]
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 AIBackend_Vertex.ProtoReflect.Descriptor instead.
func (*AIBackend_Vertex) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 3}
}
func (x *AIBackend_Vertex) GetModel() string {
if x != nil && x.Model != nil {
return *x.Model
}
return ""
}
func (x *AIBackend_Vertex) GetRegion() string {
if x != nil {
return x.Region
}
return ""
}
func (x *AIBackend_Vertex) GetProjectId() string {
if x != nil {
return x.ProjectId
}
return ""
}
type AIBackend_Anthropic struct {
state protoimpl.MessageState `protogen:"open.v1"`
Model *string `protobuf:"bytes,1,opt,name=model,proto3,oneof" json:"model,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_Anthropic) Reset() {
*x = AIBackend_Anthropic{}
mi := &file_resource_proto_msgTypes[141]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_Anthropic) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_Anthropic) ProtoMessage() {}
func (x *AIBackend_Anthropic) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[141]
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 AIBackend_Anthropic.ProtoReflect.Descriptor instead.
func (*AIBackend_Anthropic) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 4}
}
func (x *AIBackend_Anthropic) GetModel() string {
if x != nil && x.Model != nil {
return *x.Model
}
return ""
}
type AIBackend_Bedrock struct {
state protoimpl.MessageState `protogen:"open.v1"`
Model *string `protobuf:"bytes,1,opt,name=model,proto3,oneof" json:"model,omitempty"`
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
GuardrailIdentifier *string `protobuf:"bytes,3,opt,name=guardrail_identifier,json=guardrailIdentifier,proto3,oneof" json:"guardrail_identifier,omitempty"`
GuardrailVersion *string `protobuf:"bytes,4,opt,name=guardrail_version,json=guardrailVersion,proto3,oneof" json:"guardrail_version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_Bedrock) Reset() {
*x = AIBackend_Bedrock{}
mi := &file_resource_proto_msgTypes[142]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_Bedrock) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_Bedrock) ProtoMessage() {}
func (x *AIBackend_Bedrock) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[142]
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 AIBackend_Bedrock.ProtoReflect.Descriptor instead.
func (*AIBackend_Bedrock) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 5}
}
func (x *AIBackend_Bedrock) GetModel() string {
if x != nil && x.Model != nil {
return *x.Model
}
return ""
}
func (x *AIBackend_Bedrock) GetRegion() string {
if x != nil {
return x.Region
}
return ""
}
func (x *AIBackend_Bedrock) GetGuardrailIdentifier() string {
if x != nil && x.GuardrailIdentifier != nil {
return *x.GuardrailIdentifier
}
return ""
}
func (x *AIBackend_Bedrock) GetGuardrailVersion() string {
if x != nil && x.GuardrailVersion != nil {
return *x.GuardrailVersion
}
return ""
}
type AIBackend_AzureOpenAI struct {
state protoimpl.MessageState `protogen:"open.v1"`
Model *string `protobuf:"bytes,1,opt,name=model,proto3,oneof" json:"model,omitempty"`
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
ApiVersion *string `protobuf:"bytes,3,opt,name=api_version,json=apiVersion,proto3,oneof" json:"api_version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_AzureOpenAI) Reset() {
*x = AIBackend_AzureOpenAI{}
mi := &file_resource_proto_msgTypes[143]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_AzureOpenAI) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_AzureOpenAI) ProtoMessage() {}
func (x *AIBackend_AzureOpenAI) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[143]
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 AIBackend_AzureOpenAI.ProtoReflect.Descriptor instead.
func (*AIBackend_AzureOpenAI) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 6}
}
func (x *AIBackend_AzureOpenAI) GetModel() string {
if x != nil && x.Model != nil {
return *x.Model
}
return ""
}
func (x *AIBackend_AzureOpenAI) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *AIBackend_AzureOpenAI) GetApiVersion() string {
if x != nil && x.ApiVersion != nil {
return *x.ApiVersion
}
return ""
}
type AIBackend_Provider struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
HostOverride *AIBackend_HostOverride `protobuf:"bytes,2,opt,name=host_override,json=hostOverride,proto3" json:"host_override,omitempty"`
PathOverride *string `protobuf:"bytes,3,opt,name=path_override,json=pathOverride,proto3,oneof" json:"path_override,omitempty"`
PathPrefix *string `protobuf:"bytes,12,opt,name=path_prefix,json=pathPrefix,proto3,oneof" json:"path_prefix,omitempty"`
// Types that are valid to be assigned to Provider:
//
// *AIBackend_Provider_Openai
// *AIBackend_Provider_Gemini
// *AIBackend_Provider_Vertex
// *AIBackend_Provider_Anthropic
// *AIBackend_Provider_Bedrock
// *AIBackend_Provider_Azureopenai
Provider isAIBackend_Provider_Provider `protobuf_oneof:"provider"`
InlinePolicies []*BackendPolicySpec `protobuf:"bytes,10,rep,name=inline_policies,json=inlinePolicies,proto3" json:"inline_policies,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_Provider) Reset() {
*x = AIBackend_Provider{}
mi := &file_resource_proto_msgTypes[144]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_Provider) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_Provider) ProtoMessage() {}
func (x *AIBackend_Provider) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[144]
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 AIBackend_Provider.ProtoReflect.Descriptor instead.
func (*AIBackend_Provider) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 7}
}
func (x *AIBackend_Provider) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AIBackend_Provider) GetHostOverride() *AIBackend_HostOverride {
if x != nil {
return x.HostOverride
}
return nil
}
func (x *AIBackend_Provider) GetPathOverride() string {
if x != nil && x.PathOverride != nil {
return *x.PathOverride
}
return ""
}
func (x *AIBackend_Provider) GetPathPrefix() string {
if x != nil && x.PathPrefix != nil {
return *x.PathPrefix
}
return ""
}
func (x *AIBackend_Provider) GetProvider() isAIBackend_Provider_Provider {
if x != nil {
return x.Provider
}
return nil
}
func (x *AIBackend_Provider) GetOpenai() *AIBackend_OpenAI {
if x != nil {
if x, ok := x.Provider.(*AIBackend_Provider_Openai); ok {
return x.Openai
}
}
return nil
}
func (x *AIBackend_Provider) GetGemini() *AIBackend_Gemini {
if x != nil {
if x, ok := x.Provider.(*AIBackend_Provider_Gemini); ok {
return x.Gemini
}
}
return nil
}
func (x *AIBackend_Provider) GetVertex() *AIBackend_Vertex {
if x != nil {
if x, ok := x.Provider.(*AIBackend_Provider_Vertex); ok {
return x.Vertex
}
}
return nil
}
func (x *AIBackend_Provider) GetAnthropic() *AIBackend_Anthropic {
if x != nil {
if x, ok := x.Provider.(*AIBackend_Provider_Anthropic); ok {
return x.Anthropic
}
}
return nil
}
func (x *AIBackend_Provider) GetBedrock() *AIBackend_Bedrock {
if x != nil {
if x, ok := x.Provider.(*AIBackend_Provider_Bedrock); ok {
return x.Bedrock
}
}
return nil
}
func (x *AIBackend_Provider) GetAzureopenai() *AIBackend_AzureOpenAI {
if x != nil {
if x, ok := x.Provider.(*AIBackend_Provider_Azureopenai); ok {
return x.Azureopenai
}
}
return nil
}
func (x *AIBackend_Provider) GetInlinePolicies() []*BackendPolicySpec {
if x != nil {
return x.InlinePolicies
}
return nil
}
type isAIBackend_Provider_Provider interface {
isAIBackend_Provider_Provider()
}
type AIBackend_Provider_Openai struct {
Openai *AIBackend_OpenAI `protobuf:"bytes,4,opt,name=openai,proto3,oneof"`
}
type AIBackend_Provider_Gemini struct {
Gemini *AIBackend_Gemini `protobuf:"bytes,5,opt,name=gemini,proto3,oneof"`
}
type AIBackend_Provider_Vertex struct {
Vertex *AIBackend_Vertex `protobuf:"bytes,6,opt,name=vertex,proto3,oneof"`
}
type AIBackend_Provider_Anthropic struct {
Anthropic *AIBackend_Anthropic `protobuf:"bytes,7,opt,name=anthropic,proto3,oneof"`
}
type AIBackend_Provider_Bedrock struct {
Bedrock *AIBackend_Bedrock `protobuf:"bytes,8,opt,name=bedrock,proto3,oneof"`
}
type AIBackend_Provider_Azureopenai struct {
Azureopenai *AIBackend_AzureOpenAI `protobuf:"bytes,11,opt,name=azureopenai,proto3,oneof"`
}
func (*AIBackend_Provider_Openai) isAIBackend_Provider_Provider() {}
func (*AIBackend_Provider_Gemini) isAIBackend_Provider_Provider() {}
func (*AIBackend_Provider_Vertex) isAIBackend_Provider_Provider() {}
func (*AIBackend_Provider_Anthropic) isAIBackend_Provider_Provider() {}
func (*AIBackend_Provider_Bedrock) isAIBackend_Provider_Provider() {}
func (*AIBackend_Provider_Azureopenai) isAIBackend_Provider_Provider() {}
type AIBackend_ProviderGroup struct {
state protoimpl.MessageState `protogen:"open.v1"`
Providers []*AIBackend_Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AIBackend_ProviderGroup) Reset() {
*x = AIBackend_ProviderGroup{}
mi := &file_resource_proto_msgTypes[145]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AIBackend_ProviderGroup) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AIBackend_ProviderGroup) ProtoMessage() {}
func (x *AIBackend_ProviderGroup) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[145]
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 AIBackend_ProviderGroup.ProtoReflect.Descriptor instead.
func (*AIBackend_ProviderGroup) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{51, 8}
}
func (x *AIBackend_ProviderGroup) GetProviders() []*AIBackend_Provider {
if x != nil {
return x.Providers
}
return nil
}
type BackendReference_Service struct {
state protoimpl.MessageState `protogen:"open.v1"`
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BackendReference_Service) Reset() {
*x = BackendReference_Service{}
mi := &file_resource_proto_msgTypes[146]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BackendReference_Service) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendReference_Service) ProtoMessage() {}
func (x *BackendReference_Service) ProtoReflect() protoreflect.Message {
mi := &file_resource_proto_msgTypes[146]
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 BackendReference_Service.ProtoReflect.Descriptor instead.
func (*BackendReference_Service) Descriptor() ([]byte, []int) {
return file_resource_proto_rawDescGZIP(), []int{54, 0}
}
func (x *BackendReference_Service) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *BackendReference_Service) GetHostname() string {
if x != nil {
return x.Hostname
}
return ""
}
var File_resource_proto protoreflect.FileDescriptor
const file_resource_proto_rawDesc = "" +
"\n" +
"\x0eresource.proto\x12\x19agentgateway.dev.resource\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x0eworkload.proto\"\xf4\x03\n" +
"\bResource\x125\n" +
"\x04bind\x18\x01 \x01(\v2\x1f.agentgateway.dev.resource.BindH\x00R\x04bind\x12A\n" +
"\blistener\x18\x02 \x01(\v2#.agentgateway.dev.resource.ListenerH\x00R\blistener\x128\n" +
"\x05route\x18\x03 \x01(\v2 .agentgateway.dev.resource.RouteH\x00R\x05route\x12>\n" +
"\abackend\x18\x04 \x01(\v2\".agentgateway.dev.resource.BackendH\x00R\abackend\x12;\n" +
"\x06policy\x18\x05 \x01(\v2!.agentgateway.dev.resource.PolicyH\x00R\x06policy\x12B\n" +
"\ttcp_route\x18\x06 \x01(\v2#.agentgateway.dev.resource.TCPRouteH\x00R\btcpRoute\x126\n" +
"\bworkload\x18\a \x01(\v2\x18.istio.workload.WorkloadH\x00R\bworkload\x123\n" +
"\aservice\x18\b \x01(\v2\x17.istio.workload.ServiceH\x00R\aserviceB\x06\n" +
"\x04kind\"\xc3\x02\n" +
"\x04Bind\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x12\n" +
"\x04port\x18\x02 \x01(\rR\x04port\x12D\n" +
"\bprotocol\x18\x03 \x01(\x0e2(.agentgateway.dev.resource.Bind.ProtocolR\bprotocol\x12W\n" +
"\x0ftunnel_protocol\x18\x04 \x01(\x0e2..agentgateway.dev.resource.Bind.TunnelProtocolR\x0etunnelProtocol\"&\n" +
"\bProtocol\x12\b\n" +
"\x04HTTP\x10\x00\x12\a\n" +
"\x03TCP\x10\x01\x12\a\n" +
"\x03TLS\x10\x02\"N\n" +
"\x0eTunnelProtocol\x12\n" +
"\n" +
"\x06DIRECT\x10\x00\x12\t\n" +
"\x05PROXY\x10\x01\x12\x12\n" +
"\x0eHBONE_WAYPOINT\x10\x02\x12\x11\n" +
"\rHBONE_GATEWAY\x10\x03\"\x81\x01\n" +
"\tRouteName\x12\x12\n" +
"\x04kind\x18\x01 \x01(\tR\x04kind\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x03 \x01(\tR\tnamespace\x12 \n" +
"\trule_name\x18\x04 \x01(\tH\x00R\bruleName\x88\x01\x01B\f\n" +
"\n" +
"_rule_name\"\xcf\x01\n" +
"\fListenerName\x12!\n" +
"\fgateway_name\x18\x01 \x01(\tR\vgatewayName\x12+\n" +
"\x11gateway_namespace\x18\x02 \x01(\tR\x10gatewayNamespace\x12#\n" +
"\rlistener_name\x18\x03 \x01(\tR\flistenerName\x12J\n" +
"\flistener_set\x18\x04 \x01(\v2'.agentgateway.dev.resource.ResourceNameR\vlistenerSet\"@\n" +
"\fResourceName\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x02 \x01(\tR\tnamespace\"Y\n" +
"\x11TypedResourceName\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x12\n" +
"\x04kind\x18\x03 \x01(\tR\x04kind\"\x89\x02\n" +
"\bListener\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x19\n" +
"\bbind_key\x18\x02 \x01(\tR\abindKey\x12;\n" +
"\x04name\x18\x03 \x01(\v2'.agentgateway.dev.resource.ListenerNameR\x04name\x12\x1a\n" +
"\bhostname\x18\x04 \x01(\tR\bhostname\x12?\n" +
"\bprotocol\x18\x05 \x01(\x0e2#.agentgateway.dev.resource.ProtocolR\bprotocol\x126\n" +
"\x03tls\x18\x06 \x01(\v2$.agentgateway.dev.resource.TLSConfigR\x03tls\"\xb8\x03\n" +
"\x05Route\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12!\n" +
"\flistener_key\x18\x02 \x01(\tR\vlistenerKey\x12C\n" +
"\vservice_key\x18\t \x01(\v2\".istio.workload.NamespacedHostnameR\n" +
"serviceKey\x128\n" +
"\x04name\x18\x03 \x01(\v2$.agentgateway.dev.resource.RouteNameR\x04name\x12\x1c\n" +
"\thostnames\x18\x05 \x03(\tR\thostnames\x12?\n" +
"\amatches\x18\x06 \x03(\v2%.agentgateway.dev.resource.RouteMatchR\amatches\x12C\n" +
"\bbackends\x18\a \x03(\v2'.agentgateway.dev.resource.RouteBackendR\bbackends\x12W\n" +
"\x10traffic_policies\x18\b \x03(\v2,.agentgateway.dev.resource.TrafficPolicySpecR\x0ftrafficPolicies\"\xa1\x02\n" +
"\bTCPRoute\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12!\n" +
"\flistener_key\x18\x02 \x01(\tR\vlistenerKey\x12C\n" +
"\vservice_key\x18\t \x01(\v2\".istio.workload.NamespacedHostnameR\n" +
"serviceKey\x128\n" +
"\x04name\x18\x03 \x01(\v2$.agentgateway.dev.resource.RouteNameR\x04name\x12\x1c\n" +
"\thostnames\x18\x05 \x03(\tR\thostnames\x12C\n" +
"\bbackends\x18\x06 \x03(\v2'.agentgateway.dev.resource.RouteBackendR\bbackends\"\x86\x03\n" +
"\x06Policy\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12@\n" +
"\x04name\x18\x02 \x01(\v2,.agentgateway.dev.resource.TypedResourceNameR\x04name\x12?\n" +
"\x06target\x18\x03 \x01(\v2'.agentgateway.dev.resource.PolicyTargetR\x06target\x12H\n" +
"\atraffic\x18\x04 \x01(\v2,.agentgateway.dev.resource.TrafficPolicySpecH\x00R\atraffic\x12H\n" +
"\abackend\x18\x05 \x01(\v2,.agentgateway.dev.resource.BackendPolicySpecH\x00R\abackend\x12K\n" +
"\bfrontend\x18\x06 \x01(\v2-.agentgateway.dev.resource.FrontendPolicySpecH\x00R\bfrontendB\x06\n" +
"\x04kind\"\xf5\x03\n" +
"\aBackend\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12;\n" +
"\x04name\x18\x02 \x01(\v2'.agentgateway.dev.resource.ResourceNameR\x04name\x12B\n" +
"\x06static\x18\x03 \x01(\v2(.agentgateway.dev.resource.StaticBackendH\x00R\x06static\x126\n" +
"\x02ai\x18\x04 \x01(\v2$.agentgateway.dev.resource.AIBackendH\x00R\x02ai\x129\n" +
"\x03mcp\x18\x05 \x01(\v2%.agentgateway.dev.resource.MCPBackendH\x00R\x03mcp\x12J\n" +
"\adynamic\x18\x06 \x01(\v2..agentgateway.dev.resource.DynamicForwardProxyH\x00R\adynamic\x129\n" +
"\x03aws\x18\b \x01(\v2%.agentgateway.dev.resource.AwsBackendH\x00R\x03aws\x12U\n" +
"\x0finline_policies\x18\a \x03(\v2,.agentgateway.dev.resource.BackendPolicySpecR\x0einlinePoliciesB\x06\n" +
"\x04kind\"\x8b\b\n" +
"\tTLSConfig\x12\x12\n" +
"\x04cert\x18\x01 \x01(\fR\x04cert\x12\x1f\n" +
"\vprivate_key\x18\x02 \x01(\fR\n" +
"privateKey\x12\x17\n" +
"\x04root\x18\x03 \x01(\fH\x00R\x04root\x88\x01\x01\x12U\n" +
"\rcipher_suites\x18\x04 \x03(\x0e20.agentgateway.dev.resource.TLSConfig.CipherSuiteR\fcipherSuites\x12U\n" +
"\vmin_version\x18\x05 \x01(\x0e2/.agentgateway.dev.resource.TLSConfig.TLSVersionH\x01R\n" +
"minVersion\x88\x01\x01\x12U\n" +
"\vmax_version\x18\x06 \x01(\x0e2/.agentgateway.dev.resource.TLSConfig.TLSVersionH\x02R\n" +
"maxVersion\x88\x01\x01\x12J\n" +
"\tmtls_mode\x18\a \x01(\x0e2-.agentgateway.dev.resource.TLSConfig.MTLSModeR\bmtlsMode\"e\n" +
"\n" +
"TLSVersion\x12\x1b\n" +
"\x17TLS_VERSION_UNSPECIFIED\x10\x00\x12\f\n" +
"\bTLS_V1_2\x10\x03\x12\f\n" +
"\bTLS_V1_3\x10\x04\"\x04\b\x01\x10\x01\"\x04\b\x02\x10\x02*\bTLS_V1_0*\bTLS_V1_1\"3\n" +
"\bMTLSMode\x12\n" +
"\n" +
"\x06STRICT\x10\x00\x12\x1b\n" +
"\x17ALLOW_INSECURE_FALLBACK\x10\x01\"\x99\x03\n" +
"\vCipherSuite\x12\x1c\n" +
"\x18CIPHER_SUITE_UNSPECIFIED\x10\x00\x12\x1a\n" +
"\x16TLS_AES_256_GCM_SHA384\x10\x01\x12\x1a\n" +
"\x16TLS_AES_128_GCM_SHA256\x10\x02\x12 \n" +
"\x1cTLS_CHACHA20_POLY1305_SHA256\x10\x03\x12+\n" +
"'TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\x10\x04\x12+\n" +
"'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256\x10\x05\x121\n" +
"-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256\x10\x06\x12)\n" +
"%TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\x10\a\x12)\n" +
"%TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\x10\b\x12/\n" +
"+TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256\x10\tB\a\n" +
"\x05_rootB\x0e\n" +
"\f_min_versionB\x0e\n" +
"\f_max_version\"\x82\x01\n" +
"\aTimeout\x123\n" +
"\arequest\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\arequest\x12B\n" +
"\x0fbackend_request\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x0ebackendRequest\"\x86\x01\n" +
"\x05Retry\x12,\n" +
"\x12retry_status_codes\x18\x01 \x03(\x05R\x10retryStatusCodes\x12\x1a\n" +
"\battempts\x18\x02 \x01(\x05R\battempts\x123\n" +
"\abackoff\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\abackoff\"\xbd\x02\n" +
"\x11BackendAuthPolicy\x12J\n" +
"\vpassthrough\x18\x01 \x01(\v2&.agentgateway.dev.resource.PassthroughH\x00R\vpassthrough\x122\n" +
"\x03key\x18\x02 \x01(\v2\x1e.agentgateway.dev.resource.KeyH\x00R\x03key\x122\n" +
"\x03gcp\x18\x03 \x01(\v2\x1e.agentgateway.dev.resource.GcpH\x00R\x03gcp\x122\n" +
"\x03aws\x18\x04 \x01(\v2\x1e.agentgateway.dev.resource.AwsH\x00R\x03aws\x128\n" +
"\x05azure\x18\x05 \x01(\v2 .agentgateway.dev.resource.AzureH\x00R\x05azureB\x06\n" +
"\x04kind\"\r\n" +
"\vPassthrough\"\x1d\n" +
"\x03Key\x12\x16\n" +
"\x06secret\x18\x01 \x01(\tR\x06secret\"\xf1\x01\n" +
"\x03Gcp\x12O\n" +
"\faccess_token\x18\x01 \x01(\v2*.agentgateway.dev.resource.Gcp.AccessTokenH\x00R\vaccessToken\x12C\n" +
"\bid_token\x18\x02 \x01(\v2&.agentgateway.dev.resource.Gcp.IdTokenH\x00R\aidToken\x1a\r\n" +
"\vAccessToken\x1a7\n" +
"\aIdToken\x12\x1f\n" +
"\baudience\x18\x01 \x01(\tH\x00R\baudience\x88\x01\x01B\v\n" +
"\t_audienceB\f\n" +
"\n" +
"token_type\"\xac\x01\n" +
"\x03Aws\x12W\n" +
"\x0fexplicit_config\x18\x01 \x01(\v2,.agentgateway.dev.resource.AwsExplicitConfigH\x00R\x0eexplicitConfig\x12D\n" +
"\bimplicit\x18\x02 \x01(\v2&.agentgateway.dev.resource.AwsImplicitH\x00R\bimplicitB\x06\n" +
"\x04kind\"\x96\x02\n" +
"\x05Azure\x12Y\n" +
"\x0fexplicit_config\x18\x01 \x01(\v2..agentgateway.dev.resource.AzureExplicitConfigH\x00R\x0eexplicitConfig\x12b\n" +
"\x12developer_implicit\x18\x02 \x01(\v21.agentgateway.dev.resource.AzureDeveloperImplicitH\x00R\x11developerImplicit\x12F\n" +
"\bimplicit\x18\x03 \x01(\v2(.agentgateway.dev.resource.AzureImplicitH\x00R\bimplicitB\x06\n" +
"\x04kind\"\xb7\x01\n" +
"\x11AwsExplicitConfig\x12\"\n" +
"\raccess_key_id\x18\x01 \x01(\tR\vaccessKeyId\x12*\n" +
"\x11secret_access_key\x18\x02 \x01(\tR\x0fsecretAccessKey\x12\x16\n" +
"\x06region\x18\x03 \x01(\tR\x06region\x12(\n" +
"\rsession_token\x18\x04 \x01(\tH\x00R\fsessionToken\x88\x01\x01B\x10\n" +
"\x0e_session_token\"\r\n" +
"\vAwsImplicit\"\xfc\x02\n" +
"\x13AzureExplicitConfig\x12S\n" +
"\rclient_secret\x18\x01 \x01(\v2,.agentgateway.dev.resource.AzureClientSecretH\x00R\fclientSecret\x12{\n" +
"\x1bmanaged_identity_credential\x18\x02 \x01(\v29.agentgateway.dev.resource.AzureManagedIdentityCredentialH\x00R\x19managedIdentityCredential\x12~\n" +
"\x1cworkload_identity_credential\x18\x03 \x01(\v2:.agentgateway.dev.resource.AzureWorkloadIdentityCredentialH\x00R\x1aworkloadIdentityCredentialB\x13\n" +
"\x11credential_source\"r\n" +
"\x11AzureClientSecret\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x1b\n" +
"\tclient_id\x18\x02 \x01(\tR\bclientId\x12#\n" +
"\rclient_secret\x18\x03 \x01(\tR\fclientSecret\"\xc6\x02\n" +
"\x1eAzureManagedIdentityCredential\x12\x89\x01\n" +
"\x16user_assigned_identity\x18\x01 \x01(\v2N.agentgateway.dev.resource.AzureManagedIdentityCredential.UserAssignedIdentityH\x00R\x14userAssignedIdentity\x88\x01\x01\x1a}\n" +
"\x14UserAssignedIdentity\x12\x1d\n" +
"\tclient_id\x18\x01 \x01(\tH\x00R\bclientId\x12\x1d\n" +
"\tobject_id\x18\x02 \x01(\tH\x00R\bobjectId\x12!\n" +
"\vresource_id\x18\x03 \x01(\tH\x00R\n" +
"resourceIdB\x04\n" +
"\x02idB\x19\n" +
"\x17_user_assigned_identity\"!\n" +
"\x1fAzureWorkloadIdentityCredential\"\x18\n" +
"\x16AzureDeveloperImplicit\"\x0f\n" +
"\rAzureImplicit\"\x92\x02\n" +
"\n" +
"RouteMatch\x128\n" +
"\x04path\x18\x01 \x01(\v2$.agentgateway.dev.resource.PathMatchR\x04path\x12@\n" +
"\aheaders\x18\x02 \x03(\v2&.agentgateway.dev.resource.HeaderMatchR\aheaders\x12>\n" +
"\x06method\x18\x03 \x01(\v2&.agentgateway.dev.resource.MethodMatchR\x06method\x12H\n" +
"\fquery_params\x18\x04 \x03(\v2%.agentgateway.dev.resource.QueryMatchR\vqueryParams\"f\n" +
"\tPathMatch\x12\x16\n" +
"\x05exact\x18\x01 \x01(\tH\x00R\x05exact\x12!\n" +
"\vpath_prefix\x18\x02 \x01(\tH\x00R\n" +
"pathPrefix\x12\x16\n" +
"\x05regex\x18\x03 \x01(\tH\x00R\x05regexB\x06\n" +
"\x04kind\"Y\n" +
"\n" +
"QueryMatch\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
"\x05exact\x18\x02 \x01(\tH\x00R\x05exact\x12\x16\n" +
"\x05regex\x18\x03 \x01(\tH\x00R\x05regexB\a\n" +
"\x05value\"#\n" +
"\vMethodMatch\x12\x14\n" +
"\x05exact\x18\x01 \x01(\tR\x05exact\"Z\n" +
"\vHeaderMatch\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
"\x05exact\x18\x02 \x01(\tH\x00R\x05exact\x12\x16\n" +
"\x05regex\x18\x03 \x01(\tH\x00R\x05regexB\a\n" +
"\x05value\"\xfd\x01\n" +
"\x04CORS\x12+\n" +
"\x11allow_credentials\x18\x01 \x01(\bR\x10allowCredentials\x12#\n" +
"\rallow_headers\x18\x02 \x03(\tR\fallowHeaders\x12#\n" +
"\rallow_methods\x18\x03 \x03(\tR\fallowMethods\x12#\n" +
"\rallow_origins\x18\x04 \x03(\tR\fallowOrigins\x12%\n" +
"\x0eexpose_headers\x18\x05 \x03(\tR\rexposeHeaders\x122\n" +
"\amax_age\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x06maxAge\"<\n" +
"\x0eDirectResponse\x12\x16\n" +
"\x06status\x18\x01 \x01(\rR\x06status\x12\x12\n" +
"\x04body\x18\x02 \x01(\fR\x04body\"\x92\x01\n" +
"\x0eHeaderModifier\x123\n" +
"\x03add\x18\x01 \x03(\v2!.agentgateway.dev.resource.HeaderR\x03add\x123\n" +
"\x03set\x18\x02 \x03(\v2!.agentgateway.dev.resource.HeaderR\x03set\x12\x16\n" +
"\x06remove\x18\x03 \x03(\tR\x06remove\"\xcd\x01\n" +
"\x0eRequestMirrors\x12J\n" +
"\amirrors\x18\x01 \x03(\v20.agentgateway.dev.resource.RequestMirrors.MirrorR\amirrors\x1ao\n" +
"\x06Mirror\x12E\n" +
"\abackend\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\abackend\x12\x1e\n" +
"\n" +
"percentage\x18\x02 \x01(\x01R\n" +
"percentage\"\xa1\x01\n" +
"\x0fRequestRedirect\x12\x16\n" +
"\x06scheme\x18\x01 \x01(\tR\x06scheme\x12\x12\n" +
"\x04host\x18\x02 \x01(\tR\x04host\x12\x14\n" +
"\x04full\x18\x03 \x01(\tH\x00R\x04full\x12\x18\n" +
"\x06prefix\x18\x04 \x01(\tH\x00R\x06prefix\x12\x12\n" +
"\x04port\x18\x05 \x01(\rR\x04port\x12\x16\n" +
"\x06status\x18\x06 \x01(\rR\x06statusB\x06\n" +
"\x04path\"X\n" +
"\n" +
"UrlRewrite\x12\x12\n" +
"\x04host\x18\x01 \x01(\tR\x04host\x12\x14\n" +
"\x04full\x18\x02 \x01(\tH\x00R\x04full\x12\x18\n" +
"\x06prefix\x18\x03 \x01(\tH\x00R\x06prefixB\x06\n" +
"\x04path\"2\n" +
"\x06Header\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value\"\xcc\x01\n" +
"\fRouteBackend\x12E\n" +
"\abackend\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\abackend\x12\x16\n" +
"\x06weight\x18\x02 \x01(\x05R\x06weight\x12W\n" +
"\x10backend_policies\x18\x05 \x03(\v2,.agentgateway.dev.resource.BackendPolicySpecR\x0fbackendPoliciesJ\x04\b\x04\x10\x05\"\xb1\x06\n" +
"\fPolicyTarget\x12Q\n" +
"\agateway\x18\x01 \x01(\v25.agentgateway.dev.resource.PolicyTarget.GatewayTargetH\x00R\agateway\x12K\n" +
"\x05route\x18\x02 \x01(\v23.agentgateway.dev.resource.PolicyTarget.RouteTargetH\x00R\x05route\x12Q\n" +
"\abackend\x18\x03 \x01(\v25.agentgateway.dev.resource.PolicyTarget.BackendTargetH\x00R\abackend\x12Q\n" +
"\aservice\x18\x04 \x01(\v25.agentgateway.dev.resource.PolicyTarget.ServiceTargetH\x00R\aservice\x1ak\n" +
"\rServiceTarget\x12\x1c\n" +
"\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" +
"\bhostname\x18\x02 \x01(\tR\bhostname\x12\x17\n" +
"\x04port\x18\x03 \x01(\rH\x00R\x04port\x88\x01\x01B\a\n" +
"\x05_port\x1al\n" +
"\rBackendTarget\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x1d\n" +
"\asection\x18\x03 \x01(\tH\x00R\asection\x88\x01\x01B\n" +
"\n" +
"\b_section\x1ao\n" +
"\rGatewayTarget\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x1f\n" +
"\blistener\x18\x03 \x01(\tH\x00R\blistener\x88\x01\x01B\v\n" +
"\t_listener\x1a\x86\x01\n" +
"\vRouteTarget\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\"\n" +
"\n" +
"route_rule\x18\x03 \x01(\tH\x00R\trouteRule\x88\x01\x01\x12\x12\n" +
"\x04kind\x18\x04 \x01(\tR\x04kindB\r\n" +
"\v_route_ruleB\x06\n" +
"\x04kind\"\xa2\x01\n" +
"\x0fKeepaliveConfig\x12-\n" +
"\x04time\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x04time\x125\n" +
"\binterval\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\binterval\x12\x1d\n" +
"\aretries\x18\x03 \x01(\rH\x00R\aretries\x88\x01\x01B\n" +
"\n" +
"\b_retries\"\x8e\x19\n" +
"\x12FrontendPolicySpec\x12E\n" +
"\x03tcp\x18\x01 \x01(\v21.agentgateway.dev.resource.FrontendPolicySpec.TCPH\x00R\x03tcp\x12E\n" +
"\x03tls\x18\x02 \x01(\v21.agentgateway.dev.resource.FrontendPolicySpec.TLSH\x00R\x03tls\x12H\n" +
"\x04http\x18\x03 \x01(\v22.agentgateway.dev.resource.FrontendPolicySpec.HTTPH\x00R\x04http\x12Q\n" +
"\alogging\x18\x04 \x01(\v25.agentgateway.dev.resource.FrontendPolicySpec.LoggingH\x00R\alogging\x12Q\n" +
"\atracing\x18\x05 \x01(\v25.agentgateway.dev.resource.FrontendPolicySpec.TracingH\x00R\atracing\x12y\n" +
"\x15network_authorization\x18\x06 \x01(\v2B.agentgateway.dev.resource.FrontendPolicySpec.NetworkAuthorizationH\x00R\x14networkAuthorization\x1a\xf1\x04\n" +
"\x04HTTP\x12+\n" +
"\x0fmax_buffer_size\x18\x01 \x01(\rH\x00R\rmaxBufferSize\x88\x01\x01\x12/\n" +
"\x11http1_max_headers\x18\x02 \x01(\rH\x01R\x0fhttp1MaxHeaders\x88\x01\x01\x12G\n" +
"\x12http1_idle_timeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x10http1IdleTimeout\x12/\n" +
"\x11http2_window_size\x18\x04 \x01(\rH\x02R\x0fhttp2WindowSize\x88\x01\x01\x12D\n" +
"\x1chttp2_connection_window_size\x18\x05 \x01(\rH\x03R\x19http2ConnectionWindowSize\x88\x01\x01\x12-\n" +
"\x10http2_frame_size\x18\x06 \x01(\rH\x04R\x0ehttp2FrameSize\x88\x01\x01\x12S\n" +
"\x18http2_keepalive_interval\x18\a \x01(\v2\x19.google.protobuf.DurationR\x16http2KeepaliveInterval\x12Q\n" +
"\x17http2_keepalive_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x15http2KeepaliveTimeoutB\x12\n" +
"\x10_max_buffer_sizeB\x14\n" +
"\x12_http1_max_headersB\x14\n" +
"\x12_http2_window_sizeB\x1f\n" +
"\x1d_http2_connection_window_sizeB\x13\n" +
"\x11_http2_frame_size\x1a\xa7\x03\n" +
"\x03TLS\x12F\n" +
"\x11handshake_timeout\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x10handshakeTimeout\x123\n" +
"\x04alpn\x18\x02 \x01(\v2\x1f.agentgateway.dev.resource.AlpnR\x04alpn\x12U\n" +
"\rcipher_suites\x18\x03 \x03(\x0e20.agentgateway.dev.resource.TLSConfig.CipherSuiteR\fcipherSuites\x12U\n" +
"\vmin_version\x18\x04 \x01(\x0e2/.agentgateway.dev.resource.TLSConfig.TLSVersionH\x00R\n" +
"minVersion\x88\x01\x01\x12U\n" +
"\vmax_version\x18\x05 \x01(\x0e2/.agentgateway.dev.resource.TLSConfig.TLSVersionH\x01R\n" +
"maxVersion\x88\x01\x01B\x0e\n" +
"\f_min_versionB\x0e\n" +
"\f_max_version\x1aQ\n" +
"\x03TCP\x12J\n" +
"\n" +
"keepalives\x18\x01 \x01(\v2*.agentgateway.dev.resource.KeepaliveConfigR\n" +
"keepalives\x1aZ\n" +
"\x14NetworkAuthorization\x12\x14\n" +
"\x05allow\x18\x01 \x03(\tR\x05allow\x12\x12\n" +
"\x04deny\x18\x02 \x03(\tR\x04deny\x12\x18\n" +
"\arequire\x18\x03 \x03(\tR\arequire\x1a\x8f\x06\n" +
"\aLogging\x12\x1b\n" +
"\x06filter\x18\x01 \x01(\tH\x00R\x06filter\x88\x01\x01\x12T\n" +
"\x06fields\x18\x02 \x01(\v2<.agentgateway.dev.resource.FrontendPolicySpec.Logging.FieldsR\x06fields\x12k\n" +
"\x0fotlp_access_log\x18\x03 \x01(\v2C.agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLogR\rotlpAccessLog\x1a;\n" +
"\x05Field\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"expression\x18\x02 \x01(\tR\n" +
"expression\x1ao\n" +
"\x06Fields\x12\x16\n" +
"\x06remove\x18\x01 \x03(\tR\x06remove\x12M\n" +
"\x03add\x18\x02 \x03(\v2;.agentgateway.dev.resource.FrontendPolicySpec.Logging.FieldR\x03add\x1a\xea\x02\n" +
"\rOtlpAccessLog\x12V\n" +
"\x10provider_backend\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\x0fproviderBackend\x12U\n" +
"\x0finline_policies\x18\x02 \x03(\v2,.agentgateway.dev.resource.BackendPolicySpecR\x0einlinePolicies\x12h\n" +
"\bprotocol\x18\x03 \x01(\x0e2L.agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLog.ProtocolR\bprotocol\x12\x17\n" +
"\x04path\x18\x04 \x01(\tH\x00R\x04path\x88\x01\x01\"\x1e\n" +
"\bProtocol\x12\b\n" +
"\x04HTTP\x10\x00\x12\b\n" +
"\x04GRPC\x10\x01B\a\n" +
"\x05_pathB\t\n" +
"\a_filter\x1a\xd9\x04\n" +
"\aTracing\x12V\n" +
"\x10provider_backend\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\x0fproviderBackend\x12^\n" +
"\n" +
"attributes\x18\x02 \x03(\v2>.agentgateway.dev.resource.FrontendPolicySpec.TracingAttributeR\n" +
"attributes\x12\\\n" +
"\tresources\x18\x03 \x03(\v2>.agentgateway.dev.resource.FrontendPolicySpec.TracingAttributeR\tresources\x12\x16\n" +
"\x06remove\x18\b \x03(\tR\x06remove\x12,\n" +
"\x0frandom_sampling\x18\x04 \x01(\tH\x00R\x0erandomSampling\x88\x01\x01\x12,\n" +
"\x0fclient_sampling\x18\x05 \x01(\tH\x01R\x0eclientSampling\x88\x01\x01\x12\x17\n" +
"\x04path\x18\x06 \x01(\tH\x02R\x04path\x88\x01\x01\x12Z\n" +
"\bprotocol\x18\a \x01(\x0e2>.agentgateway.dev.resource.FrontendPolicySpec.Tracing.ProtocolR\bprotocol\"\x1e\n" +
"\bProtocol\x12\b\n" +
"\x04HTTP\x10\x00\x12\b\n" +
"\x04GRPC\x10\x01B\x12\n" +
"\x10_random_samplingB\x12\n" +
"\x10_client_samplingB\a\n" +
"\x05_path\x1a<\n" +
"\x10TracingAttribute\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05valueB\x06\n" +
"\x04kind\"?\n" +
"\x14JWTValidationOptions\x12'\n" +
"\x0frequired_claims\x18\x01 \x03(\tR\x0erequiredClaims\"\xc7>\n" +
"\x11TrafficPolicySpec\x12N\n" +
"\x05phase\x18\x01 \x01(\x0e28.agentgateway.dev.resource.TrafficPolicySpec.PolicyPhaseR\x05phase\x12>\n" +
"\atimeout\x18\x02 \x01(\v2\".agentgateway.dev.resource.TimeoutH\x00R\atimeout\x128\n" +
"\x05retry\x18\x03 \x01(\v2 .agentgateway.dev.resource.RetryH\x00R\x05retry\x12g\n" +
"\x10local_rate_limit\x18\x04 \x01(\v2;.agentgateway.dev.resource.TrafficPolicySpec.LocalRateLimitH\x00R\x0elocalRateLimit\x12X\n" +
"\text_authz\x18\x05 \x01(\v29.agentgateway.dev.resource.TrafficPolicySpec.ExternalAuthH\x00R\bextAuthz\x12Y\n" +
"\rauthorization\x18\x06 \x01(\v21.agentgateway.dev.resource.TrafficPolicySpec.RBACH\x00R\rauthorization\x12D\n" +
"\x03jwt\x18\a \x01(\v20.agentgateway.dev.resource.TrafficPolicySpec.JWTH\x00R\x03jwt\x12k\n" +
"\x0etransformation\x18\b \x01(\v2A.agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicyH\x00R\x0etransformation\x12j\n" +
"\x11remote_rate_limit\x18\t \x01(\v2<.agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimitH\x00R\x0fremoteRateLimit\x12G\n" +
"\x04csrf\x18\n" +
" \x01(\v21.agentgateway.dev.resource.TrafficPolicySpec.CSRFH\x00R\x04csrf\x12Q\n" +
"\bext_proc\x18\v \x01(\v24.agentgateway.dev.resource.TrafficPolicySpec.ExtProcH\x00R\aextProc\x12c\n" +
"\x17request_header_modifier\x18\f \x01(\v2).agentgateway.dev.resource.HeaderModifierH\x00R\x15requestHeaderModifier\x12e\n" +
"\x18response_header_modifier\x18\r \x01(\v2).agentgateway.dev.resource.HeaderModifierH\x00R\x16responseHeaderModifier\x12W\n" +
"\x10request_redirect\x18\x0e \x01(\v2*.agentgateway.dev.resource.RequestRedirectH\x00R\x0frequestRedirect\x12H\n" +
"\vurl_rewrite\x18\x0f \x01(\v2%.agentgateway.dev.resource.UrlRewriteH\x00R\n" +
"urlRewrite\x12R\n" +
"\x0erequest_mirror\x18\x10 \x01(\v2).agentgateway.dev.resource.RequestMirrorsH\x00R\rrequestMirror\x12T\n" +
"\x0fdirect_response\x18\x11 \x01(\v2).agentgateway.dev.resource.DirectResponseH\x00R\x0edirectResponse\x125\n" +
"\x04cors\x18\x12 \x01(\v2\x1f.agentgateway.dev.resource.CORSH\x00R\x04cors\x12a\n" +
"\n" +
"basic_auth\x18\x13 \x01(\v2@.agentgateway.dev.resource.TrafficPolicySpec.BasicAuthenticationH\x00R\tbasicAuth\x12W\n" +
"\fapi_key_auth\x18\x14 \x01(\v23.agentgateway.dev.resource.TrafficPolicySpec.APIKeyH\x00R\n" +
"apiKeyAuth\x12]\n" +
"\fhost_rewrite\x18\x15 \x01(\v28.agentgateway.dev.resource.TrafficPolicySpec.HostRewriteH\x00R\vhostRewrite\x1a\x8c\x05\n" +
"\x0fRemoteRateLimit\x12\x16\n" +
"\x06domain\x18\x01 \x01(\tR\x06domain\x12i\n" +
"\vdescriptors\x18\x02 \x03(\v2G.agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.DescriptorR\vdescriptors\x12C\n" +
"\x06target\x18\x03 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\x06target\x12k\n" +
"\ffailure_mode\x18\x04 \x01(\x0e2H.agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.FailureModeR\vfailureMode\x1a\xc1\x01\n" +
"\n" +
"Descriptor\x12\\\n" +
"\aentries\x18\x01 \x03(\v2B.agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.EntryR\aentries\x12U\n" +
"\x04type\x18\x02 \x01(\x0e2A.agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.TypeR\x04type\x1a/\n" +
"\x05Entry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value\" \n" +
"\x04Type\x12\f\n" +
"\bREQUESTS\x10\x00\x12\n" +
"\n" +
"\x06TOKENS\x10\x01\"-\n" +
"\vFailureMode\x12\x0f\n" +
"\vFAIL_CLOSED\x10\x00\x12\r\n" +
"\tFAIL_OPEN\x10\x01\x1a\x8d\x02\n" +
"\x0eLocalRateLimit\x12\x1d\n" +
"\n" +
"max_tokens\x18\x01 \x01(\x04R\tmaxTokens\x12&\n" +
"\x0ftokens_per_fill\x18\x02 \x01(\x04R\rtokensPerFill\x12>\n" +
"\rfill_interval\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\ffillInterval\x12T\n" +
"\x04type\x18\x04 \x01(\x0e2@.agentgateway.dev.resource.TrafficPolicySpec.LocalRateLimit.TypeR\x04type\"\x1e\n" +
"\x04Type\x12\v\n" +
"\aREQUEST\x10\x00\x12\t\n" +
"\x05TOKEN\x10\x01\x1a\xdf\r\n" +
"\fExternalAuth\x12C\n" +
"\x06target\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\x06target\x12\\\n" +
"\x04grpc\x18\x02 \x01(\v2F.agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocolH\x00R\x04grpc\x12\\\n" +
"\x04http\x18\x03 \x01(\v2F.agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocolH\x00R\x04http\x12h\n" +
"\ffailure_mode\x18\x04 \x01(\x0e2E.agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.FailureModeR\vfailureMode\x12+\n" +
"\x0fstatus_on_error\x18\x05 \x01(\rH\x01R\rstatusOnError\x88\x01\x01\x126\n" +
"\x17include_request_headers\x18\x06 \x03(\tR\x15includeRequestHeaders\x12w\n" +
"\x14include_request_body\x18\a \x01(\v2E.agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.BodyOptionsR\x12includeRequestBody\x1a\x91\x01\n" +
"\vBodyOptions\x12*\n" +
"\x11max_request_bytes\x18\x01 \x01(\rR\x0fmaxRequestBytes\x122\n" +
"\x15allow_partial_message\x18\x02 \x01(\bR\x13allowPartialMessage\x12\"\n" +
"\rpack_as_bytes\x18\x03 \x01(\bR\vpackAsBytes\x1a\xe8\x02\n" +
"\fGRPCProtocol\x12m\n" +
"\acontext\x18\x01 \x03(\v2S.agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol.ContextEntryR\acontext\x12p\n" +
"\bmetadata\x18\x02 \x03(\v2T.agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol.MetadataEntryR\bmetadata\x1a:\n" +
"\fContextEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a;\n" +
"\rMetadataEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x9d\x04\n" +
"\fHTTPProtocol\x12\x17\n" +
"\x04path\x18\x01 \x01(\tH\x00R\x04path\x88\x01\x01\x12\x1f\n" +
"\bredirect\x18\x02 \x01(\tH\x01R\bredirect\x88\x01\x01\x128\n" +
"\x18include_response_headers\x18\x03 \x03(\tR\x16includeResponseHeaders\x12\x8d\x01\n" +
"\x13add_request_headers\x18\x04 \x03(\v2].agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol.AddRequestHeadersEntryR\x11addRequestHeaders\x12p\n" +
"\bmetadata\x18\x05 \x03(\v2T.agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol.MetadataEntryR\bmetadata\x1aD\n" +
"\x16AddRequestHeadersEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a;\n" +
"\rMetadataEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\a\n" +
"\x05_pathB\v\n" +
"\t_redirect\"8\n" +
"\vFailureMode\x12\b\n" +
"\x04DENY\x10\x00\x12\t\n" +
"\x05ALLOW\x10\x01\x12\x14\n" +
"\x10DENY_WITH_STATUS\x10\x02B\n" +
"\n" +
"\bprotocolB\x12\n" +
"\x10_status_on_errorJ\x04\b\b\x10\tR\atimeout\x1aJ\n" +
"\x04RBAC\x12\x14\n" +
"\x05allow\x18\x01 \x03(\tR\x05allow\x12\x12\n" +
"\x04deny\x18\x02 \x03(\tR\x04deny\x12\x18\n" +
"\arequire\x18\x03 \x03(\tR\arequire\x1a\xd3\x01\n" +
"\vJWTProvider\x12\x16\n" +
"\x06issuer\x18\x01 \x01(\tR\x06issuer\x12\x1c\n" +
"\taudiences\x18\x02 \x03(\tR\taudiences\x12\x18\n" +
"\x06inline\x18\x03 \x01(\tH\x00R\x06inline\x12e\n" +
"\x16jwt_validation_options\x18\x04 \x01(\v2/.agentgateway.dev.resource.JWTValidationOptionsR\x14jwtValidationOptionsB\r\n" +
"\vjwks_source\x1a\x8b\x04\n" +
"\x03JWT\x12I\n" +
"\x04mode\x18\x01 \x01(\x0e25.agentgateway.dev.resource.TrafficPolicySpec.JWT.ModeR\x04mode\x12V\n" +
"\tproviders\x18\x02 \x03(\v28.agentgateway.dev.resource.TrafficPolicySpec.JWTProviderR\tproviders\x12F\n" +
"\x03mcp\x18\x03 \x01(\v24.agentgateway.dev.resource.TrafficPolicySpec.JWT.MCPR\x03mcp\x1a\xe6\x01\n" +
"\x03MCP\x12a\n" +
"\bprovider\x18\x01 \x01(\x0e2E.agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.McpIDPR\bprovider\x12|\n" +
"\x11resource_metadata\x18\x02 \x01(\v2O.agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadataR\x10resourceMetadata\"0\n" +
"\x04Mode\x12\f\n" +
"\bOPTIONAL\x10\x00\x12\n" +
"\n" +
"\x06STRICT\x10\x01\x12\x0e\n" +
"\n" +
"PERMISSIVE\x10\x02\x1a\xe2\x01\n" +
"\x13BasicAuthentication\x12)\n" +
"\x10htpasswd_content\x18\x01 \x01(\tR\x0fhtpasswdContent\x12\x19\n" +
"\x05realm\x18\x02 \x01(\tH\x00R\x05realm\x88\x01\x01\x12Y\n" +
"\x04mode\x18\x03 \x01(\x0e2E.agentgateway.dev.resource.TrafficPolicySpec.BasicAuthentication.ModeR\x04mode\" \n" +
"\x04Mode\x12\n" +
"\n" +
"\x06STRICT\x10\x00\x12\f\n" +
"\bOPTIONAL\x10\x01B\b\n" +
"\x06_realm\x1a\x9c\x02\n" +
"\x06APIKey\x12S\n" +
"\bapi_keys\x18\x01 \x03(\v28.agentgateway.dev.resource.TrafficPolicySpec.APIKey.UserR\aapiKeys\x12L\n" +
"\x04mode\x18\x02 \x01(\x0e28.agentgateway.dev.resource.TrafficPolicySpec.APIKey.ModeR\x04mode\x1aM\n" +
"\x04User\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x123\n" +
"\bmetadata\x18\x02 \x01(\v2\x17.google.protobuf.StructR\bmetadata\" \n" +
"\x04Mode\x12\n" +
"\n" +
"\x06STRICT\x10\x00\x12\f\n" +
"\bOPTIONAL\x10\x01\x1a\xbf\x05\n" +
"\x14TransformationPolicy\x12e\n" +
"\arequest\x18\x01 \x01(\v2K.agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.TransformR\arequest\x12g\n" +
"\bresponse\x18\x02 \x01(\v2K.agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.TransformR\bresponse\x1a\xd6\x03\n" +
"\tTransform\x12S\n" +
"\x03set\x18\x01 \x03(\v2A.agentgateway.dev.resource.TrafficPolicySpec.HeaderTransformationR\x03set\x12S\n" +
"\x03add\x18\x02 \x03(\v2A.agentgateway.dev.resource.TrafficPolicySpec.HeaderTransformationR\x03add\x12\x16\n" +
"\x06remove\x18\x03 \x03(\tR\x06remove\x12S\n" +
"\x04body\x18\x04 \x01(\v2?.agentgateway.dev.resource.TrafficPolicySpec.BodyTransformationR\x04body\x12u\n" +
"\bmetadata\x18\x05 \x03(\v2Y.agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform.MetadataEntryR\bmetadata\x1a;\n" +
"\rMetadataEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aJ\n" +
"\x14HeaderTransformation\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"expression\x18\x02 \x01(\tR\n" +
"expression\x1a4\n" +
"\x12BodyTransformation\x12\x1e\n" +
"\n" +
"expression\x18\x01 \x01(\tR\n" +
"expression\x1a5\n" +
"\x04CSRF\x12-\n" +
"\x12additional_origins\x18\x01 \x03(\tR\x11additionalOrigins\x1a\xc6\b\n" +
"\aExtProc\x12C\n" +
"\x06target\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\x06target\x12c\n" +
"\ffailure_mode\x18\x02 \x01(\x0e2@.agentgateway.dev.resource.TrafficPolicySpec.ExtProc.FailureModeR\vfailureMode\x12z\n" +
"\x12request_attributes\x18\x03 \x03(\v2K.agentgateway.dev.resource.TrafficPolicySpec.ExtProc.RequestAttributesEntryR\x11requestAttributes\x12}\n" +
"\x13response_attributes\x18\x04 \x03(\v2L.agentgateway.dev.resource.TrafficPolicySpec.ExtProc.ResponseAttributesEntryR\x12responseAttributes\x12t\n" +
"\x10metadata_context\x18\x05 \x03(\v2I.agentgateway.dev.resource.TrafficPolicySpec.ExtProc.MetadataContextEntryR\x0fmetadataContext\x1aD\n" +
"\x16RequestAttributesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aE\n" +
"\x17ResponseAttributesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\xce\x01\n" +
"\x19NamespacedMetadataContext\x12u\n" +
"\acontext\x18\x01 \x03(\v2[.agentgateway.dev.resource.TrafficPolicySpec.ExtProc.NamespacedMetadataContext.ContextEntryR\acontext\x1a:\n" +
"\fContextEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x92\x01\n" +
"\x14MetadataContextEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12d\n" +
"\x05value\x18\x02 \x01(\v2N.agentgateway.dev.resource.TrafficPolicySpec.ExtProc.NamespacedMetadataContextR\x05value:\x028\x01\"-\n" +
"\vFailureMode\x12\x0f\n" +
"\vFAIL_CLOSED\x10\x00\x12\r\n" +
"\tFAIL_OPEN\x10\x01\x1a|\n" +
"\vHostRewrite\x12Q\n" +
"\x04mode\x18\x01 \x01(\x0e2=.agentgateway.dev.resource.TrafficPolicySpec.HostRewrite.ModeR\x04mode\"\x1a\n" +
"\x04Mode\x12\b\n" +
"\x04NONE\x10\x00\x12\b\n" +
"\x04AUTO\x10\x01\"%\n" +
"\vPolicyPhase\x12\t\n" +
"\x05ROUTE\x10\x00\x12\v\n" +
"\aGATEWAY\x10\x01B\x06\n" +
"\x04kind\"\x86C\n" +
"\x11BackendPolicySpec\x12D\n" +
"\x03a2a\x18\x01 \x01(\v20.agentgateway.dev.resource.BackendPolicySpec.A2aH\x00R\x03a2a\x12l\n" +
"\x11inference_routing\x18\x02 \x01(\v2=.agentgateway.dev.resource.BackendPolicySpec.InferenceRoutingH\x00R\x10inferenceRouting\x12Z\n" +
"\vbackend_tls\x18\x03 \x01(\v27.agentgateway.dev.resource.BackendPolicySpec.BackendTLSH\x00R\n" +
"backendTls\x12B\n" +
"\x04auth\x18\x04 \x01(\v2,.agentgateway.dev.resource.BackendAuthPolicyH\x00R\x04auth\x12l\n" +
"\x11mcp_authorization\x18\x05 \x01(\v2=.agentgateway.dev.resource.BackendPolicySpec.McpAuthorizationH\x00R\x10mcpAuthorization\x12o\n" +
"\x12mcp_authentication\x18\x06 \x01(\v2>.agentgateway.dev.resource.BackendPolicySpec.McpAuthenticationH\x00R\x11mcpAuthentication\x12A\n" +
"\x02ai\x18\a \x01(\v2/.agentgateway.dev.resource.BackendPolicySpec.AiH\x00R\x02ai\x12c\n" +
"\x17request_header_modifier\x18\b \x01(\v2).agentgateway.dev.resource.HeaderModifierH\x00R\x15requestHeaderModifier\x12e\n" +
"\x18response_header_modifier\x18\t \x01(\v2).agentgateway.dev.resource.HeaderModifierH\x00R\x16responseHeaderModifier\x12W\n" +
"\x10request_redirect\x18\n" +
" \x01(\v2*.agentgateway.dev.resource.RequestRedirectH\x00R\x0frequestRedirect\x12R\n" +
"\x0erequest_mirror\x18\v \x01(\v2).agentgateway.dev.resource.RequestMirrorsH\x00R\rrequestMirror\x12]\n" +
"\fbackend_http\x18\f \x01(\v28.agentgateway.dev.resource.BackendPolicySpec.BackendHTTPH\x00R\vbackendHttp\x12Z\n" +
"\vbackend_tcp\x18\r \x01(\v27.agentgateway.dev.resource.BackendPolicySpec.BackendTCPH\x00R\n" +
"backendTcp\x12k\n" +
"\x0etransformation\x18\x0e \x01(\v2A.agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicyH\x00R\x0etransformation\x12M\n" +
"\x06health\x18\x0f \x01(\v23.agentgateway.dev.resource.BackendPolicySpec.HealthH\x00R\x06health\x12c\n" +
"\x0ebackend_tunnel\x18\x10 \x01(\v2:.agentgateway.dev.resource.BackendPolicySpec.BackendTunnelH\x00R\rbackendTunnel\x1a\xe3\"\n" +
"\x02Ai\x12^\n" +
"\fprompt_guard\x18\x01 \x01(\v2;.agentgateway.dev.resource.BackendPolicySpec.Ai.PromptGuardR\vpromptGuard\x12Y\n" +
"\bdefaults\x18\x02 \x03(\v2=.agentgateway.dev.resource.BackendPolicySpec.Ai.DefaultsEntryR\bdefaults\x12\\\n" +
"\toverrides\x18\x03 \x03(\v2>.agentgateway.dev.resource.BackendPolicySpec.Ai.OverridesEntryR\toverrides\x12n\n" +
"\x0ftransformations\x18\b \x03(\v2D.agentgateway.dev.resource.BackendPolicySpec.Ai.TransformationsEntryR\x0ftransformations\x12Z\n" +
"\aprompts\x18\x04 \x01(\v2@.agentgateway.dev.resource.BackendPolicySpec.Ai.PromptEnrichmentR\aprompts\x12f\n" +
"\rmodel_aliases\x18\x05 \x03(\v2A.agentgateway.dev.resource.BackendPolicySpec.Ai.ModelAliasesEntryR\fmodelAliases\x12d\n" +
"\x0eprompt_caching\x18\x06 \x01(\v2=.agentgateway.dev.resource.BackendPolicySpec.Ai.PromptCachingR\rpromptCaching\x12S\n" +
"\x06routes\x18\a \x03(\v2;.agentgateway.dev.resource.BackendPolicySpec.Ai.RoutesEntryR\x06routes\x1a7\n" +
"\aMessage\x12\x12\n" +
"\x04role\x18\x01 \x01(\tR\x04role\x12\x18\n" +
"\acontent\x18\x02 \x01(\tR\acontent\x1a\xb6\x01\n" +
"\x10PromptEnrichment\x12O\n" +
"\x06append\x18\x01 \x03(\v27.agentgateway.dev.resource.BackendPolicySpec.Ai.MessageR\x06append\x12Q\n" +
"\aprepend\x18\x02 \x03(\v27.agentgateway.dev.resource.BackendPolicySpec.Ai.MessageR\aprepend\x1a\x89\x01\n" +
"\tRegexRule\x12\\\n" +
"\abuiltin\x18\x01 \x01(\x0e2@.agentgateway.dev.resource.BackendPolicySpec.Ai.BuiltinRegexRuleH\x00R\abuiltin\x12\x16\n" +
"\x05regex\x18\x02 \x01(\tH\x00R\x05regexB\x06\n" +
"\x04kind\x1a\xb1\x01\n" +
"\n" +
"RegexRules\x12R\n" +
"\x06action\x18\x01 \x01(\x0e2:.agentgateway.dev.resource.BackendPolicySpec.Ai.ActionKindR\x06action\x12O\n" +
"\x05rules\x18\x02 \x03(\v29.agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRuleR\x05rules\x1a\xae\x01\n" +
"\aWebhook\x12E\n" +
"\abackend\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\abackend\x12\\\n" +
"\x16forward_header_matches\x18\x03 \x03(\v2&.agentgateway.dev.resource.HeaderMatchR\x14forwardHeaderMatches\x1a\x88\x01\n" +
"\n" +
"Moderation\x12\x19\n" +
"\x05model\x18\x01 \x01(\tH\x00R\x05model\x88\x01\x01\x12U\n" +
"\x0finline_policies\x18\x02 \x03(\v2,.agentgateway.dev.resource.BackendPolicySpecR\x0einlinePoliciesB\b\n" +
"\x06_model\x1a\xbc\x01\n" +
"\x11BedrockGuardrails\x12\x1e\n" +
"\n" +
"identifier\x18\x01 \x01(\tR\n" +
"identifier\x12\x18\n" +
"\aversion\x18\x02 \x01(\tR\aversion\x12\x16\n" +
"\x06region\x18\x03 \x01(\tR\x06region\x12U\n" +
"\x0finline_policies\x18\x04 \x03(\v2,.agentgateway.dev.resource.BackendPolicySpecR\x0einlinePolicies\x1a\xd7\x01\n" +
"\x10GoogleModelArmor\x12\x1f\n" +
"\vtemplate_id\x18\x01 \x01(\tR\n" +
"templateId\x12\x1d\n" +
"\n" +
"project_id\x18\x02 \x01(\tR\tprojectId\x12\x1f\n" +
"\blocation\x18\x03 \x01(\tH\x00R\blocation\x88\x01\x01\x12U\n" +
"\x0finline_policies\x18\x04 \x03(\v2,.agentgateway.dev.resource.BackendPolicySpecR\x0einlinePoliciesB\v\n" +
"\t_location\x1a>\n" +
"\x10RequestRejection\x12\x12\n" +
"\x04body\x18\x01 \x01(\fR\x04body\x12\x16\n" +
"\x06status\x18\x02 \x01(\rR\x06status\x1a\x86\x04\n" +
"\rResponseGuard\x12^\n" +
"\trejection\x18\x01 \x01(\v2@.agentgateway.dev.resource.BackendPolicySpec.Ai.RequestRejectionR\trejection\x12R\n" +
"\x05regex\x18\x02 \x01(\v2:.agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRulesH\x00R\x05regex\x12S\n" +
"\awebhook\x18\x03 \x01(\v27.agentgateway.dev.resource.BackendPolicySpec.Ai.WebhookH\x00R\awebhook\x12p\n" +
"\x12google_model_armor\x18\x04 \x01(\v2@.agentgateway.dev.resource.BackendPolicySpec.Ai.GoogleModelArmorH\x00R\x10googleModelArmor\x12r\n" +
"\x12bedrock_guardrails\x18\x05 \x01(\v2A.agentgateway.dev.resource.BackendPolicySpec.Ai.BedrockGuardrailsH\x00R\x11bedrockGuardrailsB\x06\n" +
"\x04kind\x1a\xf0\x04\n" +
"\fRequestGuard\x12^\n" +
"\trejection\x18\x01 \x01(\v2@.agentgateway.dev.resource.BackendPolicySpec.Ai.RequestRejectionR\trejection\x12R\n" +
"\x05regex\x18\x02 \x01(\v2:.agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRulesH\x00R\x05regex\x12S\n" +
"\awebhook\x18\x03 \x01(\v27.agentgateway.dev.resource.BackendPolicySpec.Ai.WebhookH\x00R\awebhook\x12i\n" +
"\x11openai_moderation\x18\x04 \x01(\v2:.agentgateway.dev.resource.BackendPolicySpec.Ai.ModerationH\x00R\x10openaiModeration\x12p\n" +
"\x12google_model_armor\x18\x05 \x01(\v2@.agentgateway.dev.resource.BackendPolicySpec.Ai.GoogleModelArmorH\x00R\x10googleModelArmor\x12r\n" +
"\x12bedrock_guardrails\x18\x06 \x01(\v2A.agentgateway.dev.resource.BackendPolicySpec.Ai.BedrockGuardrailsH\x00R\x11bedrockGuardrailsB\x06\n" +
"\x04kind\x1a\xc0\x01\n" +
"\vPromptGuard\x12V\n" +
"\arequest\x18\x01 \x03(\v2<.agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuardR\arequest\x12Y\n" +
"\bresponse\x18\x02 \x03(\v2=.agentgateway.dev.resource.BackendPolicySpec.Ai.ResponseGuardR\bresponse\x1a\xfd\x01\n" +
"\rPromptCaching\x12!\n" +
"\fcache_system\x18\x01 \x01(\bR\vcacheSystem\x12%\n" +
"\x0ecache_messages\x18\x02 \x01(\bR\rcacheMessages\x12\x1f\n" +
"\vcache_tools\x18\x03 \x01(\bR\n" +
"cacheTools\x12\"\n" +
"\n" +
"min_tokens\x18\x04 \x01(\rH\x00R\tminTokens\x88\x01\x01\x125\n" +
"\x14cache_message_offset\x18\x05 \x01(\rH\x01R\x12cacheMessageOffset\x88\x01\x01B\r\n" +
"\v_min_tokensB\x17\n" +
"\x15_cache_message_offset\x1a;\n" +
"\rDefaultsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a<\n" +
"\x0eOverridesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aB\n" +
"\x14TransformationsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a?\n" +
"\x11ModelAliasesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1at\n" +
"\vRoutesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12O\n" +
"\x05value\x18\x02 \x01(\x0e29.agentgateway.dev.resource.BackendPolicySpec.Ai.RouteTypeR\x05value:\x028\x01\"n\n" +
"\x10BuiltinRegexRule\x12\x17\n" +
"\x13BUILTIN_UNSPECIFIED\x10\x00\x12\a\n" +
"\x03SSN\x10\x01\x12\x0f\n" +
"\vCREDIT_CARD\x10\x02\x12\x10\n" +
"\fPHONE_NUMBER\x10\x03\x12\t\n" +
"\x05EMAIL\x10\x04\x12\n" +
"\n" +
"\x06CA_SIN\x10\x05\":\n" +
"\n" +
"ActionKind\x12\x16\n" +
"\x12ACTION_UNSPECIFIED\x10\x00\x12\b\n" +
"\x04MASK\x10\x01\x12\n" +
"\n" +
"\x06REJECT\x10\x02\"\xac\x01\n" +
"\tRouteType\x12\x0f\n" +
"\vUNSPECIFIED\x10\x00\x12\x0f\n" +
"\vCOMPLETIONS\x10\x01\x12\f\n" +
"\bMESSAGES\x10\x02\x12\n" +
"\n" +
"\x06MODELS\x10\x03\x12\x0f\n" +
"\vPASSTHROUGH\x10\x04\x12\n" +
"\n" +
"\x06DETECT\x10\t\x12\r\n" +
"\tRESPONSES\x10\x05\x12\x19\n" +
"\x15ANTHROPIC_TOKEN_COUNT\x10\x06\x12\x0e\n" +
"\n" +
"EMBEDDINGS\x10\a\x12\f\n" +
"\bREALTIME\x10\b\x1a\x05\n" +
"\x03A2a\x1a\x92\x02\n" +
"\x10InferenceRouting\x12T\n" +
"\x0fendpoint_picker\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\x0eendpointPicker\x12l\n" +
"\ffailure_mode\x18\x02 \x01(\x0e2I.agentgateway.dev.resource.BackendPolicySpec.InferenceRouting.FailureModeR\vfailureMode\":\n" +
"\vFailureMode\x12\v\n" +
"\aUNKNOWN\x10\x00\x12\x0f\n" +
"\vFAIL_CLOSED\x10\x01\x12\r\n" +
"\tFAIL_OPEN\x10\x02\x1a\xcb\x02\n" +
"\bEviction\x125\n" +
"\bduration\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\bduration\x12*\n" +
"\x0erestore_health\x18\x03 \x01(\x01H\x00R\rrestoreHealth\x88\x01\x01\x126\n" +
"\x14consecutive_failures\x18\x05 \x01(\x05H\x01R\x13consecutiveFailures\x88\x01\x01\x12.\n" +
"\x10health_threshold\x18\x06 \x01(\x01H\x02R\x0fhealthThreshold\x88\x01\x01B\x11\n" +
"\x0f_restore_healthB\x17\n" +
"\x15_consecutive_failuresB\x13\n" +
"\x11_health_thresholdJ\x04\b\x02\x10\x03J\x04\b\x04\x10\x05R\x11max_eviction_timeR\x14max_eviction_percent\x1a\x8c\x01\n" +
"\x06Health\x12/\n" +
"\x13unhealthy_condition\x18\x01 \x01(\tR\x12unhealthyCondition\x12Q\n" +
"\beviction\x18\x02 \x01(\v25.agentgateway.dev.resource.BackendPolicySpec.EvictionR\beviction\x1a\xbe\x03\n" +
"\n" +
"BackendTLS\x12\x17\n" +
"\x04cert\x18\x01 \x01(\fH\x00R\x04cert\x88\x01\x01\x12\x15\n" +
"\x03key\x18\x02 \x01(\fH\x01R\x03key\x88\x01\x01\x12\x17\n" +
"\x04root\x18\x03 \x01(\fH\x02R\x04root\x88\x01\x01\x12l\n" +
"\fverification\x18\x04 \x01(\x0e2H.agentgateway.dev.resource.BackendPolicySpec.BackendTLS.VerificationModeR\fverification\x12\x1f\n" +
"\bhostname\x18\x05 \x01(\tH\x03R\bhostname\x88\x01\x01\x127\n" +
"\x18verify_subject_alt_names\x18\x06 \x03(\tR\x15verifySubjectAltNames\x123\n" +
"\x04alpn\x18\a \x01(\v2\x1f.agentgateway.dev.resource.AlpnR\x04alpn\"C\n" +
"\x10VerificationMode\x12\n" +
"\n" +
"\x06STRICT\x10\x00\x12\x11\n" +
"\rINSECURE_HOST\x10\x01\x12\x10\n" +
"\fINSECURE_ALL\x10\x02B\a\n" +
"\x05_certB\x06\n" +
"\x04_keyB\a\n" +
"\x05_rootB\v\n" +
"\t_hostname\x1a\xe7\x01\n" +
"\vBackendHTTP\x12^\n" +
"\aversion\x18\x01 \x01(\x0e2D.agentgateway.dev.resource.BackendPolicySpec.BackendHTTP.HttpVersionR\aversion\x12B\n" +
"\x0frequest_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x0erequestTimeout\"4\n" +
"\vHttpVersion\x12\x0f\n" +
"\vUNSPECIFIED\x10\x00\x12\t\n" +
"\x05HTTP1\x10\x01\x12\t\n" +
"\x05HTTP2\x10\x02\x1aR\n" +
"\rBackendTunnel\x12A\n" +
"\x05proxy\x18\x01 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\x05proxy\x1a\x9a\x01\n" +
"\n" +
"BackendTCP\x12H\n" +
"\tkeepalive\x18\x01 \x01(\v2*.agentgateway.dev.resource.KeepaliveConfigR\tkeepalive\x12B\n" +
"\x0fconnect_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x0econnectTimeout\x1aV\n" +
"\x10McpAuthorization\x12\x14\n" +
"\x05allow\x18\x01 \x03(\tR\x05allow\x12\x12\n" +
"\x04deny\x18\x02 \x03(\tR\x04deny\x12\x18\n" +
"\arequire\x18\x03 \x03(\tR\arequire\x1a\xca\x06\n" +
"\x11McpAuthentication\x12\x16\n" +
"\x06issuer\x18\x01 \x01(\tR\x06issuer\x12\x1c\n" +
"\taudiences\x18\x02 \x03(\tR\taudiences\x12\x1f\n" +
"\vjwks_inline\x18\x03 \x01(\tR\n" +
"jwksInline\x12a\n" +
"\bprovider\x18\x04 \x01(\x0e2E.agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.McpIDPR\bprovider\x12|\n" +
"\x11resource_metadata\x18\x05 \x01(\v2O.agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadataR\x10resourceMetadata\x12W\n" +
"\x04mode\x18\x06 \x01(\x0e2C.agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ModeR\x04mode\x12e\n" +
"\x16jwt_validation_options\x18\a \x01(\v2/.agentgateway.dev.resource.JWTValidationOptionsR\x14jwtValidationOptions\x1a\xd6\x01\n" +
"\x10ResourceMetadata\x12p\n" +
"\x05extra\x18\x01 \x03(\v2Z.agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadata.ExtraEntryR\x05extra\x1aP\n" +
"\n" +
"ExtraEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12,\n" +
"\x05value\x18\x02 \x01(\v2\x16.google.protobuf.ValueR\x05value:\x028\x01\"2\n" +
"\x06McpIDP\x12\x0f\n" +
"\vUNSPECIFIED\x10\x00\x12\t\n" +
"\x05AUTH0\x10\x01\x12\f\n" +
"\bKEYCLOAK\x10\x02\"0\n" +
"\x04Mode\x12\f\n" +
"\bOPTIONAL\x10\x00\x12\n" +
"\n" +
"\x06STRICT\x10\x01\x12\x0e\n" +
"\n" +
"PERMISSIVE\x10\x02B\x06\n" +
"\x04kind\"7\n" +
"\rStaticBackend\x12\x12\n" +
"\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n" +
"\x04port\x18\x02 \x01(\x05R\x04port\"\x15\n" +
"\x13DynamicForwardProxy\"h\n" +
"\n" +
"AwsBackend\x12O\n" +
"\n" +
"agent_core\x18\x01 \x01(\v2..agentgateway.dev.resource.AwsAgentCoreBackendH\x00R\tagentCoreB\t\n" +
"\aservice\"r\n" +
"\x13AwsAgentCoreBackend\x12*\n" +
"\x11agent_runtime_arn\x18\x01 \x01(\tR\x0fagentRuntimeArn\x12!\n" +
"\tqualifier\x18\x02 \x01(\tH\x00R\tqualifier\x88\x01\x01B\f\n" +
"\n" +
"_qualifier\"\xe7\f\n" +
"\tAIBackend\x12[\n" +
"\x0fprovider_groups\x18\x01 \x03(\v22.agentgateway.dev.resource.AIBackend.ProviderGroupR\x0eproviderGroups\x1a6\n" +
"\fHostOverride\x12\x12\n" +
"\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n" +
"\x04port\x18\x02 \x01(\x05R\x04port\x1a-\n" +
"\x06OpenAI\x12\x19\n" +
"\x05model\x18\x01 \x01(\tH\x00R\x05model\x88\x01\x01B\b\n" +
"\x06_model\x1a-\n" +
"\x06Gemini\x12\x19\n" +
"\x05model\x18\x01 \x01(\tH\x00R\x05model\x88\x01\x01B\b\n" +
"\x06_model\x1ad\n" +
"\x06Vertex\x12\x19\n" +
"\x05model\x18\x01 \x01(\tH\x00R\x05model\x88\x01\x01\x12\x16\n" +
"\x06region\x18\x02 \x01(\tR\x06region\x12\x1d\n" +
"\n" +
"project_id\x18\x03 \x01(\tR\tprojectIdB\b\n" +
"\x06_model\x1a0\n" +
"\tAnthropic\x12\x19\n" +
"\x05model\x18\x01 \x01(\tH\x00R\x05model\x88\x01\x01B\b\n" +
"\x06_model\x1a\xdf\x01\n" +
"\aBedrock\x12\x19\n" +
"\x05model\x18\x01 \x01(\tH\x00R\x05model\x88\x01\x01\x12\x16\n" +
"\x06region\x18\x02 \x01(\tR\x06region\x126\n" +
"\x14guardrail_identifier\x18\x03 \x01(\tH\x01R\x13guardrailIdentifier\x88\x01\x01\x120\n" +
"\x11guardrail_version\x18\x04 \x01(\tH\x02R\x10guardrailVersion\x88\x01\x01B\b\n" +
"\x06_modelB\x17\n" +
"\x15_guardrail_identifierB\x14\n" +
"\x12_guardrail_version\x1a|\n" +
"\vAzureOpenAI\x12\x19\n" +
"\x05model\x18\x01 \x01(\tH\x00R\x05model\x88\x01\x01\x12\x12\n" +
"\x04host\x18\x02 \x01(\tR\x04host\x12$\n" +
"\vapi_version\x18\x03 \x01(\tH\x01R\n" +
"apiVersion\x88\x01\x01B\b\n" +
"\x06_modelB\x0e\n" +
"\f_api_version\x1a\x90\x06\n" +
"\bProvider\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12V\n" +
"\rhost_override\x18\x02 \x01(\v21.agentgateway.dev.resource.AIBackend.HostOverrideR\fhostOverride\x12(\n" +
"\rpath_override\x18\x03 \x01(\tH\x01R\fpathOverride\x88\x01\x01\x12$\n" +
"\vpath_prefix\x18\f \x01(\tH\x02R\n" +
"pathPrefix\x88\x01\x01\x12E\n" +
"\x06openai\x18\x04 \x01(\v2+.agentgateway.dev.resource.AIBackend.OpenAIH\x00R\x06openai\x12E\n" +
"\x06gemini\x18\x05 \x01(\v2+.agentgateway.dev.resource.AIBackend.GeminiH\x00R\x06gemini\x12E\n" +
"\x06vertex\x18\x06 \x01(\v2+.agentgateway.dev.resource.AIBackend.VertexH\x00R\x06vertex\x12N\n" +
"\tanthropic\x18\a \x01(\v2..agentgateway.dev.resource.AIBackend.AnthropicH\x00R\tanthropic\x12H\n" +
"\abedrock\x18\b \x01(\v2,.agentgateway.dev.resource.AIBackend.BedrockH\x00R\abedrock\x12T\n" +
"\vazureopenai\x18\v \x01(\v20.agentgateway.dev.resource.AIBackend.AzureOpenAIH\x00R\vazureopenai\x12U\n" +
"\x0finline_policies\x18\n" +
" \x03(\v2,.agentgateway.dev.resource.BackendPolicySpecR\x0einlinePoliciesB\n" +
"\n" +
"\bproviderB\x10\n" +
"\x0e_path_overrideB\x0e\n" +
"\f_path_prefix\x1a\\\n" +
"\rProviderGroup\x12K\n" +
"\tproviders\x18\x01 \x03(\v2-.agentgateway.dev.resource.AIBackend.ProviderR\tproviders\"\xd5\x03\n" +
"\n" +
"MCPBackend\x12>\n" +
"\atargets\x18\x02 \x03(\v2$.agentgateway.dev.resource.MCPTargetR\atargets\x12W\n" +
"\rstateful_mode\x18\x03 \x01(\x0e22.agentgateway.dev.resource.MCPBackend.StatefulModeR\fstatefulMode\x12Q\n" +
"\vprefix_mode\x18\x04 \x01(\x0e20.agentgateway.dev.resource.MCPBackend.PrefixModeR\n" +
"prefixMode\x12T\n" +
"\ffailure_mode\x18\x05 \x01(\x0e21.agentgateway.dev.resource.MCPBackend.FailureModeR\vfailureMode\"+\n" +
"\fStatefulMode\x12\f\n" +
"\bSTATEFUL\x10\x00\x12\r\n" +
"\tSTATELESS\x10\x01\")\n" +
"\n" +
"PrefixMode\x12\x0f\n" +
"\vCONDITIONAL\x10\x00\x12\n" +
"\n" +
"\x06ALWAYS\x10\x01\"-\n" +
"\vFailureMode\x12\x0f\n" +
"\vFAIL_CLOSED\x10\x00\x12\r\n" +
"\tFAIL_OPEN\x10\x01\"\xfe\x01\n" +
"\tMCPTarget\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12E\n" +
"\abackend\x18\x02 \x01(\v2+.agentgateway.dev.resource.BackendReferenceR\abackend\x12\x12\n" +
"\x04path\x18\x03 \x01(\tR\x04path\x12I\n" +
"\bprotocol\x18\x04 \x01(\x0e2-.agentgateway.dev.resource.MCPTarget.ProtocolR\bprotocol\"7\n" +
"\bProtocol\x12\r\n" +
"\tUNDEFINED\x10\x00\x12\a\n" +
"\x03SSE\x10\x01\x12\x13\n" +
"\x0fSTREAMABLE_HTTP\x10\x02\"\xe0\x01\n" +
"\x10BackendReference\x12O\n" +
"\aservice\x18\x01 \x01(\v23.agentgateway.dev.resource.BackendReference.ServiceH\x00R\aservice\x12\x1a\n" +
"\abackend\x18\x02 \x01(\tH\x00R\abackend\x12\x12\n" +
"\x04port\x18\x03 \x01(\rR\x04port\x1aC\n" +
"\aService\x12\x1c\n" +
"\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" +
"\bhostname\x18\x02 \x01(\tR\bhostnameB\x06\n" +
"\x04kind\"$\n" +
"\x04Alpn\x12\x1c\n" +
"\tprotocols\x18\x01 \x03(\tR\tprotocols*I\n" +
"\bProtocol\x12\v\n" +
"\aUNKNOWN\x10\x00\x12\b\n" +
"\x04HTTP\x10\x01\x12\t\n" +
"\x05HTTPS\x10\x02\x12\a\n" +
"\x03TLS\x10\x03\x12\a\n" +
"\x03TCP\x10\x04\x12\t\n" +
"\x05HBONE\x10\x05B1Z/github.com/agentgateway/agentgateway/go/api;apib\x06proto3"
var (
file_resource_proto_rawDescOnce sync.Once
file_resource_proto_rawDescData []byte
)
func file_resource_proto_rawDescGZIP() []byte {
file_resource_proto_rawDescOnce.Do(func() {
file_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_resource_proto_rawDesc), len(file_resource_proto_rawDesc)))
})
return file_resource_proto_rawDescData
}
var file_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 30)
var file_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 147)
var file_resource_proto_goTypes = []any{
(Protocol)(0), // 0: agentgateway.dev.resource.Protocol
(Bind_Protocol)(0), // 1: agentgateway.dev.resource.Bind.Protocol
(Bind_TunnelProtocol)(0), // 2: agentgateway.dev.resource.Bind.TunnelProtocol
(TLSConfig_TLSVersion)(0), // 3: agentgateway.dev.resource.TLSConfig.TLSVersion
(TLSConfig_MTLSMode)(0), // 4: agentgateway.dev.resource.TLSConfig.MTLSMode
(TLSConfig_CipherSuite)(0), // 5: agentgateway.dev.resource.TLSConfig.CipherSuite
(FrontendPolicySpec_Logging_OtlpAccessLog_Protocol)(0), // 6: agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLog.Protocol
(FrontendPolicySpec_Tracing_Protocol)(0), // 7: agentgateway.dev.resource.FrontendPolicySpec.Tracing.Protocol
(TrafficPolicySpec_PolicyPhase)(0), // 8: agentgateway.dev.resource.TrafficPolicySpec.PolicyPhase
(TrafficPolicySpec_RemoteRateLimit_Type)(0), // 9: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.Type
(TrafficPolicySpec_RemoteRateLimit_FailureMode)(0), // 10: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.FailureMode
(TrafficPolicySpec_LocalRateLimit_Type)(0), // 11: agentgateway.dev.resource.TrafficPolicySpec.LocalRateLimit.Type
(TrafficPolicySpec_ExternalAuth_FailureMode)(0), // 12: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.FailureMode
(TrafficPolicySpec_JWT_Mode)(0), // 13: agentgateway.dev.resource.TrafficPolicySpec.JWT.Mode
(TrafficPolicySpec_BasicAuthentication_Mode)(0), // 14: agentgateway.dev.resource.TrafficPolicySpec.BasicAuthentication.Mode
(TrafficPolicySpec_APIKey_Mode)(0), // 15: agentgateway.dev.resource.TrafficPolicySpec.APIKey.Mode
(TrafficPolicySpec_ExtProc_FailureMode)(0), // 16: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.FailureMode
(TrafficPolicySpec_HostRewrite_Mode)(0), // 17: agentgateway.dev.resource.TrafficPolicySpec.HostRewrite.Mode
(BackendPolicySpec_Ai_BuiltinRegexRule)(0), // 18: agentgateway.dev.resource.BackendPolicySpec.Ai.BuiltinRegexRule
(BackendPolicySpec_Ai_ActionKind)(0), // 19: agentgateway.dev.resource.BackendPolicySpec.Ai.ActionKind
(BackendPolicySpec_Ai_RouteType)(0), // 20: agentgateway.dev.resource.BackendPolicySpec.Ai.RouteType
(BackendPolicySpec_InferenceRouting_FailureMode)(0), // 21: agentgateway.dev.resource.BackendPolicySpec.InferenceRouting.FailureMode
(BackendPolicySpec_BackendTLS_VerificationMode)(0), // 22: agentgateway.dev.resource.BackendPolicySpec.BackendTLS.VerificationMode
(BackendPolicySpec_BackendHTTP_HttpVersion)(0), // 23: agentgateway.dev.resource.BackendPolicySpec.BackendHTTP.HttpVersion
(BackendPolicySpec_McpAuthentication_McpIDP)(0), // 24: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.McpIDP
(BackendPolicySpec_McpAuthentication_Mode)(0), // 25: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.Mode
(MCPBackend_StatefulMode)(0), // 26: agentgateway.dev.resource.MCPBackend.StatefulMode
(MCPBackend_PrefixMode)(0), // 27: agentgateway.dev.resource.MCPBackend.PrefixMode
(MCPBackend_FailureMode)(0), // 28: agentgateway.dev.resource.MCPBackend.FailureMode
(MCPTarget_Protocol)(0), // 29: agentgateway.dev.resource.MCPTarget.Protocol
(*Resource)(nil), // 30: agentgateway.dev.resource.Resource
(*Bind)(nil), // 31: agentgateway.dev.resource.Bind
(*RouteName)(nil), // 32: agentgateway.dev.resource.RouteName
(*ListenerName)(nil), // 33: agentgateway.dev.resource.ListenerName
(*ResourceName)(nil), // 34: agentgateway.dev.resource.ResourceName
(*TypedResourceName)(nil), // 35: agentgateway.dev.resource.TypedResourceName
(*Listener)(nil), // 36: agentgateway.dev.resource.Listener
(*Route)(nil), // 37: agentgateway.dev.resource.Route
(*TCPRoute)(nil), // 38: agentgateway.dev.resource.TCPRoute
(*Policy)(nil), // 39: agentgateway.dev.resource.Policy
(*Backend)(nil), // 40: agentgateway.dev.resource.Backend
(*TLSConfig)(nil), // 41: agentgateway.dev.resource.TLSConfig
(*Timeout)(nil), // 42: agentgateway.dev.resource.Timeout
(*Retry)(nil), // 43: agentgateway.dev.resource.Retry
(*BackendAuthPolicy)(nil), // 44: agentgateway.dev.resource.BackendAuthPolicy
(*Passthrough)(nil), // 45: agentgateway.dev.resource.Passthrough
(*Key)(nil), // 46: agentgateway.dev.resource.Key
(*Gcp)(nil), // 47: agentgateway.dev.resource.Gcp
(*Aws)(nil), // 48: agentgateway.dev.resource.Aws
(*Azure)(nil), // 49: agentgateway.dev.resource.Azure
(*AwsExplicitConfig)(nil), // 50: agentgateway.dev.resource.AwsExplicitConfig
(*AwsImplicit)(nil), // 51: agentgateway.dev.resource.AwsImplicit
(*AzureExplicitConfig)(nil), // 52: agentgateway.dev.resource.AzureExplicitConfig
(*AzureClientSecret)(nil), // 53: agentgateway.dev.resource.AzureClientSecret
(*AzureManagedIdentityCredential)(nil), // 54: agentgateway.dev.resource.AzureManagedIdentityCredential
(*AzureWorkloadIdentityCredential)(nil), // 55: agentgateway.dev.resource.AzureWorkloadIdentityCredential
(*AzureDeveloperImplicit)(nil), // 56: agentgateway.dev.resource.AzureDeveloperImplicit
(*AzureImplicit)(nil), // 57: agentgateway.dev.resource.AzureImplicit
(*RouteMatch)(nil), // 58: agentgateway.dev.resource.RouteMatch
(*PathMatch)(nil), // 59: agentgateway.dev.resource.PathMatch
(*QueryMatch)(nil), // 60: agentgateway.dev.resource.QueryMatch
(*MethodMatch)(nil), // 61: agentgateway.dev.resource.MethodMatch
(*HeaderMatch)(nil), // 62: agentgateway.dev.resource.HeaderMatch
(*CORS)(nil), // 63: agentgateway.dev.resource.CORS
(*DirectResponse)(nil), // 64: agentgateway.dev.resource.DirectResponse
(*HeaderModifier)(nil), // 65: agentgateway.dev.resource.HeaderModifier
(*RequestMirrors)(nil), // 66: agentgateway.dev.resource.RequestMirrors
(*RequestRedirect)(nil), // 67: agentgateway.dev.resource.RequestRedirect
(*UrlRewrite)(nil), // 68: agentgateway.dev.resource.UrlRewrite
(*Header)(nil), // 69: agentgateway.dev.resource.Header
(*RouteBackend)(nil), // 70: agentgateway.dev.resource.RouteBackend
(*PolicyTarget)(nil), // 71: agentgateway.dev.resource.PolicyTarget
(*KeepaliveConfig)(nil), // 72: agentgateway.dev.resource.KeepaliveConfig
(*FrontendPolicySpec)(nil), // 73: agentgateway.dev.resource.FrontendPolicySpec
(*JWTValidationOptions)(nil), // 74: agentgateway.dev.resource.JWTValidationOptions
(*TrafficPolicySpec)(nil), // 75: agentgateway.dev.resource.TrafficPolicySpec
(*BackendPolicySpec)(nil), // 76: agentgateway.dev.resource.BackendPolicySpec
(*StaticBackend)(nil), // 77: agentgateway.dev.resource.StaticBackend
(*DynamicForwardProxy)(nil), // 78: agentgateway.dev.resource.DynamicForwardProxy
(*AwsBackend)(nil), // 79: agentgateway.dev.resource.AwsBackend
(*AwsAgentCoreBackend)(nil), // 80: agentgateway.dev.resource.AwsAgentCoreBackend
(*AIBackend)(nil), // 81: agentgateway.dev.resource.AIBackend
(*MCPBackend)(nil), // 82: agentgateway.dev.resource.MCPBackend
(*MCPTarget)(nil), // 83: agentgateway.dev.resource.MCPTarget
(*BackendReference)(nil), // 84: agentgateway.dev.resource.BackendReference
(*Alpn)(nil), // 85: agentgateway.dev.resource.Alpn
(*Gcp_AccessToken)(nil), // 86: agentgateway.dev.resource.Gcp.AccessToken
(*Gcp_IdToken)(nil), // 87: agentgateway.dev.resource.Gcp.IdToken
(*AzureManagedIdentityCredential_UserAssignedIdentity)(nil), // 88: agentgateway.dev.resource.AzureManagedIdentityCredential.UserAssignedIdentity
(*RequestMirrors_Mirror)(nil), // 89: agentgateway.dev.resource.RequestMirrors.Mirror
(*PolicyTarget_ServiceTarget)(nil), // 90: agentgateway.dev.resource.PolicyTarget.ServiceTarget
(*PolicyTarget_BackendTarget)(nil), // 91: agentgateway.dev.resource.PolicyTarget.BackendTarget
(*PolicyTarget_GatewayTarget)(nil), // 92: agentgateway.dev.resource.PolicyTarget.GatewayTarget
(*PolicyTarget_RouteTarget)(nil), // 93: agentgateway.dev.resource.PolicyTarget.RouteTarget
(*FrontendPolicySpec_HTTP)(nil), // 94: agentgateway.dev.resource.FrontendPolicySpec.HTTP
(*FrontendPolicySpec_TLS)(nil), // 95: agentgateway.dev.resource.FrontendPolicySpec.TLS
(*FrontendPolicySpec_TCP)(nil), // 96: agentgateway.dev.resource.FrontendPolicySpec.TCP
(*FrontendPolicySpec_NetworkAuthorization)(nil), // 97: agentgateway.dev.resource.FrontendPolicySpec.NetworkAuthorization
(*FrontendPolicySpec_Logging)(nil), // 98: agentgateway.dev.resource.FrontendPolicySpec.Logging
(*FrontendPolicySpec_Tracing)(nil), // 99: agentgateway.dev.resource.FrontendPolicySpec.Tracing
(*FrontendPolicySpec_TracingAttribute)(nil), // 100: agentgateway.dev.resource.FrontendPolicySpec.TracingAttribute
(*FrontendPolicySpec_Logging_Field)(nil), // 101: agentgateway.dev.resource.FrontendPolicySpec.Logging.Field
(*FrontendPolicySpec_Logging_Fields)(nil), // 102: agentgateway.dev.resource.FrontendPolicySpec.Logging.Fields
(*FrontendPolicySpec_Logging_OtlpAccessLog)(nil), // 103: agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLog
(*TrafficPolicySpec_RemoteRateLimit)(nil), // 104: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit
(*TrafficPolicySpec_LocalRateLimit)(nil), // 105: agentgateway.dev.resource.TrafficPolicySpec.LocalRateLimit
(*TrafficPolicySpec_ExternalAuth)(nil), // 106: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth
(*TrafficPolicySpec_RBAC)(nil), // 107: agentgateway.dev.resource.TrafficPolicySpec.RBAC
(*TrafficPolicySpec_JWTProvider)(nil), // 108: agentgateway.dev.resource.TrafficPolicySpec.JWTProvider
(*TrafficPolicySpec_JWT)(nil), // 109: agentgateway.dev.resource.TrafficPolicySpec.JWT
(*TrafficPolicySpec_BasicAuthentication)(nil), // 110: agentgateway.dev.resource.TrafficPolicySpec.BasicAuthentication
(*TrafficPolicySpec_APIKey)(nil), // 111: agentgateway.dev.resource.TrafficPolicySpec.APIKey
(*TrafficPolicySpec_TransformationPolicy)(nil), // 112: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy
(*TrafficPolicySpec_HeaderTransformation)(nil), // 113: agentgateway.dev.resource.TrafficPolicySpec.HeaderTransformation
(*TrafficPolicySpec_BodyTransformation)(nil), // 114: agentgateway.dev.resource.TrafficPolicySpec.BodyTransformation
(*TrafficPolicySpec_CSRF)(nil), // 115: agentgateway.dev.resource.TrafficPolicySpec.CSRF
(*TrafficPolicySpec_ExtProc)(nil), // 116: agentgateway.dev.resource.TrafficPolicySpec.ExtProc
(*TrafficPolicySpec_HostRewrite)(nil), // 117: agentgateway.dev.resource.TrafficPolicySpec.HostRewrite
(*TrafficPolicySpec_RemoteRateLimit_Descriptor)(nil), // 118: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.Descriptor
(*TrafficPolicySpec_RemoteRateLimit_Entry)(nil), // 119: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.Entry
(*TrafficPolicySpec_ExternalAuth_BodyOptions)(nil), // 120: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.BodyOptions
(*TrafficPolicySpec_ExternalAuth_GRPCProtocol)(nil), // 121: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol
(*TrafficPolicySpec_ExternalAuth_HTTPProtocol)(nil), // 122: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol
nil, // 123: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol.ContextEntry
nil, // 124: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol.MetadataEntry
nil, // 125: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol.AddRequestHeadersEntry
nil, // 126: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol.MetadataEntry
(*TrafficPolicySpec_JWT_MCP)(nil), // 127: agentgateway.dev.resource.TrafficPolicySpec.JWT.MCP
(*TrafficPolicySpec_APIKey_User)(nil), // 128: agentgateway.dev.resource.TrafficPolicySpec.APIKey.User
(*TrafficPolicySpec_TransformationPolicy_Transform)(nil), // 129: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform
nil, // 130: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform.MetadataEntry
nil, // 131: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.RequestAttributesEntry
nil, // 132: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.ResponseAttributesEntry
(*TrafficPolicySpec_ExtProc_NamespacedMetadataContext)(nil), // 133: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.NamespacedMetadataContext
nil, // 134: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.MetadataContextEntry
nil, // 135: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.NamespacedMetadataContext.ContextEntry
(*BackendPolicySpec_Ai)(nil), // 136: agentgateway.dev.resource.BackendPolicySpec.Ai
(*BackendPolicySpec_A2A)(nil), // 137: agentgateway.dev.resource.BackendPolicySpec.A2a
(*BackendPolicySpec_InferenceRouting)(nil), // 138: agentgateway.dev.resource.BackendPolicySpec.InferenceRouting
(*BackendPolicySpec_Eviction)(nil), // 139: agentgateway.dev.resource.BackendPolicySpec.Eviction
(*BackendPolicySpec_Health)(nil), // 140: agentgateway.dev.resource.BackendPolicySpec.Health
(*BackendPolicySpec_BackendTLS)(nil), // 141: agentgateway.dev.resource.BackendPolicySpec.BackendTLS
(*BackendPolicySpec_BackendHTTP)(nil), // 142: agentgateway.dev.resource.BackendPolicySpec.BackendHTTP
(*BackendPolicySpec_BackendTunnel)(nil), // 143: agentgateway.dev.resource.BackendPolicySpec.BackendTunnel
(*BackendPolicySpec_BackendTCP)(nil), // 144: agentgateway.dev.resource.BackendPolicySpec.BackendTCP
(*BackendPolicySpec_McpAuthorization)(nil), // 145: agentgateway.dev.resource.BackendPolicySpec.McpAuthorization
(*BackendPolicySpec_McpAuthentication)(nil), // 146: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication
(*BackendPolicySpec_Ai_Message)(nil), // 147: agentgateway.dev.resource.BackendPolicySpec.Ai.Message
(*BackendPolicySpec_Ai_PromptEnrichment)(nil), // 148: agentgateway.dev.resource.BackendPolicySpec.Ai.PromptEnrichment
(*BackendPolicySpec_Ai_RegexRule)(nil), // 149: agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRule
(*BackendPolicySpec_Ai_RegexRules)(nil), // 150: agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRules
(*BackendPolicySpec_Ai_Webhook)(nil), // 151: agentgateway.dev.resource.BackendPolicySpec.Ai.Webhook
(*BackendPolicySpec_Ai_Moderation)(nil), // 152: agentgateway.dev.resource.BackendPolicySpec.Ai.Moderation
(*BackendPolicySpec_Ai_BedrockGuardrails)(nil), // 153: agentgateway.dev.resource.BackendPolicySpec.Ai.BedrockGuardrails
(*BackendPolicySpec_Ai_GoogleModelArmor)(nil), // 154: agentgateway.dev.resource.BackendPolicySpec.Ai.GoogleModelArmor
(*BackendPolicySpec_Ai_RequestRejection)(nil), // 155: agentgateway.dev.resource.BackendPolicySpec.Ai.RequestRejection
(*BackendPolicySpec_Ai_ResponseGuard)(nil), // 156: agentgateway.dev.resource.BackendPolicySpec.Ai.ResponseGuard
(*BackendPolicySpec_Ai_RequestGuard)(nil), // 157: agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuard
(*BackendPolicySpec_Ai_PromptGuard)(nil), // 158: agentgateway.dev.resource.BackendPolicySpec.Ai.PromptGuard
(*BackendPolicySpec_Ai_PromptCaching)(nil), // 159: agentgateway.dev.resource.BackendPolicySpec.Ai.PromptCaching
nil, // 160: agentgateway.dev.resource.BackendPolicySpec.Ai.DefaultsEntry
nil, // 161: agentgateway.dev.resource.BackendPolicySpec.Ai.OverridesEntry
nil, // 162: agentgateway.dev.resource.BackendPolicySpec.Ai.TransformationsEntry
nil, // 163: agentgateway.dev.resource.BackendPolicySpec.Ai.ModelAliasesEntry
nil, // 164: agentgateway.dev.resource.BackendPolicySpec.Ai.RoutesEntry
(*BackendPolicySpec_McpAuthentication_ResourceMetadata)(nil), // 165: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadata
nil, // 166: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadata.ExtraEntry
(*AIBackend_HostOverride)(nil), // 167: agentgateway.dev.resource.AIBackend.HostOverride
(*AIBackend_OpenAI)(nil), // 168: agentgateway.dev.resource.AIBackend.OpenAI
(*AIBackend_Gemini)(nil), // 169: agentgateway.dev.resource.AIBackend.Gemini
(*AIBackend_Vertex)(nil), // 170: agentgateway.dev.resource.AIBackend.Vertex
(*AIBackend_Anthropic)(nil), // 171: agentgateway.dev.resource.AIBackend.Anthropic
(*AIBackend_Bedrock)(nil), // 172: agentgateway.dev.resource.AIBackend.Bedrock
(*AIBackend_AzureOpenAI)(nil), // 173: agentgateway.dev.resource.AIBackend.AzureOpenAI
(*AIBackend_Provider)(nil), // 174: agentgateway.dev.resource.AIBackend.Provider
(*AIBackend_ProviderGroup)(nil), // 175: agentgateway.dev.resource.AIBackend.ProviderGroup
(*BackendReference_Service)(nil), // 176: agentgateway.dev.resource.BackendReference.Service
(*workloadapi.Workload)(nil), // 177: istio.workload.Workload
(*workloadapi.Service)(nil), // 178: istio.workload.Service
(*workloadapi.NamespacedHostname)(nil), // 179: istio.workload.NamespacedHostname
(*durationpb.Duration)(nil), // 180: google.protobuf.Duration
(*structpb.Struct)(nil), // 181: google.protobuf.Struct
(*structpb.Value)(nil), // 182: google.protobuf.Value
}
var file_resource_proto_depIdxs = []int32{
31, // 0: agentgateway.dev.resource.Resource.bind:type_name -> agentgateway.dev.resource.Bind
36, // 1: agentgateway.dev.resource.Resource.listener:type_name -> agentgateway.dev.resource.Listener
37, // 2: agentgateway.dev.resource.Resource.route:type_name -> agentgateway.dev.resource.Route
40, // 3: agentgateway.dev.resource.Resource.backend:type_name -> agentgateway.dev.resource.Backend
39, // 4: agentgateway.dev.resource.Resource.policy:type_name -> agentgateway.dev.resource.Policy
38, // 5: agentgateway.dev.resource.Resource.tcp_route:type_name -> agentgateway.dev.resource.TCPRoute
177, // 6: agentgateway.dev.resource.Resource.workload:type_name -> istio.workload.Workload
178, // 7: agentgateway.dev.resource.Resource.service:type_name -> istio.workload.Service
1, // 8: agentgateway.dev.resource.Bind.protocol:type_name -> agentgateway.dev.resource.Bind.Protocol
2, // 9: agentgateway.dev.resource.Bind.tunnel_protocol:type_name -> agentgateway.dev.resource.Bind.TunnelProtocol
34, // 10: agentgateway.dev.resource.ListenerName.listener_set:type_name -> agentgateway.dev.resource.ResourceName
33, // 11: agentgateway.dev.resource.Listener.name:type_name -> agentgateway.dev.resource.ListenerName
0, // 12: agentgateway.dev.resource.Listener.protocol:type_name -> agentgateway.dev.resource.Protocol
41, // 13: agentgateway.dev.resource.Listener.tls:type_name -> agentgateway.dev.resource.TLSConfig
179, // 14: agentgateway.dev.resource.Route.service_key:type_name -> istio.workload.NamespacedHostname
32, // 15: agentgateway.dev.resource.Route.name:type_name -> agentgateway.dev.resource.RouteName
58, // 16: agentgateway.dev.resource.Route.matches:type_name -> agentgateway.dev.resource.RouteMatch
70, // 17: agentgateway.dev.resource.Route.backends:type_name -> agentgateway.dev.resource.RouteBackend
75, // 18: agentgateway.dev.resource.Route.traffic_policies:type_name -> agentgateway.dev.resource.TrafficPolicySpec
179, // 19: agentgateway.dev.resource.TCPRoute.service_key:type_name -> istio.workload.NamespacedHostname
32, // 20: agentgateway.dev.resource.TCPRoute.name:type_name -> agentgateway.dev.resource.RouteName
70, // 21: agentgateway.dev.resource.TCPRoute.backends:type_name -> agentgateway.dev.resource.RouteBackend
35, // 22: agentgateway.dev.resource.Policy.name:type_name -> agentgateway.dev.resource.TypedResourceName
71, // 23: agentgateway.dev.resource.Policy.target:type_name -> agentgateway.dev.resource.PolicyTarget
75, // 24: agentgateway.dev.resource.Policy.traffic:type_name -> agentgateway.dev.resource.TrafficPolicySpec
76, // 25: agentgateway.dev.resource.Policy.backend:type_name -> agentgateway.dev.resource.BackendPolicySpec
73, // 26: agentgateway.dev.resource.Policy.frontend:type_name -> agentgateway.dev.resource.FrontendPolicySpec
34, // 27: agentgateway.dev.resource.Backend.name:type_name -> agentgateway.dev.resource.ResourceName
77, // 28: agentgateway.dev.resource.Backend.static:type_name -> agentgateway.dev.resource.StaticBackend
81, // 29: agentgateway.dev.resource.Backend.ai:type_name -> agentgateway.dev.resource.AIBackend
82, // 30: agentgateway.dev.resource.Backend.mcp:type_name -> agentgateway.dev.resource.MCPBackend
78, // 31: agentgateway.dev.resource.Backend.dynamic:type_name -> agentgateway.dev.resource.DynamicForwardProxy
79, // 32: agentgateway.dev.resource.Backend.aws:type_name -> agentgateway.dev.resource.AwsBackend
76, // 33: agentgateway.dev.resource.Backend.inline_policies:type_name -> agentgateway.dev.resource.BackendPolicySpec
5, // 34: agentgateway.dev.resource.TLSConfig.cipher_suites:type_name -> agentgateway.dev.resource.TLSConfig.CipherSuite
3, // 35: agentgateway.dev.resource.TLSConfig.min_version:type_name -> agentgateway.dev.resource.TLSConfig.TLSVersion
3, // 36: agentgateway.dev.resource.TLSConfig.max_version:type_name -> agentgateway.dev.resource.TLSConfig.TLSVersion
4, // 37: agentgateway.dev.resource.TLSConfig.mtls_mode:type_name -> agentgateway.dev.resource.TLSConfig.MTLSMode
180, // 38: agentgateway.dev.resource.Timeout.request:type_name -> google.protobuf.Duration
180, // 39: agentgateway.dev.resource.Timeout.backend_request:type_name -> google.protobuf.Duration
180, // 40: agentgateway.dev.resource.Retry.backoff:type_name -> google.protobuf.Duration
45, // 41: agentgateway.dev.resource.BackendAuthPolicy.passthrough:type_name -> agentgateway.dev.resource.Passthrough
46, // 42: agentgateway.dev.resource.BackendAuthPolicy.key:type_name -> agentgateway.dev.resource.Key
47, // 43: agentgateway.dev.resource.BackendAuthPolicy.gcp:type_name -> agentgateway.dev.resource.Gcp
48, // 44: agentgateway.dev.resource.BackendAuthPolicy.aws:type_name -> agentgateway.dev.resource.Aws
49, // 45: agentgateway.dev.resource.BackendAuthPolicy.azure:type_name -> agentgateway.dev.resource.Azure
86, // 46: agentgateway.dev.resource.Gcp.access_token:type_name -> agentgateway.dev.resource.Gcp.AccessToken
87, // 47: agentgateway.dev.resource.Gcp.id_token:type_name -> agentgateway.dev.resource.Gcp.IdToken
50, // 48: agentgateway.dev.resource.Aws.explicit_config:type_name -> agentgateway.dev.resource.AwsExplicitConfig
51, // 49: agentgateway.dev.resource.Aws.implicit:type_name -> agentgateway.dev.resource.AwsImplicit
52, // 50: agentgateway.dev.resource.Azure.explicit_config:type_name -> agentgateway.dev.resource.AzureExplicitConfig
56, // 51: agentgateway.dev.resource.Azure.developer_implicit:type_name -> agentgateway.dev.resource.AzureDeveloperImplicit
57, // 52: agentgateway.dev.resource.Azure.implicit:type_name -> agentgateway.dev.resource.AzureImplicit
53, // 53: agentgateway.dev.resource.AzureExplicitConfig.client_secret:type_name -> agentgateway.dev.resource.AzureClientSecret
54, // 54: agentgateway.dev.resource.AzureExplicitConfig.managed_identity_credential:type_name -> agentgateway.dev.resource.AzureManagedIdentityCredential
55, // 55: agentgateway.dev.resource.AzureExplicitConfig.workload_identity_credential:type_name -> agentgateway.dev.resource.AzureWorkloadIdentityCredential
88, // 56: agentgateway.dev.resource.AzureManagedIdentityCredential.user_assigned_identity:type_name -> agentgateway.dev.resource.AzureManagedIdentityCredential.UserAssignedIdentity
59, // 57: agentgateway.dev.resource.RouteMatch.path:type_name -> agentgateway.dev.resource.PathMatch
62, // 58: agentgateway.dev.resource.RouteMatch.headers:type_name -> agentgateway.dev.resource.HeaderMatch
61, // 59: agentgateway.dev.resource.RouteMatch.method:type_name -> agentgateway.dev.resource.MethodMatch
60, // 60: agentgateway.dev.resource.RouteMatch.query_params:type_name -> agentgateway.dev.resource.QueryMatch
180, // 61: agentgateway.dev.resource.CORS.max_age:type_name -> google.protobuf.Duration
69, // 62: agentgateway.dev.resource.HeaderModifier.add:type_name -> agentgateway.dev.resource.Header
69, // 63: agentgateway.dev.resource.HeaderModifier.set:type_name -> agentgateway.dev.resource.Header
89, // 64: agentgateway.dev.resource.RequestMirrors.mirrors:type_name -> agentgateway.dev.resource.RequestMirrors.Mirror
84, // 65: agentgateway.dev.resource.RouteBackend.backend:type_name -> agentgateway.dev.resource.BackendReference
76, // 66: agentgateway.dev.resource.RouteBackend.backend_policies:type_name -> agentgateway.dev.resource.BackendPolicySpec
92, // 67: agentgateway.dev.resource.PolicyTarget.gateway:type_name -> agentgateway.dev.resource.PolicyTarget.GatewayTarget
93, // 68: agentgateway.dev.resource.PolicyTarget.route:type_name -> agentgateway.dev.resource.PolicyTarget.RouteTarget
91, // 69: agentgateway.dev.resource.PolicyTarget.backend:type_name -> agentgateway.dev.resource.PolicyTarget.BackendTarget
90, // 70: agentgateway.dev.resource.PolicyTarget.service:type_name -> agentgateway.dev.resource.PolicyTarget.ServiceTarget
180, // 71: agentgateway.dev.resource.KeepaliveConfig.time:type_name -> google.protobuf.Duration
180, // 72: agentgateway.dev.resource.KeepaliveConfig.interval:type_name -> google.protobuf.Duration
96, // 73: agentgateway.dev.resource.FrontendPolicySpec.tcp:type_name -> agentgateway.dev.resource.FrontendPolicySpec.TCP
95, // 74: agentgateway.dev.resource.FrontendPolicySpec.tls:type_name -> agentgateway.dev.resource.FrontendPolicySpec.TLS
94, // 75: agentgateway.dev.resource.FrontendPolicySpec.http:type_name -> agentgateway.dev.resource.FrontendPolicySpec.HTTP
98, // 76: agentgateway.dev.resource.FrontendPolicySpec.logging:type_name -> agentgateway.dev.resource.FrontendPolicySpec.Logging
99, // 77: agentgateway.dev.resource.FrontendPolicySpec.tracing:type_name -> agentgateway.dev.resource.FrontendPolicySpec.Tracing
97, // 78: agentgateway.dev.resource.FrontendPolicySpec.network_authorization:type_name -> agentgateway.dev.resource.FrontendPolicySpec.NetworkAuthorization
8, // 79: agentgateway.dev.resource.TrafficPolicySpec.phase:type_name -> agentgateway.dev.resource.TrafficPolicySpec.PolicyPhase
42, // 80: agentgateway.dev.resource.TrafficPolicySpec.timeout:type_name -> agentgateway.dev.resource.Timeout
43, // 81: agentgateway.dev.resource.TrafficPolicySpec.retry:type_name -> agentgateway.dev.resource.Retry
105, // 82: agentgateway.dev.resource.TrafficPolicySpec.local_rate_limit:type_name -> agentgateway.dev.resource.TrafficPolicySpec.LocalRateLimit
106, // 83: agentgateway.dev.resource.TrafficPolicySpec.ext_authz:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth
107, // 84: agentgateway.dev.resource.TrafficPolicySpec.authorization:type_name -> agentgateway.dev.resource.TrafficPolicySpec.RBAC
109, // 85: agentgateway.dev.resource.TrafficPolicySpec.jwt:type_name -> agentgateway.dev.resource.TrafficPolicySpec.JWT
112, // 86: agentgateway.dev.resource.TrafficPolicySpec.transformation:type_name -> agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy
104, // 87: agentgateway.dev.resource.TrafficPolicySpec.remote_rate_limit:type_name -> agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit
115, // 88: agentgateway.dev.resource.TrafficPolicySpec.csrf:type_name -> agentgateway.dev.resource.TrafficPolicySpec.CSRF
116, // 89: agentgateway.dev.resource.TrafficPolicySpec.ext_proc:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExtProc
65, // 90: agentgateway.dev.resource.TrafficPolicySpec.request_header_modifier:type_name -> agentgateway.dev.resource.HeaderModifier
65, // 91: agentgateway.dev.resource.TrafficPolicySpec.response_header_modifier:type_name -> agentgateway.dev.resource.HeaderModifier
67, // 92: agentgateway.dev.resource.TrafficPolicySpec.request_redirect:type_name -> agentgateway.dev.resource.RequestRedirect
68, // 93: agentgateway.dev.resource.TrafficPolicySpec.url_rewrite:type_name -> agentgateway.dev.resource.UrlRewrite
66, // 94: agentgateway.dev.resource.TrafficPolicySpec.request_mirror:type_name -> agentgateway.dev.resource.RequestMirrors
64, // 95: agentgateway.dev.resource.TrafficPolicySpec.direct_response:type_name -> agentgateway.dev.resource.DirectResponse
63, // 96: agentgateway.dev.resource.TrafficPolicySpec.cors:type_name -> agentgateway.dev.resource.CORS
110, // 97: agentgateway.dev.resource.TrafficPolicySpec.basic_auth:type_name -> agentgateway.dev.resource.TrafficPolicySpec.BasicAuthentication
111, // 98: agentgateway.dev.resource.TrafficPolicySpec.api_key_auth:type_name -> agentgateway.dev.resource.TrafficPolicySpec.APIKey
117, // 99: agentgateway.dev.resource.TrafficPolicySpec.host_rewrite:type_name -> agentgateway.dev.resource.TrafficPolicySpec.HostRewrite
137, // 100: agentgateway.dev.resource.BackendPolicySpec.a2a:type_name -> agentgateway.dev.resource.BackendPolicySpec.A2a
138, // 101: agentgateway.dev.resource.BackendPolicySpec.inference_routing:type_name -> agentgateway.dev.resource.BackendPolicySpec.InferenceRouting
141, // 102: agentgateway.dev.resource.BackendPolicySpec.backend_tls:type_name -> agentgateway.dev.resource.BackendPolicySpec.BackendTLS
44, // 103: agentgateway.dev.resource.BackendPolicySpec.auth:type_name -> agentgateway.dev.resource.BackendAuthPolicy
145, // 104: agentgateway.dev.resource.BackendPolicySpec.mcp_authorization:type_name -> agentgateway.dev.resource.BackendPolicySpec.McpAuthorization
146, // 105: agentgateway.dev.resource.BackendPolicySpec.mcp_authentication:type_name -> agentgateway.dev.resource.BackendPolicySpec.McpAuthentication
136, // 106: agentgateway.dev.resource.BackendPolicySpec.ai:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai
65, // 107: agentgateway.dev.resource.BackendPolicySpec.request_header_modifier:type_name -> agentgateway.dev.resource.HeaderModifier
65, // 108: agentgateway.dev.resource.BackendPolicySpec.response_header_modifier:type_name -> agentgateway.dev.resource.HeaderModifier
67, // 109: agentgateway.dev.resource.BackendPolicySpec.request_redirect:type_name -> agentgateway.dev.resource.RequestRedirect
66, // 110: agentgateway.dev.resource.BackendPolicySpec.request_mirror:type_name -> agentgateway.dev.resource.RequestMirrors
142, // 111: agentgateway.dev.resource.BackendPolicySpec.backend_http:type_name -> agentgateway.dev.resource.BackendPolicySpec.BackendHTTP
144, // 112: agentgateway.dev.resource.BackendPolicySpec.backend_tcp:type_name -> agentgateway.dev.resource.BackendPolicySpec.BackendTCP
112, // 113: agentgateway.dev.resource.BackendPolicySpec.transformation:type_name -> agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy
140, // 114: agentgateway.dev.resource.BackendPolicySpec.health:type_name -> agentgateway.dev.resource.BackendPolicySpec.Health
143, // 115: agentgateway.dev.resource.BackendPolicySpec.backend_tunnel:type_name -> agentgateway.dev.resource.BackendPolicySpec.BackendTunnel
80, // 116: agentgateway.dev.resource.AwsBackend.agent_core:type_name -> agentgateway.dev.resource.AwsAgentCoreBackend
175, // 117: agentgateway.dev.resource.AIBackend.provider_groups:type_name -> agentgateway.dev.resource.AIBackend.ProviderGroup
83, // 118: agentgateway.dev.resource.MCPBackend.targets:type_name -> agentgateway.dev.resource.MCPTarget
26, // 119: agentgateway.dev.resource.MCPBackend.stateful_mode:type_name -> agentgateway.dev.resource.MCPBackend.StatefulMode
27, // 120: agentgateway.dev.resource.MCPBackend.prefix_mode:type_name -> agentgateway.dev.resource.MCPBackend.PrefixMode
28, // 121: agentgateway.dev.resource.MCPBackend.failure_mode:type_name -> agentgateway.dev.resource.MCPBackend.FailureMode
84, // 122: agentgateway.dev.resource.MCPTarget.backend:type_name -> agentgateway.dev.resource.BackendReference
29, // 123: agentgateway.dev.resource.MCPTarget.protocol:type_name -> agentgateway.dev.resource.MCPTarget.Protocol
176, // 124: agentgateway.dev.resource.BackendReference.service:type_name -> agentgateway.dev.resource.BackendReference.Service
84, // 125: agentgateway.dev.resource.RequestMirrors.Mirror.backend:type_name -> agentgateway.dev.resource.BackendReference
180, // 126: agentgateway.dev.resource.FrontendPolicySpec.HTTP.http1_idle_timeout:type_name -> google.protobuf.Duration
180, // 127: agentgateway.dev.resource.FrontendPolicySpec.HTTP.http2_keepalive_interval:type_name -> google.protobuf.Duration
180, // 128: agentgateway.dev.resource.FrontendPolicySpec.HTTP.http2_keepalive_timeout:type_name -> google.protobuf.Duration
180, // 129: agentgateway.dev.resource.FrontendPolicySpec.TLS.handshake_timeout:type_name -> google.protobuf.Duration
85, // 130: agentgateway.dev.resource.FrontendPolicySpec.TLS.alpn:type_name -> agentgateway.dev.resource.Alpn
5, // 131: agentgateway.dev.resource.FrontendPolicySpec.TLS.cipher_suites:type_name -> agentgateway.dev.resource.TLSConfig.CipherSuite
3, // 132: agentgateway.dev.resource.FrontendPolicySpec.TLS.min_version:type_name -> agentgateway.dev.resource.TLSConfig.TLSVersion
3, // 133: agentgateway.dev.resource.FrontendPolicySpec.TLS.max_version:type_name -> agentgateway.dev.resource.TLSConfig.TLSVersion
72, // 134: agentgateway.dev.resource.FrontendPolicySpec.TCP.keepalives:type_name -> agentgateway.dev.resource.KeepaliveConfig
102, // 135: agentgateway.dev.resource.FrontendPolicySpec.Logging.fields:type_name -> agentgateway.dev.resource.FrontendPolicySpec.Logging.Fields
103, // 136: agentgateway.dev.resource.FrontendPolicySpec.Logging.otlp_access_log:type_name -> agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLog
84, // 137: agentgateway.dev.resource.FrontendPolicySpec.Tracing.provider_backend:type_name -> agentgateway.dev.resource.BackendReference
100, // 138: agentgateway.dev.resource.FrontendPolicySpec.Tracing.attributes:type_name -> agentgateway.dev.resource.FrontendPolicySpec.TracingAttribute
100, // 139: agentgateway.dev.resource.FrontendPolicySpec.Tracing.resources:type_name -> agentgateway.dev.resource.FrontendPolicySpec.TracingAttribute
7, // 140: agentgateway.dev.resource.FrontendPolicySpec.Tracing.protocol:type_name -> agentgateway.dev.resource.FrontendPolicySpec.Tracing.Protocol
101, // 141: agentgateway.dev.resource.FrontendPolicySpec.Logging.Fields.add:type_name -> agentgateway.dev.resource.FrontendPolicySpec.Logging.Field
84, // 142: agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLog.provider_backend:type_name -> agentgateway.dev.resource.BackendReference
76, // 143: agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLog.inline_policies:type_name -> agentgateway.dev.resource.BackendPolicySpec
6, // 144: agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLog.protocol:type_name -> agentgateway.dev.resource.FrontendPolicySpec.Logging.OtlpAccessLog.Protocol
118, // 145: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.descriptors:type_name -> agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.Descriptor
84, // 146: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.target:type_name -> agentgateway.dev.resource.BackendReference
10, // 147: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.failure_mode:type_name -> agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.FailureMode
180, // 148: agentgateway.dev.resource.TrafficPolicySpec.LocalRateLimit.fill_interval:type_name -> google.protobuf.Duration
11, // 149: agentgateway.dev.resource.TrafficPolicySpec.LocalRateLimit.type:type_name -> agentgateway.dev.resource.TrafficPolicySpec.LocalRateLimit.Type
84, // 150: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.target:type_name -> agentgateway.dev.resource.BackendReference
121, // 151: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.grpc:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol
122, // 152: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.http:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol
12, // 153: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.failure_mode:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.FailureMode
120, // 154: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.include_request_body:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.BodyOptions
74, // 155: agentgateway.dev.resource.TrafficPolicySpec.JWTProvider.jwt_validation_options:type_name -> agentgateway.dev.resource.JWTValidationOptions
13, // 156: agentgateway.dev.resource.TrafficPolicySpec.JWT.mode:type_name -> agentgateway.dev.resource.TrafficPolicySpec.JWT.Mode
108, // 157: agentgateway.dev.resource.TrafficPolicySpec.JWT.providers:type_name -> agentgateway.dev.resource.TrafficPolicySpec.JWTProvider
127, // 158: agentgateway.dev.resource.TrafficPolicySpec.JWT.mcp:type_name -> agentgateway.dev.resource.TrafficPolicySpec.JWT.MCP
14, // 159: agentgateway.dev.resource.TrafficPolicySpec.BasicAuthentication.mode:type_name -> agentgateway.dev.resource.TrafficPolicySpec.BasicAuthentication.Mode
128, // 160: agentgateway.dev.resource.TrafficPolicySpec.APIKey.api_keys:type_name -> agentgateway.dev.resource.TrafficPolicySpec.APIKey.User
15, // 161: agentgateway.dev.resource.TrafficPolicySpec.APIKey.mode:type_name -> agentgateway.dev.resource.TrafficPolicySpec.APIKey.Mode
129, // 162: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.request:type_name -> agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform
129, // 163: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.response:type_name -> agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform
84, // 164: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.target:type_name -> agentgateway.dev.resource.BackendReference
16, // 165: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.failure_mode:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExtProc.FailureMode
131, // 166: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.request_attributes:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExtProc.RequestAttributesEntry
132, // 167: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.response_attributes:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExtProc.ResponseAttributesEntry
134, // 168: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.metadata_context:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExtProc.MetadataContextEntry
17, // 169: agentgateway.dev.resource.TrafficPolicySpec.HostRewrite.mode:type_name -> agentgateway.dev.resource.TrafficPolicySpec.HostRewrite.Mode
119, // 170: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.Descriptor.entries:type_name -> agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.Entry
9, // 171: agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.Descriptor.type:type_name -> agentgateway.dev.resource.TrafficPolicySpec.RemoteRateLimit.Type
123, // 172: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol.context:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol.ContextEntry
124, // 173: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol.metadata:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.GRPCProtocol.MetadataEntry
125, // 174: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol.add_request_headers:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol.AddRequestHeadersEntry
126, // 175: agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol.metadata:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExternalAuth.HTTPProtocol.MetadataEntry
24, // 176: agentgateway.dev.resource.TrafficPolicySpec.JWT.MCP.provider:type_name -> agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.McpIDP
165, // 177: agentgateway.dev.resource.TrafficPolicySpec.JWT.MCP.resource_metadata:type_name -> agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadata
181, // 178: agentgateway.dev.resource.TrafficPolicySpec.APIKey.User.metadata:type_name -> google.protobuf.Struct
113, // 179: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform.set:type_name -> agentgateway.dev.resource.TrafficPolicySpec.HeaderTransformation
113, // 180: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform.add:type_name -> agentgateway.dev.resource.TrafficPolicySpec.HeaderTransformation
114, // 181: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform.body:type_name -> agentgateway.dev.resource.TrafficPolicySpec.BodyTransformation
130, // 182: agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform.metadata:type_name -> agentgateway.dev.resource.TrafficPolicySpec.TransformationPolicy.Transform.MetadataEntry
135, // 183: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.NamespacedMetadataContext.context:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExtProc.NamespacedMetadataContext.ContextEntry
133, // 184: agentgateway.dev.resource.TrafficPolicySpec.ExtProc.MetadataContextEntry.value:type_name -> agentgateway.dev.resource.TrafficPolicySpec.ExtProc.NamespacedMetadataContext
158, // 185: agentgateway.dev.resource.BackendPolicySpec.Ai.prompt_guard:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.PromptGuard
160, // 186: agentgateway.dev.resource.BackendPolicySpec.Ai.defaults:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.DefaultsEntry
161, // 187: agentgateway.dev.resource.BackendPolicySpec.Ai.overrides:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.OverridesEntry
162, // 188: agentgateway.dev.resource.BackendPolicySpec.Ai.transformations:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.TransformationsEntry
148, // 189: agentgateway.dev.resource.BackendPolicySpec.Ai.prompts:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.PromptEnrichment
163, // 190: agentgateway.dev.resource.BackendPolicySpec.Ai.model_aliases:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.ModelAliasesEntry
159, // 191: agentgateway.dev.resource.BackendPolicySpec.Ai.prompt_caching:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.PromptCaching
164, // 192: agentgateway.dev.resource.BackendPolicySpec.Ai.routes:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.RoutesEntry
84, // 193: agentgateway.dev.resource.BackendPolicySpec.InferenceRouting.endpoint_picker:type_name -> agentgateway.dev.resource.BackendReference
21, // 194: agentgateway.dev.resource.BackendPolicySpec.InferenceRouting.failure_mode:type_name -> agentgateway.dev.resource.BackendPolicySpec.InferenceRouting.FailureMode
180, // 195: agentgateway.dev.resource.BackendPolicySpec.Eviction.duration:type_name -> google.protobuf.Duration
139, // 196: agentgateway.dev.resource.BackendPolicySpec.Health.eviction:type_name -> agentgateway.dev.resource.BackendPolicySpec.Eviction
22, // 197: agentgateway.dev.resource.BackendPolicySpec.BackendTLS.verification:type_name -> agentgateway.dev.resource.BackendPolicySpec.BackendTLS.VerificationMode
85, // 198: agentgateway.dev.resource.BackendPolicySpec.BackendTLS.alpn:type_name -> agentgateway.dev.resource.Alpn
23, // 199: agentgateway.dev.resource.BackendPolicySpec.BackendHTTP.version:type_name -> agentgateway.dev.resource.BackendPolicySpec.BackendHTTP.HttpVersion
180, // 200: agentgateway.dev.resource.BackendPolicySpec.BackendHTTP.request_timeout:type_name -> google.protobuf.Duration
84, // 201: agentgateway.dev.resource.BackendPolicySpec.BackendTunnel.proxy:type_name -> agentgateway.dev.resource.BackendReference
72, // 202: agentgateway.dev.resource.BackendPolicySpec.BackendTCP.keepalive:type_name -> agentgateway.dev.resource.KeepaliveConfig
180, // 203: agentgateway.dev.resource.BackendPolicySpec.BackendTCP.connect_timeout:type_name -> google.protobuf.Duration
24, // 204: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.provider:type_name -> agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.McpIDP
165, // 205: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.resource_metadata:type_name -> agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadata
25, // 206: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.mode:type_name -> agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.Mode
74, // 207: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.jwt_validation_options:type_name -> agentgateway.dev.resource.JWTValidationOptions
147, // 208: agentgateway.dev.resource.BackendPolicySpec.Ai.PromptEnrichment.append:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.Message
147, // 209: agentgateway.dev.resource.BackendPolicySpec.Ai.PromptEnrichment.prepend:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.Message
18, // 210: agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRule.builtin:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.BuiltinRegexRule
19, // 211: agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRules.action:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.ActionKind
149, // 212: agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRules.rules:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRule
84, // 213: agentgateway.dev.resource.BackendPolicySpec.Ai.Webhook.backend:type_name -> agentgateway.dev.resource.BackendReference
62, // 214: agentgateway.dev.resource.BackendPolicySpec.Ai.Webhook.forward_header_matches:type_name -> agentgateway.dev.resource.HeaderMatch
76, // 215: agentgateway.dev.resource.BackendPolicySpec.Ai.Moderation.inline_policies:type_name -> agentgateway.dev.resource.BackendPolicySpec
76, // 216: agentgateway.dev.resource.BackendPolicySpec.Ai.BedrockGuardrails.inline_policies:type_name -> agentgateway.dev.resource.BackendPolicySpec
76, // 217: agentgateway.dev.resource.BackendPolicySpec.Ai.GoogleModelArmor.inline_policies:type_name -> agentgateway.dev.resource.BackendPolicySpec
155, // 218: agentgateway.dev.resource.BackendPolicySpec.Ai.ResponseGuard.rejection:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.RequestRejection
150, // 219: agentgateway.dev.resource.BackendPolicySpec.Ai.ResponseGuard.regex:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRules
151, // 220: agentgateway.dev.resource.BackendPolicySpec.Ai.ResponseGuard.webhook:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.Webhook
154, // 221: agentgateway.dev.resource.BackendPolicySpec.Ai.ResponseGuard.google_model_armor:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.GoogleModelArmor
153, // 222: agentgateway.dev.resource.BackendPolicySpec.Ai.ResponseGuard.bedrock_guardrails:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.BedrockGuardrails
155, // 223: agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuard.rejection:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.RequestRejection
150, // 224: agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuard.regex:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.RegexRules
151, // 225: agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuard.webhook:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.Webhook
152, // 226: agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuard.openai_moderation:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.Moderation
154, // 227: agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuard.google_model_armor:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.GoogleModelArmor
153, // 228: agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuard.bedrock_guardrails:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.BedrockGuardrails
157, // 229: agentgateway.dev.resource.BackendPolicySpec.Ai.PromptGuard.request:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.RequestGuard
156, // 230: agentgateway.dev.resource.BackendPolicySpec.Ai.PromptGuard.response:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.ResponseGuard
20, // 231: agentgateway.dev.resource.BackendPolicySpec.Ai.RoutesEntry.value:type_name -> agentgateway.dev.resource.BackendPolicySpec.Ai.RouteType
166, // 232: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadata.extra:type_name -> agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadata.ExtraEntry
182, // 233: agentgateway.dev.resource.BackendPolicySpec.McpAuthentication.ResourceMetadata.ExtraEntry.value:type_name -> google.protobuf.Value
167, // 234: agentgateway.dev.resource.AIBackend.Provider.host_override:type_name -> agentgateway.dev.resource.AIBackend.HostOverride
168, // 235: agentgateway.dev.resource.AIBackend.Provider.openai:type_name -> agentgateway.dev.resource.AIBackend.OpenAI
169, // 236: agentgateway.dev.resource.AIBackend.Provider.gemini:type_name -> agentgateway.dev.resource.AIBackend.Gemini
170, // 237: agentgateway.dev.resource.AIBackend.Provider.vertex:type_name -> agentgateway.dev.resource.AIBackend.Vertex
171, // 238: agentgateway.dev.resource.AIBackend.Provider.anthropic:type_name -> agentgateway.dev.resource.AIBackend.Anthropic
172, // 239: agentgateway.dev.resource.AIBackend.Provider.bedrock:type_name -> agentgateway.dev.resource.AIBackend.Bedrock
173, // 240: agentgateway.dev.resource.AIBackend.Provider.azureopenai:type_name -> agentgateway.dev.resource.AIBackend.AzureOpenAI
76, // 241: agentgateway.dev.resource.AIBackend.Provider.inline_policies:type_name -> agentgateway.dev.resource.BackendPolicySpec
174, // 242: agentgateway.dev.resource.AIBackend.ProviderGroup.providers:type_name -> agentgateway.dev.resource.AIBackend.Provider
243, // [243:243] is the sub-list for method output_type
243, // [243:243] is the sub-list for method input_type
243, // [243:243] is the sub-list for extension type_name
243, // [243:243] is the sub-list for extension extendee
0, // [0:243] is the sub-list for field type_name
}
func init() { file_resource_proto_init() }
func file_resource_proto_init() {
if File_resource_proto != nil {
return
}
file_resource_proto_msgTypes[0].OneofWrappers = []any{
(*Resource_Bind)(nil),
(*Resource_Listener)(nil),
(*Resource_Route)(nil),
(*Resource_Backend)(nil),
(*Resource_Policy)(nil),
(*Resource_TcpRoute)(nil),
(*Resource_Workload)(nil),
(*Resource_Service)(nil),
}
file_resource_proto_msgTypes[2].OneofWrappers = []any{}
file_resource_proto_msgTypes[9].OneofWrappers = []any{
(*Policy_Traffic)(nil),
(*Policy_Backend)(nil),
(*Policy_Frontend)(nil),
}
file_resource_proto_msgTypes[10].OneofWrappers = []any{
(*Backend_Static)(nil),
(*Backend_Ai)(nil),
(*Backend_Mcp)(nil),
(*Backend_Dynamic)(nil),
(*Backend_Aws)(nil),
}
file_resource_proto_msgTypes[11].OneofWrappers = []any{}
file_resource_proto_msgTypes[14].OneofWrappers = []any{
(*BackendAuthPolicy_Passthrough)(nil),
(*BackendAuthPolicy_Key)(nil),
(*BackendAuthPolicy_Gcp)(nil),
(*BackendAuthPolicy_Aws)(nil),
(*BackendAuthPolicy_Azure)(nil),
}
file_resource_proto_msgTypes[17].OneofWrappers = []any{
(*Gcp_AccessToken_)(nil),
(*Gcp_IdToken_)(nil),
}
file_resource_proto_msgTypes[18].OneofWrappers = []any{
(*Aws_ExplicitConfig)(nil),
(*Aws_Implicit)(nil),
}
file_resource_proto_msgTypes[19].OneofWrappers = []any{
(*Azure_ExplicitConfig)(nil),
(*Azure_DeveloperImplicit)(nil),
(*Azure_Implicit)(nil),
}
file_resource_proto_msgTypes[20].OneofWrappers = []any{}
file_resource_proto_msgTypes[22].OneofWrappers = []any{
(*AzureExplicitConfig_ClientSecret)(nil),
(*AzureExplicitConfig_ManagedIdentityCredential)(nil),
(*AzureExplicitConfig_WorkloadIdentityCredential)(nil),
}
file_resource_proto_msgTypes[24].OneofWrappers = []any{}
file_resource_proto_msgTypes[29].OneofWrappers = []any{
(*PathMatch_Exact)(nil),
(*PathMatch_PathPrefix)(nil),
(*PathMatch_Regex)(nil),
}
file_resource_proto_msgTypes[30].OneofWrappers = []any{
(*QueryMatch_Exact)(nil),
(*QueryMatch_Regex)(nil),
}
file_resource_proto_msgTypes[32].OneofWrappers = []any{
(*HeaderMatch_Exact)(nil),
(*HeaderMatch_Regex)(nil),
}
file_resource_proto_msgTypes[37].OneofWrappers = []any{
(*RequestRedirect_Full)(nil),
(*RequestRedirect_Prefix)(nil),
}
file_resource_proto_msgTypes[38].OneofWrappers = []any{
(*UrlRewrite_Full)(nil),
(*UrlRewrite_Prefix)(nil),
}
file_resource_proto_msgTypes[41].OneofWrappers = []any{
(*PolicyTarget_Gateway)(nil),
(*PolicyTarget_Route)(nil),
(*PolicyTarget_Backend)(nil),
(*PolicyTarget_Service)(nil),
}
file_resource_proto_msgTypes[42].OneofWrappers = []any{}
file_resource_proto_msgTypes[43].OneofWrappers = []any{
(*FrontendPolicySpec_Tcp)(nil),
(*FrontendPolicySpec_Tls)(nil),
(*FrontendPolicySpec_Http)(nil),
(*FrontendPolicySpec_Logging_)(nil),
(*FrontendPolicySpec_Tracing_)(nil),
(*FrontendPolicySpec_NetworkAuthorization_)(nil),
}
file_resource_proto_msgTypes[45].OneofWrappers = []any{
(*TrafficPolicySpec_Timeout)(nil),
(*TrafficPolicySpec_Retry)(nil),
(*TrafficPolicySpec_LocalRateLimit_)(nil),
(*TrafficPolicySpec_ExtAuthz)(nil),
(*TrafficPolicySpec_Authorization)(nil),
(*TrafficPolicySpec_Jwt)(nil),
(*TrafficPolicySpec_Transformation)(nil),
(*TrafficPolicySpec_RemoteRateLimit_)(nil),
(*TrafficPolicySpec_Csrf)(nil),
(*TrafficPolicySpec_ExtProc_)(nil),
(*TrafficPolicySpec_RequestHeaderModifier)(nil),
(*TrafficPolicySpec_ResponseHeaderModifier)(nil),
(*TrafficPolicySpec_RequestRedirect)(nil),
(*TrafficPolicySpec_UrlRewrite)(nil),
(*TrafficPolicySpec_RequestMirror)(nil),
(*TrafficPolicySpec_DirectResponse)(nil),
(*TrafficPolicySpec_Cors)(nil),
(*TrafficPolicySpec_BasicAuth)(nil),
(*TrafficPolicySpec_ApiKeyAuth)(nil),
(*TrafficPolicySpec_HostRewrite_)(nil),
}
file_resource_proto_msgTypes[46].OneofWrappers = []any{
(*BackendPolicySpec_A2A_)(nil),
(*BackendPolicySpec_InferenceRouting_)(nil),
(*BackendPolicySpec_BackendTls)(nil),
(*BackendPolicySpec_Auth)(nil),
(*BackendPolicySpec_McpAuthorization_)(nil),
(*BackendPolicySpec_McpAuthentication_)(nil),
(*BackendPolicySpec_Ai_)(nil),
(*BackendPolicySpec_RequestHeaderModifier)(nil),
(*BackendPolicySpec_ResponseHeaderModifier)(nil),
(*BackendPolicySpec_RequestRedirect)(nil),
(*BackendPolicySpec_RequestMirror)(nil),
(*BackendPolicySpec_BackendHttp)(nil),
(*BackendPolicySpec_BackendTcp)(nil),
(*BackendPolicySpec_Transformation)(nil),
(*BackendPolicySpec_Health_)(nil),
(*BackendPolicySpec_BackendTunnel_)(nil),
}
file_resource_proto_msgTypes[49].OneofWrappers = []any{
(*AwsBackend_AgentCore)(nil),
}
file_resource_proto_msgTypes[50].OneofWrappers = []any{}
file_resource_proto_msgTypes[54].OneofWrappers = []any{
(*BackendReference_Service_)(nil),
(*BackendReference_Backend)(nil),
}
file_resource_proto_msgTypes[57].OneofWrappers = []any{}
file_resource_proto_msgTypes[58].OneofWrappers = []any{
(*AzureManagedIdentityCredential_UserAssignedIdentity_ClientId)(nil),
(*AzureManagedIdentityCredential_UserAssignedIdentity_ObjectId)(nil),
(*AzureManagedIdentityCredential_UserAssignedIdentity_ResourceId)(nil),
}
file_resource_proto_msgTypes[60].OneofWrappers = []any{}
file_resource_proto_msgTypes[61].OneofWrappers = []any{}
file_resource_proto_msgTypes[62].OneofWrappers = []any{}
file_resource_proto_msgTypes[63].OneofWrappers = []any{}
file_resource_proto_msgTypes[64].OneofWrappers = []any{}
file_resource_proto_msgTypes[65].OneofWrappers = []any{}
file_resource_proto_msgTypes[68].OneofWrappers = []any{}
file_resource_proto_msgTypes[69].OneofWrappers = []any{}
file_resource_proto_msgTypes[73].OneofWrappers = []any{}
file_resource_proto_msgTypes[76].OneofWrappers = []any{
(*TrafficPolicySpec_ExternalAuth_Grpc)(nil),
(*TrafficPolicySpec_ExternalAuth_Http)(nil),
}
file_resource_proto_msgTypes[78].OneofWrappers = []any{
(*TrafficPolicySpec_JWTProvider_Inline)(nil),
}
file_resource_proto_msgTypes[80].OneofWrappers = []any{}
file_resource_proto_msgTypes[92].OneofWrappers = []any{}
file_resource_proto_msgTypes[109].OneofWrappers = []any{}
file_resource_proto_msgTypes[111].OneofWrappers = []any{}
file_resource_proto_msgTypes[119].OneofWrappers = []any{
(*BackendPolicySpec_Ai_RegexRule_Builtin)(nil),
(*BackendPolicySpec_Ai_RegexRule_Regex)(nil),
}
file_resource_proto_msgTypes[122].OneofWrappers = []any{}
file_resource_proto_msgTypes[124].OneofWrappers = []any{}
file_resource_proto_msgTypes[126].OneofWrappers = []any{
(*BackendPolicySpec_Ai_ResponseGuard_Regex)(nil),
(*BackendPolicySpec_Ai_ResponseGuard_Webhook)(nil),
(*BackendPolicySpec_Ai_ResponseGuard_GoogleModelArmor)(nil),
(*BackendPolicySpec_Ai_ResponseGuard_BedrockGuardrails)(nil),
}
file_resource_proto_msgTypes[127].OneofWrappers = []any{
(*BackendPolicySpec_Ai_RequestGuard_Regex)(nil),
(*BackendPolicySpec_Ai_RequestGuard_Webhook)(nil),
(*BackendPolicySpec_Ai_RequestGuard_OpenaiModeration)(nil),
(*BackendPolicySpec_Ai_RequestGuard_GoogleModelArmor)(nil),
(*BackendPolicySpec_Ai_RequestGuard_BedrockGuardrails)(nil),
}
file_resource_proto_msgTypes[129].OneofWrappers = []any{}
file_resource_proto_msgTypes[138].OneofWrappers = []any{}
file_resource_proto_msgTypes[139].OneofWrappers = []any{}
file_resource_proto_msgTypes[140].OneofWrappers = []any{}
file_resource_proto_msgTypes[141].OneofWrappers = []any{}
file_resource_proto_msgTypes[142].OneofWrappers = []any{}
file_resource_proto_msgTypes[143].OneofWrappers = []any{}
file_resource_proto_msgTypes[144].OneofWrappers = []any{
(*AIBackend_Provider_Openai)(nil),
(*AIBackend_Provider_Gemini)(nil),
(*AIBackend_Provider_Vertex)(nil),
(*AIBackend_Provider_Anthropic)(nil),
(*AIBackend_Provider_Bedrock)(nil),
(*AIBackend_Provider_Azureopenai)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_resource_proto_rawDesc), len(file_resource_proto_rawDesc)),
NumEnums: 30,
NumMessages: 147,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_resource_proto_goTypes,
DependencyIndexes: file_resource_proto_depIdxs,
EnumInfos: file_resource_proto_enumTypes,
MessageInfos: file_resource_proto_msgTypes,
}.Build()
File_resource_proto = out.File
file_resource_proto_goTypes = nil
file_resource_proto_depIdxs = nil
}