github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/extensions/watchdog/profile_action/v3alpha/profile_action.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/extensions/watchdog/profile_action/v3alpha/profile_action.proto 6 7 package envoy_extensions_watchdog_profile_action_v3alpha 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 duration "github.com/golang/protobuf/ptypes/duration" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 // Configuration for the profile watchdog action. 32 type ProfileActionConfig struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // How long the profile should last. If not set defaults to 5 seconds. 38 ProfileDuration *duration.Duration `protobuf:"bytes,1,opt,name=profile_duration,json=profileDuration,proto3" json:"profile_duration,omitempty"` 39 // File path to the directory to output profiles. 40 ProfilePath string `protobuf:"bytes,2,opt,name=profile_path,json=profilePath,proto3" json:"profile_path,omitempty"` 41 // Limits the max number of profiles that can be generated by this action 42 // over its lifetime to avoid filling the disk. 43 // If not set (i.e. it's 0), a default of 10 will be used. 44 MaxProfiles uint64 `protobuf:"varint,3,opt,name=max_profiles,json=maxProfiles,proto3" json:"max_profiles,omitempty"` 45 } 46 47 func (x *ProfileActionConfig) Reset() { 48 *x = ProfileActionConfig{} 49 if protoimpl.UnsafeEnabled { 50 mi := &file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_msgTypes[0] 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 ms.StoreMessageInfo(mi) 53 } 54 } 55 56 func (x *ProfileActionConfig) String() string { 57 return protoimpl.X.MessageStringOf(x) 58 } 59 60 func (*ProfileActionConfig) ProtoMessage() {} 61 62 func (x *ProfileActionConfig) ProtoReflect() protoreflect.Message { 63 mi := &file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_msgTypes[0] 64 if protoimpl.UnsafeEnabled && x != nil { 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 if ms.LoadMessageInfo() == nil { 67 ms.StoreMessageInfo(mi) 68 } 69 return ms 70 } 71 return mi.MessageOf(x) 72 } 73 74 // Deprecated: Use ProfileActionConfig.ProtoReflect.Descriptor instead. 75 func (*ProfileActionConfig) Descriptor() ([]byte, []int) { 76 return file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDescGZIP(), []int{0} 77 } 78 79 func (x *ProfileActionConfig) GetProfileDuration() *duration.Duration { 80 if x != nil { 81 return x.ProfileDuration 82 } 83 return nil 84 } 85 86 func (x *ProfileActionConfig) GetProfilePath() string { 87 if x != nil { 88 return x.ProfilePath 89 } 90 return "" 91 } 92 93 func (x *ProfileActionConfig) GetMaxProfiles() uint64 { 94 if x != nil { 95 return x.MaxProfiles 96 } 97 return 0 98 } 99 100 var File_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto protoreflect.FileDescriptor 101 102 var file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDesc = []byte{ 103 0x0a, 0x45, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 104 0x6e, 0x73, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x64, 0x6f, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x66, 105 0x69, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x61, 0x6c, 0x70, 106 0x68, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 107 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x30, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 108 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x77, 0x61, 0x74, 0x63, 0x68, 0x64, 109 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 110 0x6e, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 111 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 112 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 113 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 114 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 115 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 116 0x6f, 0x22, 0xaa, 0x01, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x74, 117 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x44, 0x0a, 0x10, 0x70, 0x72, 0x6f, 118 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 119 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 120 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 121 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 122 0x2a, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 123 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0b, 124 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 125 0x61, 0x78, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 126 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x66, 127 0x0a, 0x3e, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 128 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 129 0x2e, 0x77, 0x61, 0x74, 0x63, 0x68, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 130 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 131 0x42, 0x12, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 132 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x08, 0x01, 0xba, 0x80, 133 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 134 } 135 136 var ( 137 file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDescOnce sync.Once 138 file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDescData = file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDesc 139 ) 140 141 func file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDescGZIP() []byte { 142 file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDescOnce.Do(func() { 143 file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDescData) 144 }) 145 return file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDescData 146 } 147 148 var file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 149 var file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_goTypes = []interface{}{ 150 (*ProfileActionConfig)(nil), // 0: envoy.extensions.watchdog.profile_action.v3alpha.ProfileActionConfig 151 (*duration.Duration)(nil), // 1: google.protobuf.Duration 152 } 153 var file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_depIdxs = []int32{ 154 1, // 0: envoy.extensions.watchdog.profile_action.v3alpha.ProfileActionConfig.profile_duration:type_name -> google.protobuf.Duration 155 1, // [1:1] is the sub-list for method output_type 156 1, // [1:1] is the sub-list for method input_type 157 1, // [1:1] is the sub-list for extension type_name 158 1, // [1:1] is the sub-list for extension extendee 159 0, // [0:1] is the sub-list for field type_name 160 } 161 162 func init() { file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_init() } 163 func file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_init() { 164 if File_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto != nil { 165 return 166 } 167 if !protoimpl.UnsafeEnabled { 168 file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 169 switch v := v.(*ProfileActionConfig); i { 170 case 0: 171 return &v.state 172 case 1: 173 return &v.sizeCache 174 case 2: 175 return &v.unknownFields 176 default: 177 return nil 178 } 179 } 180 } 181 type x struct{} 182 out := protoimpl.TypeBuilder{ 183 File: protoimpl.DescBuilder{ 184 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 185 RawDescriptor: file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDesc, 186 NumEnums: 0, 187 NumMessages: 1, 188 NumExtensions: 0, 189 NumServices: 0, 190 }, 191 GoTypes: file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_goTypes, 192 DependencyIndexes: file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_depIdxs, 193 MessageInfos: file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_msgTypes, 194 }.Build() 195 File_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto = out.File 196 file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_rawDesc = nil 197 file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_goTypes = nil 198 file_envoy_extensions_watchdog_profile_action_v3alpha_profile_action_proto_depIdxs = nil 199 }