github.com/google/cloudprober@v0.11.3/surfacers/postgres/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/surfacers/postgres/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 SurfacerConf struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 ConnectionString *string `protobuf:"bytes,1,req,name=connection_string,json=connectionString" json:"connection_string,omitempty"` 29 MetricsTableName *string `protobuf:"bytes,2,req,name=metrics_table_name,json=metricsTableName" json:"metrics_table_name,omitempty"` 30 MetricsBufferSize *int64 `protobuf:"varint,3,opt,name=metrics_buffer_size,json=metricsBufferSize,def=10000" json:"metrics_buffer_size,omitempty"` 31 } 32 33 // Default values for SurfacerConf fields. 34 const ( 35 Default_SurfacerConf_MetricsBufferSize = int64(10000) 36 ) 37 38 func (x *SurfacerConf) Reset() { 39 *x = SurfacerConf{} 40 if protoimpl.UnsafeEnabled { 41 mi := &file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_msgTypes[0] 42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 43 ms.StoreMessageInfo(mi) 44 } 45 } 46 47 func (x *SurfacerConf) String() string { 48 return protoimpl.X.MessageStringOf(x) 49 } 50 51 func (*SurfacerConf) ProtoMessage() {} 52 53 func (x *SurfacerConf) ProtoReflect() protoreflect.Message { 54 mi := &file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_msgTypes[0] 55 if protoimpl.UnsafeEnabled && x != nil { 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 if ms.LoadMessageInfo() == nil { 58 ms.StoreMessageInfo(mi) 59 } 60 return ms 61 } 62 return mi.MessageOf(x) 63 } 64 65 // Deprecated: Use SurfacerConf.ProtoReflect.Descriptor instead. 66 func (*SurfacerConf) Descriptor() ([]byte, []int) { 67 return file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDescGZIP(), []int{0} 68 } 69 70 func (x *SurfacerConf) GetConnectionString() string { 71 if x != nil && x.ConnectionString != nil { 72 return *x.ConnectionString 73 } 74 return "" 75 } 76 77 func (x *SurfacerConf) GetMetricsTableName() string { 78 if x != nil && x.MetricsTableName != nil { 79 return *x.MetricsTableName 80 } 81 return "" 82 } 83 84 func (x *SurfacerConf) GetMetricsBufferSize() int64 { 85 if x != nil && x.MetricsBufferSize != nil { 86 return *x.MetricsBufferSize 87 } 88 return Default_SurfacerConf_MetricsBufferSize 89 } 90 91 var File_github_com_google_cloudprober_surfacers_postgres_proto_config_proto protoreflect.FileDescriptor 92 93 var file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDesc = []byte{ 94 0x0a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 95 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 96 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 97 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 98 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 99 0x65, 0x72, 0x2e, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x2e, 0x70, 0x6f, 0x73, 0x74, 100 0x67, 0x72, 0x65, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x0c, 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 101 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 102 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 103 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x69, 104 0x6e, 0x67, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x74, 0x61, 105 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x52, 0x10, 106 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 107 0x12, 0x35, 0x0a, 0x13, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x62, 0x75, 0x66, 0x66, 108 0x65, 0x72, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x05, 0x31, 109 0x30, 0x30, 0x30, 0x30, 0x52, 0x11, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x75, 0x66, 110 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 111 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 112 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 113 0x72, 0x73, 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 114 0x6f, 115 } 116 117 var ( 118 file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDescOnce sync.Once 119 file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDescData = file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDesc 120 ) 121 122 func file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDescGZIP() []byte { 123 file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDescOnce.Do(func() { 124 file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDescData) 125 }) 126 return file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDescData 127 } 128 129 var file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 130 var file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_goTypes = []interface{}{ 131 (*SurfacerConf)(nil), // 0: cloudprober.surfacer.postgres.SurfacerConf 132 } 133 var file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_depIdxs = []int32{ 134 0, // [0:0] is the sub-list for method output_type 135 0, // [0:0] is the sub-list for method input_type 136 0, // [0:0] is the sub-list for extension type_name 137 0, // [0:0] is the sub-list for extension extendee 138 0, // [0:0] is the sub-list for field type_name 139 } 140 141 func init() { file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_init() } 142 func file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_init() { 143 if File_github_com_google_cloudprober_surfacers_postgres_proto_config_proto != nil { 144 return 145 } 146 if !protoimpl.UnsafeEnabled { 147 file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 148 switch v := v.(*SurfacerConf); i { 149 case 0: 150 return &v.state 151 case 1: 152 return &v.sizeCache 153 case 2: 154 return &v.unknownFields 155 default: 156 return nil 157 } 158 } 159 } 160 type x struct{} 161 out := protoimpl.TypeBuilder{ 162 File: protoimpl.DescBuilder{ 163 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 164 RawDescriptor: file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDesc, 165 NumEnums: 0, 166 NumMessages: 1, 167 NumExtensions: 0, 168 NumServices: 0, 169 }, 170 GoTypes: file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_goTypes, 171 DependencyIndexes: file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_depIdxs, 172 MessageInfos: file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_msgTypes, 173 }.Build() 174 File_github_com_google_cloudprober_surfacers_postgres_proto_config_proto = out.File 175 file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_rawDesc = nil 176 file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_goTypes = nil 177 file_github_com_google_cloudprober_surfacers_postgres_proto_config_proto_depIdxs = nil 178 }