github.com/google/cloudprober@v0.11.3/common/tlsconfig/proto/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.17.3 5 // source: github.com/google/cloudprober/common/tlsconfig/proto/config.proto 6 7 package proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type TLSConfig struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 // CA certificate file to verify certificates provided by the other party. 29 CaCertFile *string `protobuf:"bytes,1,opt,name=ca_cert_file,json=caCertFile" json:"ca_cert_file,omitempty"` 30 // Local certificate file. 31 TlsCertFile *string `protobuf:"bytes,2,opt,name=tls_cert_file,json=tlsCertFile" json:"tls_cert_file,omitempty"` 32 // Private key file corresponding to the certificate above. 33 TlsKeyFile *string `protobuf:"bytes,3,opt,name=tls_key_file,json=tlsKeyFile" json:"tls_key_file,omitempty"` 34 // Whether to ignore the cert validation. 35 DisableCertValidation *bool `protobuf:"varint,4,opt,name=disable_cert_validation,json=disableCertValidation" json:"disable_cert_validation,omitempty"` 36 // ServerName override 37 ServerName *string `protobuf:"bytes,5,opt,name=server_name,json=serverName" json:"server_name,omitempty"` 38 } 39 40 func (x *TLSConfig) Reset() { 41 *x = TLSConfig{} 42 if protoimpl.UnsafeEnabled { 43 mi := &file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_msgTypes[0] 44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 45 ms.StoreMessageInfo(mi) 46 } 47 } 48 49 func (x *TLSConfig) String() string { 50 return protoimpl.X.MessageStringOf(x) 51 } 52 53 func (*TLSConfig) ProtoMessage() {} 54 55 func (x *TLSConfig) ProtoReflect() protoreflect.Message { 56 mi := &file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_msgTypes[0] 57 if protoimpl.UnsafeEnabled && x != nil { 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 if ms.LoadMessageInfo() == nil { 60 ms.StoreMessageInfo(mi) 61 } 62 return ms 63 } 64 return mi.MessageOf(x) 65 } 66 67 // Deprecated: Use TLSConfig.ProtoReflect.Descriptor instead. 68 func (*TLSConfig) Descriptor() ([]byte, []int) { 69 return file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDescGZIP(), []int{0} 70 } 71 72 func (x *TLSConfig) GetCaCertFile() string { 73 if x != nil && x.CaCertFile != nil { 74 return *x.CaCertFile 75 } 76 return "" 77 } 78 79 func (x *TLSConfig) GetTlsCertFile() string { 80 if x != nil && x.TlsCertFile != nil { 81 return *x.TlsCertFile 82 } 83 return "" 84 } 85 86 func (x *TLSConfig) GetTlsKeyFile() string { 87 if x != nil && x.TlsKeyFile != nil { 88 return *x.TlsKeyFile 89 } 90 return "" 91 } 92 93 func (x *TLSConfig) GetDisableCertValidation() bool { 94 if x != nil && x.DisableCertValidation != nil { 95 return *x.DisableCertValidation 96 } 97 return false 98 } 99 100 func (x *TLSConfig) GetServerName() string { 101 if x != nil && x.ServerName != nil { 102 return *x.ServerName 103 } 104 return "" 105 } 106 107 var File_github_com_google_cloudprober_common_tlsconfig_proto_config_proto protoreflect.FileDescriptor 108 109 var file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDesc = []byte{ 110 0x0a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 111 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 112 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x6c, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 113 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 114 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 115 0x2e, 0x74, 0x6c, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xcc, 0x01, 0x0a, 0x09, 0x54, 116 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x20, 0x0a, 0x0c, 0x63, 0x61, 0x5f, 0x63, 117 0x65, 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 118 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x74, 0x6c, 119 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 120 0x09, 0x52, 0x0b, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x20, 121 0x0a, 0x0c, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x03, 122 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 123 0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x65, 0x72, 0x74, 124 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 125 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x65, 0x72, 0x74, 0x56, 0x61, 126 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 127 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 128 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 129 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 130 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 131 0x6e, 0x2f, 0x74, 0x6c, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 132 0x6f, 133 } 134 135 var ( 136 file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDescOnce sync.Once 137 file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDescData = file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDesc 138 ) 139 140 func file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDescGZIP() []byte { 141 file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDescOnce.Do(func() { 142 file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDescData) 143 }) 144 return file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDescData 145 } 146 147 var file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 148 var file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_goTypes = []interface{}{ 149 (*TLSConfig)(nil), // 0: cloudprober.tlsconfig.TLSConfig 150 } 151 var file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_depIdxs = []int32{ 152 0, // [0:0] is the sub-list for method output_type 153 0, // [0:0] is the sub-list for method input_type 154 0, // [0:0] is the sub-list for extension type_name 155 0, // [0:0] is the sub-list for extension extendee 156 0, // [0:0] is the sub-list for field type_name 157 } 158 159 func init() { file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_init() } 160 func file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_init() { 161 if File_github_com_google_cloudprober_common_tlsconfig_proto_config_proto != nil { 162 return 163 } 164 if !protoimpl.UnsafeEnabled { 165 file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 166 switch v := v.(*TLSConfig); 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_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDesc, 183 NumEnums: 0, 184 NumMessages: 1, 185 NumExtensions: 0, 186 NumServices: 0, 187 }, 188 GoTypes: file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_goTypes, 189 DependencyIndexes: file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_depIdxs, 190 MessageInfos: file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_msgTypes, 191 }.Build() 192 File_github_com_google_cloudprober_common_tlsconfig_proto_config_proto = out.File 193 file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_rawDesc = nil 194 file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_goTypes = nil 195 file_github_com_google_cloudprober_common_tlsconfig_proto_config_proto_depIdxs = nil 196 }