| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.30.0 |
| 4 |
// protoc v5.29.1 |
| 5 |
// source: envoy/config/grpc_credential/v2alpha/file_based_metadata.proto |
| 6 |
|
| 7 |
package v2alpha |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" |
| 12 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
// Verify that this generated code is sufficiently up-to-date. |
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
type FileBasedMetadataConfig struct { |
| 26 |
state protoimpl.MessageState |
| 27 |
sizeCache protoimpl.SizeCache |
| 28 |
unknownFields protoimpl.UnknownFields |
| 29 |
|
| 30 |
// Location or inline data of secret to use for authentication of the Google gRPC connection |
| 31 |
// this secret will be attached to a header of the gRPC connection |
| 32 |
SecretData *core.DataSource `protobuf:"bytes,1,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"` |
| 33 |
// Metadata header key to use for sending the secret data |
| 34 |
// if no header key is set, "authorization" header will be used |
| 35 |
HeaderKey string `protobuf:"bytes,2,opt,name=header_key,json=headerKey,proto3" json:"header_key,omitempty"` |
| 36 |
// Prefix to prepend to the secret in the metadata header |
| 37 |
// if no prefix is set, the default is to use no prefix |
| 38 |
HeaderPrefix string `protobuf:"bytes,3,opt,name=header_prefix,json=headerPrefix,proto3" json:"header_prefix,omitempty"` |
| 39 |
} |
| 40 |
|
| 41 |
func (x *FileBasedMetadataConfig) Reset() { |
| 42 |
*x = FileBasedMetadataConfig{} |
| 43 |
if protoimpl.UnsafeEnabled { |
| 44 |
mi := &file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_msgTypes[0] |
| 45 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 46 |
ms.StoreMessageInfo(mi) |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
func (x *FileBasedMetadataConfig) String() string { |
| 51 |
return protoimpl.X.MessageStringOf(x) |
| 52 |
} |
| 53 |
|
| 54 |
func (*FileBasedMetadataConfig) ProtoMessage() {} |
| 55 |
|
| 56 |
func (x *FileBasedMetadataConfig) ProtoReflect() protoreflect.Message { |
| 57 |
mi := &file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_msgTypes[0] |
| 58 |
if protoimpl.UnsafeEnabled && x != nil { |
| 59 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 60 |
if ms.LoadMessageInfo() == nil { |
| 61 |
ms.StoreMessageInfo(mi) |
| 62 |
} |
| 63 |
return ms |
| 64 |
} |
| 65 |
return mi.MessageOf(x) |
| 66 |
} |
| 67 |
|
| 68 |
// Deprecated: Use FileBasedMetadataConfig.ProtoReflect.Descriptor instead. |
| 69 |
func (*FileBasedMetadataConfig) Descriptor() ([]byte, []int) { |
| 70 |
return file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescGZIP(), []int{0} |
| 71 |
} |
| 72 |
|
| 73 |
func (x *FileBasedMetadataConfig) GetSecretData() *core.DataSource { |
| 74 |
if x != nil { |
| 75 |
return x.SecretData |
| 76 |
} |
| 77 |
return nil |
| 78 |
} |
| 79 |
|
| 80 |
func (x *FileBasedMetadataConfig) GetHeaderKey() string { |
| 81 |
if x != nil { |
| 82 |
return x.HeaderKey |
| 83 |
} |
| 84 |
return "" |
| 85 |
} |
| 86 |
|
| 87 |
func (x *FileBasedMetadataConfig) GetHeaderPrefix() string { |
| 88 |
if x != nil { |
| 89 |
return x.HeaderPrefix |
| 90 |
} |
| 91 |
return "" |
| 92 |
} |
| 93 |
|
| 94 |
var File_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto protoreflect.FileDescriptor |
| 95 |
|
| 96 |
var file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDesc = []byte{ |
| 97 |
0x0a, 0x3e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, |
| 98 |
0x72, 0x70, 0x63, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x76, |
| 99 |
0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, |
| 100 |
0x64, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 101 |
0x12, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x67, |
| 102 |
0x72, 0x70, 0x63, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2e, 0x76, |
| 103 |
0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, |
| 104 |
0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, |
| 105 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, |
| 106 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, |
| 107 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, |
| 108 |
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, |
| 109 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x17, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x61, |
| 110 |
0x73, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, |
| 111 |
0x67, 0x12, 0x46, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, |
| 112 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, |
| 113 |
0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, |
| 114 |
0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x06, 0xb8, 0xb7, 0x8b, 0xa4, 0x02, 0x01, 0x52, 0x0a, 0x73, |
| 115 |
0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x65, 0x61, |
| 116 |
0x64, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, |
| 117 |
0x65, 0x61, 0x64, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x64, |
| 118 |
0x65, 0x72, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 119 |
0x0c, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0xa3, 0x01, |
| 120 |
0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x0a, 0x32, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, |
| 121 |
0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, |
| 122 |
0x6e, 0x66, 0x69, 0x67, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, |
| 123 |
0x74, 0x69, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x16, 0x46, 0x69, |
| 124 |
0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, |
| 125 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, |
| 126 |
0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, |
| 127 |
0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, |
| 128 |
0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, |
| 129 |
0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x76, 0x32, 0x61, 0x6c, |
| 130 |
0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 131 |
} |
| 132 |
|
| 133 |
var ( |
| 134 |
file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescOnce sync.Once |
| 135 |
file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescData = file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDesc |
| 136 |
) |
| 137 |
|
| 138 |
func file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescGZIP() []byte { |
| 139 |
file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescOnce.Do(func() { |
| 140 |
file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescData) |
| 141 |
}) |
| 142 |
return file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescData |
| 143 |
} |
| 144 |
|
| 145 |
var file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 146 |
var file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_goTypes = []interface{}{ |
| 147 |
(*FileBasedMetadataConfig)(nil), // 0: envoy.config.grpc_credential.v2alpha.FileBasedMetadataConfig |
| 148 |
(*core.DataSource)(nil), // 1: envoy.api.v2.core.DataSource |
| 149 |
} |
| 150 |
var file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_depIdxs = []int32{ |
| 151 |
1, // 0: envoy.config.grpc_credential.v2alpha.FileBasedMetadataConfig.secret_data:type_name -> envoy.api.v2.core.DataSource |
| 152 |
1, // [1:1] is the sub-list for method output_type |
| 153 |
1, // [1:1] is the sub-list for method input_type |
| 154 |
1, // [1:1] is the sub-list for extension type_name |
| 155 |
1, // [1:1] is the sub-list for extension extendee |
| 156 |
0, // [0:1] is the sub-list for field type_name |
| 157 |
} |
| 158 |
|
| 159 |
func init() { file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_init() } |
| 160 |
func file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_init() { |
| 161 |
if File_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto != nil { |
| 162 |
return |
| 163 |
} |
| 164 |
if !protoimpl.UnsafeEnabled { |
| 165 |
file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 166 |
switch v := v.(*FileBasedMetadataConfig); i { |
| 167 |
case 0: |
| 168 |
return &v.state |
| 169 |
case 1: |
| 170 |
return &v.sizeCache |
| 171 |
case 2: |
| 172 |
return &v.unknownFields |
| 173 |
default: |
| 174 |
return nil |
| 175 |
} |
| 176 |
} |
| 177 |
} |
| 178 |
type x struct{} |
| 179 |
out := protoimpl.TypeBuilder{ |
| 180 |
File: protoimpl.DescBuilder{ |
| 181 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 182 |
RawDescriptor: file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDesc, |
| 183 |
NumEnums: 0, |
| 184 |
NumMessages: 1, |
| 185 |
NumExtensions: 0, |
| 186 |
NumServices: 0, |
| 187 |
}, |
| 188 |
GoTypes: file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_goTypes, |
| 189 |
DependencyIndexes: file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_depIdxs, |
| 190 |
MessageInfos: file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_msgTypes, |
| 191 |
}.Build() |
| 192 |
File_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto = out.File |
| 193 |
file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDesc = nil |
| 194 |
file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_goTypes = nil |
| 195 |
file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_depIdxs = nil |
| 196 |
} |