github.com/kaydxh/golang@v0.0.131/pkg/monitor/prometheus/prometheus.pb.go (about)

     1  /*
     2   *Copyright (c) 2022, kaydxh
     3   *
     4   *Permission is hereby granted, free of charge, to any person obtaining a copy
     5   *of this software and associated documentation files (the "Software"), to deal
     6   *in the Software without restriction, including without limitation the rights
     7   *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8   *copies of the Software, and to permit persons to whom the Software is
     9   *furnished to do so, subject to the following conditions:
    10   *
    11   *The above copyright notice and this permission notice shall be included in all
    12   *copies or substantial portions of the Software.
    13   *
    14   *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15   *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16   *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    17   *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    18   *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    19   *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    20   *SOFTWARE.
    21   */
    22  // Code generated by protoc-gen-go. DO NOT EDIT.
    23  // versions:
    24  // 	protoc-gen-go v1.27.0
    25  // 	protoc        v3.13.0
    26  // source: pkg/monitor/prometheus/prometheus.proto
    27  
    28  package prometheus
    29  
    30  import (
    31  	_ "github.com/golang/protobuf/ptypes/duration"
    32  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    33  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    34  	reflect "reflect"
    35  	sync "sync"
    36  )
    37  
    38  const (
    39  	// Verify that this generated code is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    41  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    42  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    43  )
    44  
    45  type Prometheus struct {
    46  	state         protoimpl.MessageState
    47  	sizeCache     protoimpl.SizeCache
    48  	unknownFields protoimpl.UnknownFields
    49  
    50  	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
    51  }
    52  
    53  func (x *Prometheus) Reset() {
    54  	*x = Prometheus{}
    55  	if protoimpl.UnsafeEnabled {
    56  		mi := &file_pkg_monitor_prometheus_prometheus_proto_msgTypes[0]
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		ms.StoreMessageInfo(mi)
    59  	}
    60  }
    61  
    62  func (x *Prometheus) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*Prometheus) ProtoMessage() {}
    67  
    68  func (x *Prometheus) ProtoReflect() protoreflect.Message {
    69  	mi := &file_pkg_monitor_prometheus_prometheus_proto_msgTypes[0]
    70  	if protoimpl.UnsafeEnabled && x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use Prometheus.ProtoReflect.Descriptor instead.
    81  func (*Prometheus) Descriptor() ([]byte, []int) {
    82  	return file_pkg_monitor_prometheus_prometheus_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *Prometheus) GetEnabled() bool {
    86  	if x != nil {
    87  		return x.Enabled
    88  	}
    89  	return false
    90  }
    91  
    92  var File_pkg_monitor_prometheus_prometheus_proto protoreflect.FileDescriptor
    93  
    94  var file_pkg_monitor_prometheus_prometheus_proto_rawDesc = []byte{
    95  	0x0a, 0x27, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2f, 0x70, 0x72,
    96  	0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68,
    97  	0x65, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x2e, 0x70, 0x6b,
    98  	0x67, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74,
    99  	0x68, 0x65, 0x75, 0x73, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
   100  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
   101  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65,
   102  	0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,
   103  	0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x3c, 0x5a, 0x3a,
   104  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78,
   105  	0x68, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x6f, 0x6e,
   106  	0x69, 0x74, 0x6f, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x3b,
   107  	0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   108  	0x6f, 0x33,
   109  }
   110  
   111  var (
   112  	file_pkg_monitor_prometheus_prometheus_proto_rawDescOnce sync.Once
   113  	file_pkg_monitor_prometheus_prometheus_proto_rawDescData = file_pkg_monitor_prometheus_prometheus_proto_rawDesc
   114  )
   115  
   116  func file_pkg_monitor_prometheus_prometheus_proto_rawDescGZIP() []byte {
   117  	file_pkg_monitor_prometheus_prometheus_proto_rawDescOnce.Do(func() {
   118  		file_pkg_monitor_prometheus_prometheus_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_monitor_prometheus_prometheus_proto_rawDescData)
   119  	})
   120  	return file_pkg_monitor_prometheus_prometheus_proto_rawDescData
   121  }
   122  
   123  var file_pkg_monitor_prometheus_prometheus_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   124  var file_pkg_monitor_prometheus_prometheus_proto_goTypes = []interface{}{
   125  	(*Prometheus)(nil), // 0: go.pkg.monitor.prometheus.Prometheus
   126  }
   127  var file_pkg_monitor_prometheus_prometheus_proto_depIdxs = []int32{
   128  	0, // [0:0] is the sub-list for method output_type
   129  	0, // [0:0] is the sub-list for method input_type
   130  	0, // [0:0] is the sub-list for extension type_name
   131  	0, // [0:0] is the sub-list for extension extendee
   132  	0, // [0:0] is the sub-list for field type_name
   133  }
   134  
   135  func init() { file_pkg_monitor_prometheus_prometheus_proto_init() }
   136  func file_pkg_monitor_prometheus_prometheus_proto_init() {
   137  	if File_pkg_monitor_prometheus_prometheus_proto != nil {
   138  		return
   139  	}
   140  	if !protoimpl.UnsafeEnabled {
   141  		file_pkg_monitor_prometheus_prometheus_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   142  			switch v := v.(*Prometheus); i {
   143  			case 0:
   144  				return &v.state
   145  			case 1:
   146  				return &v.sizeCache
   147  			case 2:
   148  				return &v.unknownFields
   149  			default:
   150  				return nil
   151  			}
   152  		}
   153  	}
   154  	type x struct{}
   155  	out := protoimpl.TypeBuilder{
   156  		File: protoimpl.DescBuilder{
   157  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   158  			RawDescriptor: file_pkg_monitor_prometheus_prometheus_proto_rawDesc,
   159  			NumEnums:      0,
   160  			NumMessages:   1,
   161  			NumExtensions: 0,
   162  			NumServices:   0,
   163  		},
   164  		GoTypes:           file_pkg_monitor_prometheus_prometheus_proto_goTypes,
   165  		DependencyIndexes: file_pkg_monitor_prometheus_prometheus_proto_depIdxs,
   166  		MessageInfos:      file_pkg_monitor_prometheus_prometheus_proto_msgTypes,
   167  	}.Build()
   168  	File_pkg_monitor_prometheus_prometheus_proto = out.File
   169  	file_pkg_monitor_prometheus_prometheus_proto_rawDesc = nil
   170  	file_pkg_monitor_prometheus_prometheus_proto_goTypes = nil
   171  	file_pkg_monitor_prometheus_prometheus_proto_depIdxs = nil
   172  }