github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/grpc_credential/v3/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/v3/file_based_metadata.proto
     6  
     7  package envoy_config_grpc_credential_v3
     8  
     9  import (
    10  	_ "github.com/cncf/xds/go/udpa/annotations"
    11  	v3 "github.com/hxx258456/ccgo/go-control-plane/envoy/config/core/v3"
    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 *v3.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_v3_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_v3_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_v3_file_based_metadata_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  func (x *FileBasedMetadataConfig) GetSecretData() *v3.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_v3_file_based_metadata_proto protoreflect.FileDescriptor
   100  
   101  var file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDesc = []byte{
   102  	0x0a, 0x39, 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  	0x33, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x74,
   105  	0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x65, 0x6e, 0x76,
   106  	0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x63,
   107  	0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e,
   108  	0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f,
   109  	0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75,
   110  	0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
   111  	0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   112  	0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   113  	0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21,
   114  	0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   115  	0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   116  	0x6f, 0x22, 0xed, 0x01, 0x0a, 0x17, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x4d,
   117  	0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a,
   118  	0x0b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
   119  	0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   120  	0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
   121  	0x75, 0x72, 0x63, 0x65, 0x42, 0x06, 0xb8, 0xb7, 0x8b, 0xa4, 0x02, 0x01, 0x52, 0x0a, 0x73, 0x65,
   122  	0x63, 0x72, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x65, 0x61, 0x64,
   123  	0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65,
   124  	0x61, 0x64, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x64, 0x65,
   125  	0x72, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
   126  	0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x3a, 0x43, 0x9a, 0xc5,
   127  	0x88, 0x1e, 0x3e, 0x0a, 0x3c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   128  	0x67, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
   129  	0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x61,
   130  	0x73, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   131  	0x67, 0x42, 0x51, 0x0a, 0x2d, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
   132  	0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
   133  	0x67, 0x72, 0x70, 0x63, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2e,
   134  	0x76, 0x33, 0x42, 0x16, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x64, 0x4d, 0x65, 0x74,
   135  	0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1,
   136  	0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   137  }
   138  
   139  var (
   140  	file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDescOnce sync.Once
   141  	file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDescData = file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDesc
   142  )
   143  
   144  func file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDescGZIP() []byte {
   145  	file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDescOnce.Do(func() {
   146  		file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDescData)
   147  	})
   148  	return file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDescData
   149  }
   150  
   151  var file_envoy_config_grpc_credential_v3_file_based_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   152  var file_envoy_config_grpc_credential_v3_file_based_metadata_proto_goTypes = []interface{}{
   153  	(*FileBasedMetadataConfig)(nil), // 0: envoy.config.grpc_credential.v3.FileBasedMetadataConfig
   154  	(*v3.DataSource)(nil),           // 1: envoy.config.core.v3.DataSource
   155  }
   156  var file_envoy_config_grpc_credential_v3_file_based_metadata_proto_depIdxs = []int32{
   157  	1, // 0: envoy.config.grpc_credential.v3.FileBasedMetadataConfig.secret_data:type_name -> envoy.config.core.v3.DataSource
   158  	1, // [1:1] is the sub-list for method output_type
   159  	1, // [1:1] is the sub-list for method input_type
   160  	1, // [1:1] is the sub-list for extension type_name
   161  	1, // [1:1] is the sub-list for extension extendee
   162  	0, // [0:1] is the sub-list for field type_name
   163  }
   164  
   165  func init() { file_envoy_config_grpc_credential_v3_file_based_metadata_proto_init() }
   166  func file_envoy_config_grpc_credential_v3_file_based_metadata_proto_init() {
   167  	if File_envoy_config_grpc_credential_v3_file_based_metadata_proto != nil {
   168  		return
   169  	}
   170  	if !protoimpl.UnsafeEnabled {
   171  		file_envoy_config_grpc_credential_v3_file_based_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   172  			switch v := v.(*FileBasedMetadataConfig); i {
   173  			case 0:
   174  				return &v.state
   175  			case 1:
   176  				return &v.sizeCache
   177  			case 2:
   178  				return &v.unknownFields
   179  			default:
   180  				return nil
   181  			}
   182  		}
   183  	}
   184  	type x struct{}
   185  	out := protoimpl.TypeBuilder{
   186  		File: protoimpl.DescBuilder{
   187  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   188  			RawDescriptor: file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDesc,
   189  			NumEnums:      0,
   190  			NumMessages:   1,
   191  			NumExtensions: 0,
   192  			NumServices:   0,
   193  		},
   194  		GoTypes:           file_envoy_config_grpc_credential_v3_file_based_metadata_proto_goTypes,
   195  		DependencyIndexes: file_envoy_config_grpc_credential_v3_file_based_metadata_proto_depIdxs,
   196  		MessageInfos:      file_envoy_config_grpc_credential_v3_file_based_metadata_proto_msgTypes,
   197  	}.Build()
   198  	File_envoy_config_grpc_credential_v3_file_based_metadata_proto = out.File
   199  	file_envoy_config_grpc_credential_v3_file_based_metadata_proto_rawDesc = nil
   200  	file_envoy_config_grpc_credential_v3_file_based_metadata_proto_goTypes = nil
   201  	file_envoy_config_grpc_credential_v3_file_based_metadata_proto_depIdxs = nil
   202  }