github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/fleetspeak/src/client/socketservice/proto/fleetspeak_socketservice/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v4.23.4 5 // source: fleetspeak/src/client/socketservice/proto/fleetspeak_socketservice/config.proto 6 7 package fleetspeak_socketservice 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 // The configuration information expected by socketservice.Factory in 24 // ClientServiceConfig.config. 25 type Config struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // The given api_proxy_path may be an arbitrary filesystem path and will be 31 // used to pair the daemon service with its non-child client process. 32 // 33 // On Unix in particular, a Unix socket will be created at this path and used 34 // for communication between FS and the client. 35 // 36 // Side note: FS requires the proxy's parent directory's perms to be 0700. 37 // If the parent directory doesn't exist, FS will mkdir -p it with perms set 38 // to 0700. 39 ApiProxyPath string `protobuf:"bytes,1,opt,name=api_proxy_path,json=apiProxyPath,proto3" json:"api_proxy_path,omitempty"` 40 // By default, socket services report resource usage every 10 minutes. This 41 // flag disables this if set. 42 DisableResourceMonitoring bool `protobuf:"varint,2,opt,name=disable_resource_monitoring,json=disableResourceMonitoring,proto3" json:"disable_resource_monitoring,omitempty"` 43 // How many samples to aggregate into a report when monitoring resource usage. 44 // If unset, defaults to 20. 45 ResourceMonitoringSampleSize int32 `protobuf:"varint,3,opt,name=resource_monitoring_sample_size,json=resourceMonitoringSampleSize,proto3" json:"resource_monitoring_sample_size,omitempty"` 46 // How long to wait between resource monitoring samples. If unset, defaults to 47 // 30 seconds. 48 ResourceMonitoringSamplePeriodSeconds int32 `protobuf:"varint,4,opt,name=resource_monitoring_sample_period_seconds,json=resourceMonitoringSamplePeriodSeconds,proto3" json:"resource_monitoring_sample_period_seconds,omitempty"` 49 } 50 51 func (x *Config) Reset() { 52 *x = Config{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58 } 59 60 func (x *Config) String() string { 61 return protoimpl.X.MessageStringOf(x) 62 } 63 64 func (*Config) ProtoMessage() {} 65 66 func (x *Config) ProtoReflect() protoreflect.Message { 67 mi := &file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_msgTypes[0] 68 if protoimpl.UnsafeEnabled && x != nil { 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 if ms.LoadMessageInfo() == nil { 71 ms.StoreMessageInfo(mi) 72 } 73 return ms 74 } 75 return mi.MessageOf(x) 76 } 77 78 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 79 func (*Config) Descriptor() ([]byte, []int) { 80 return file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDescGZIP(), []int{0} 81 } 82 83 func (x *Config) GetApiProxyPath() string { 84 if x != nil { 85 return x.ApiProxyPath 86 } 87 return "" 88 } 89 90 func (x *Config) GetDisableResourceMonitoring() bool { 91 if x != nil { 92 return x.DisableResourceMonitoring 93 } 94 return false 95 } 96 97 func (x *Config) GetResourceMonitoringSampleSize() int32 { 98 if x != nil { 99 return x.ResourceMonitoringSampleSize 100 } 101 return 0 102 } 103 104 func (x *Config) GetResourceMonitoringSamplePeriodSeconds() int32 { 105 if x != nil { 106 return x.ResourceMonitoringSamplePeriodSeconds 107 } 108 return 0 109 } 110 111 var File_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto protoreflect.FileDescriptor 112 113 var file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDesc = []byte{ 114 0x0a, 0x4f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63, 115 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x65, 116 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c, 0x65, 0x65, 117 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x65, 0x72, 118 0x76, 0x69, 0x63, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 119 0x6f, 0x12, 0x18, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2e, 0x73, 0x6f, 120 0x63, 0x6b, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x06, 121 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72, 122 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 123 0x61, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x61, 0x74, 0x68, 0x12, 0x3e, 0x0a, 0x1b, 124 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 125 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 126 0x08, 0x52, 0x19, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 127 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x45, 0x0a, 0x1f, 128 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 129 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 130 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 131 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 132 0x69, 0x7a, 0x65, 0x12, 0x58, 0x0a, 0x29, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 133 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 134 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 135 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x25, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 136 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 137 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42, 0x61, 0x5a, 138 0x5f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 139 0x6c, 0x65, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x66, 0x6c, 140 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x63, 0x6c, 0x69, 141 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 142 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 143 0x61, 0x6b, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 144 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 145 } 146 147 var ( 148 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDescOnce sync.Once 149 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDescData = file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDesc 150 ) 151 152 func file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDescGZIP() []byte { 153 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDescOnce.Do(func() { 154 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDescData) 155 }) 156 return file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDescData 157 } 158 159 var file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 160 var file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_goTypes = []interface{}{ 161 (*Config)(nil), // 0: fleetspeak.socketservice.Config 162 } 163 var file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_depIdxs = []int32{ 164 0, // [0:0] is the sub-list for method output_type 165 0, // [0:0] is the sub-list for method input_type 166 0, // [0:0] is the sub-list for extension type_name 167 0, // [0:0] is the sub-list for extension extendee 168 0, // [0:0] is the sub-list for field type_name 169 } 170 171 func init() { 172 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_init() 173 } 174 func file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_init() { 175 if File_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto != nil { 176 return 177 } 178 if !protoimpl.UnsafeEnabled { 179 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 180 switch v := v.(*Config); i { 181 case 0: 182 return &v.state 183 case 1: 184 return &v.sizeCache 185 case 2: 186 return &v.unknownFields 187 default: 188 return nil 189 } 190 } 191 } 192 type x struct{} 193 out := protoimpl.TypeBuilder{ 194 File: protoimpl.DescBuilder{ 195 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 196 RawDescriptor: file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDesc, 197 NumEnums: 0, 198 NumMessages: 1, 199 NumExtensions: 0, 200 NumServices: 0, 201 }, 202 GoTypes: file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_goTypes, 203 DependencyIndexes: file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_depIdxs, 204 MessageInfos: file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_msgTypes, 205 }.Build() 206 File_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto = out.File 207 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_rawDesc = nil 208 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_goTypes = nil 209 file_fleetspeak_src_client_socketservice_proto_fleetspeak_socketservice_config_proto_depIdxs = nil 210 }