github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/grpc_credential/v2alpha/file_based_metadata.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/config/grpc_credential/v2alpha/file_based_metadata.proto 6 7 package envoy_config_grpc_credential_v2alpha 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 core "github.com/hxx258456/ccgo/go-control-plane/envoy/api/v2/core" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 type FileBasedMetadataConfig struct { 31 state protoimpl.MessageState 32 sizeCache protoimpl.SizeCache 33 unknownFields protoimpl.UnknownFields 34 35 // Location or inline data of secret to use for authentication of the Google gRPC connection 36 // this secret will be attached to a header of the gRPC connection 37 SecretData *core.DataSource `protobuf:"bytes,1,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"` 38 // Metadata header key to use for sending the secret data 39 // if no header key is set, "authorization" header will be used 40 HeaderKey string `protobuf:"bytes,2,opt,name=header_key,json=headerKey,proto3" json:"header_key,omitempty"` 41 // Prefix to prepend to the secret in the metadata header 42 // if no prefix is set, the default is to use no prefix 43 HeaderPrefix string `protobuf:"bytes,3,opt,name=header_prefix,json=headerPrefix,proto3" json:"header_prefix,omitempty"` 44 } 45 46 func (x *FileBasedMetadataConfig) Reset() { 47 *x = FileBasedMetadataConfig{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *FileBasedMetadataConfig) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*FileBasedMetadataConfig) ProtoMessage() {} 60 61 func (x *FileBasedMetadataConfig) ProtoReflect() protoreflect.Message { 62 mi := &file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use FileBasedMetadataConfig.ProtoReflect.Descriptor instead. 74 func (*FileBasedMetadataConfig) Descriptor() ([]byte, []int) { 75 return file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *FileBasedMetadataConfig) GetSecretData() *core.DataSource { 79 if x != nil { 80 return x.SecretData 81 } 82 return nil 83 } 84 85 func (x *FileBasedMetadataConfig) GetHeaderKey() string { 86 if x != nil { 87 return x.HeaderKey 88 } 89 return "" 90 } 91 92 func (x *FileBasedMetadataConfig) GetHeaderPrefix() string { 93 if x != nil { 94 return x.HeaderPrefix 95 } 96 return "" 97 } 98 99 var File_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto protoreflect.FileDescriptor 100 101 var file_envoy_config_grpc_credential_v2alpha_file_based_metadata_proto_rawDesc = []byte{ 102 0x0a, 0x3e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 103 0x72, 0x70, 0x63, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x76, 104 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, 105 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 106 0x12, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x67, 107 0x72, 0x70, 0x63, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2e, 0x76, 108 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 109 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 110 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 111 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 112 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 113 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 114 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x17, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x61, 115 0x73, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 116 0x67, 0x12, 0x46, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 117 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 118 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 119 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x06, 0xb8, 0xb7, 0x8b, 0xa4, 0x02, 0x01, 0x52, 0x0a, 0x73, 120 0x65, 0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x65, 0x61, 121 0x64, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 122 0x65, 0x61, 0x64, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x64, 123 0x65, 0x72, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 124 0x0c, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x56, 0x0a, 125 0x32, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 126 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x67, 0x72, 0x70, 0x63, 127 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 128 0x70, 0x68, 0x61, 0x42, 0x16, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x4d, 0x65, 129 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 130 0xd1, 0x06, 0x02, 0x10, 0x01, 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 }