github.com/google/cloudprober@v0.11.3/surfacers/pubsub/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/pubsub/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 // GCP project name for pubsub. If not specified and running on GCP, 29 // project is used. 30 Project *string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"` 31 // Pubsub topic name. 32 // Default is cloudprober-{hostname} 33 TopicName *string `protobuf:"bytes,2,opt,name=topic_name,json=topicName" json:"topic_name,omitempty"` 34 // Compress data before writing to pubsub. 35 CompressionEnabled *bool `protobuf:"varint,4,opt,name=compression_enabled,json=compressionEnabled,def=0" json:"compression_enabled,omitempty"` 36 } 37 38 // Default values for SurfacerConf fields. 39 const ( 40 Default_SurfacerConf_CompressionEnabled = bool(false) 41 ) 42 43 func (x *SurfacerConf) Reset() { 44 *x = SurfacerConf{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *SurfacerConf) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*SurfacerConf) ProtoMessage() {} 57 58 func (x *SurfacerConf) ProtoReflect() protoreflect.Message { 59 mi := &file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_msgTypes[0] 60 if protoimpl.UnsafeEnabled && x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use SurfacerConf.ProtoReflect.Descriptor instead. 71 func (*SurfacerConf) Descriptor() ([]byte, []int) { 72 return file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDescGZIP(), []int{0} 73 } 74 75 func (x *SurfacerConf) GetProject() string { 76 if x != nil && x.Project != nil { 77 return *x.Project 78 } 79 return "" 80 } 81 82 func (x *SurfacerConf) GetTopicName() string { 83 if x != nil && x.TopicName != nil { 84 return *x.TopicName 85 } 86 return "" 87 } 88 89 func (x *SurfacerConf) GetCompressionEnabled() bool { 90 if x != nil && x.CompressionEnabled != nil { 91 return *x.CompressionEnabled 92 } 93 return Default_SurfacerConf_CompressionEnabled 94 } 95 96 var File_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto protoreflect.FileDescriptor 97 98 var file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDesc = []byte{ 99 0x0a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 100 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 101 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 102 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 103 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 104 0x2e, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 105 0x22, 0x7f, 0x0a, 0x0c, 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 106 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 107 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 108 0x70, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 109 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 110 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 111 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x12, 0x63, 112 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 113 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 114 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 115 0x65, 0x72, 0x2f, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x70, 0x75, 0x62, 116 0x73, 0x75, 0x62, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 117 } 118 119 var ( 120 file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDescOnce sync.Once 121 file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDescData = file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDesc 122 ) 123 124 func file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDescGZIP() []byte { 125 file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDescOnce.Do(func() { 126 file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDescData) 127 }) 128 return file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDescData 129 } 130 131 var file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 132 var file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_goTypes = []interface{}{ 133 (*SurfacerConf)(nil), // 0: cloudprober.surfacer.pubsub.SurfacerConf 134 } 135 var file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_depIdxs = []int32{ 136 0, // [0:0] is the sub-list for method output_type 137 0, // [0:0] is the sub-list for method input_type 138 0, // [0:0] is the sub-list for extension type_name 139 0, // [0:0] is the sub-list for extension extendee 140 0, // [0:0] is the sub-list for field type_name 141 } 142 143 func init() { file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_init() } 144 func file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_init() { 145 if File_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto != nil { 146 return 147 } 148 if !protoimpl.UnsafeEnabled { 149 file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 150 switch v := v.(*SurfacerConf); i { 151 case 0: 152 return &v.state 153 case 1: 154 return &v.sizeCache 155 case 2: 156 return &v.unknownFields 157 default: 158 return nil 159 } 160 } 161 } 162 type x struct{} 163 out := protoimpl.TypeBuilder{ 164 File: protoimpl.DescBuilder{ 165 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 166 RawDescriptor: file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDesc, 167 NumEnums: 0, 168 NumMessages: 1, 169 NumExtensions: 0, 170 NumServices: 0, 171 }, 172 GoTypes: file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_goTypes, 173 DependencyIndexes: file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_depIdxs, 174 MessageInfos: file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_msgTypes, 175 }.Build() 176 File_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto = out.File 177 file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_rawDesc = nil 178 file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_goTypes = nil 179 file_github_com_google_cloudprober_surfacers_pubsub_proto_config_proto_depIdxs = nil 180 }