github.com/cloudwan/edgelq-sdk@v1.15.4/logging/resources/v1/common/common.pb.go (about)

     1  // Code generated by protoc-gen-goten-go
     2  // File: edgelq/logging/proto/v1/common.proto
     3  // DO NOT EDIT!!!
     4  
     5  package common
     6  
     7  import (
     8  	"fmt"
     9  	"reflect"
    10  	"sync"
    11  
    12  	"google.golang.org/protobuf/encoding/protojson"
    13  	"google.golang.org/protobuf/proto"
    14  	preflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	"google.golang.org/protobuf/runtime/protoimpl"
    16  )
    17  
    18  // proto imports
    19  import (
    20  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    21  )
    22  
    23  // Reference imports to suppress errors if they are not otherwise used.
    24  var (
    25  	_ = fmt.Errorf
    26  	_ = reflect.Method{}
    27  	_ = sync.Once{}
    28  
    29  	_ = protojson.MarshalOptions{}
    30  	_ = proto.MarshalOptions{}
    31  	_ = preflect.Value{}
    32  	_ = protoimpl.DescBuilder{}
    33  )
    34  
    35  // make sure we're using proto imports
    36  var (
    37  	_ = &timestamppb.Timestamp{}
    38  )
    39  
    40  const (
    41  	// Verify that this generated code is sufficiently up-to-date.
    42  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    43  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    44  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    45  )
    46  
    47  type LabelDescriptor struct {
    48  	state         protoimpl.MessageState
    49  	sizeCache     protoimpl.SizeCache
    50  	unknownFields protoimpl.UnknownFields
    51  	// The label key.
    52  	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    53  	// Label description
    54  	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    55  }
    56  
    57  func (m *LabelDescriptor) Reset() {
    58  	*m = LabelDescriptor{}
    59  	if protoimpl.UnsafeEnabled {
    60  		mi := &edgelq_logging_proto_v1_common_proto_msgTypes[0]
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    62  		ms.StoreMessageInfo(mi)
    63  	}
    64  }
    65  
    66  func (m *LabelDescriptor) String() string {
    67  	return protoimpl.X.MessageStringOf(m)
    68  }
    69  
    70  func (*LabelDescriptor) ProtoMessage() {}
    71  
    72  func (m *LabelDescriptor) ProtoReflect() preflect.Message {
    73  	mi := &edgelq_logging_proto_v1_common_proto_msgTypes[0]
    74  	if protoimpl.UnsafeEnabled && m != nil {
    75  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    76  		if ms.LoadMessageInfo() == nil {
    77  			ms.StoreMessageInfo(mi)
    78  		}
    79  		return ms
    80  	}
    81  	return mi.MessageOf(m)
    82  }
    83  
    84  func (*LabelDescriptor) GotenMessage() {}
    85  
    86  // Deprecated, Use LabelDescriptor.ProtoReflect.Descriptor instead.
    87  func (*LabelDescriptor) Descriptor() ([]byte, []int) {
    88  	return edgelq_logging_proto_v1_common_proto_rawDescGZIP(), []int{0}
    89  }
    90  
    91  func (m *LabelDescriptor) Unmarshal(b []byte) error {
    92  	return proto.Unmarshal(b, m)
    93  }
    94  
    95  func (m *LabelDescriptor) Marshal() ([]byte, error) {
    96  	return proto.Marshal(m)
    97  }
    98  
    99  func (m *LabelDescriptor) MarshalJSON() ([]byte, error) {
   100  	return protojson.MarshalOptions{}.Marshal(m)
   101  }
   102  
   103  func (m *LabelDescriptor) UnmarshalJSON(data []byte) error {
   104  	return protojson.Unmarshal(data, m)
   105  }
   106  
   107  func (m *LabelDescriptor) GetKey() string {
   108  	if m != nil {
   109  		return m.Key
   110  	}
   111  	return ""
   112  }
   113  
   114  func (m *LabelDescriptor) GetDescription() string {
   115  	if m != nil {
   116  		return m.Description
   117  	}
   118  	return ""
   119  }
   120  
   121  func (m *LabelDescriptor) SetKey(fv string) {
   122  	if m == nil {
   123  		panic(fmt.Errorf("can't set %s on nil %s", "Key", "LabelDescriptor"))
   124  	}
   125  	m.Key = fv
   126  }
   127  
   128  func (m *LabelDescriptor) SetDescription(fv string) {
   129  	if m == nil {
   130  		panic(fmt.Errorf("can't set %s on nil %s", "Description", "LabelDescriptor"))
   131  	}
   132  	m.Description = fv
   133  }
   134  
   135  // LabelKeySet is used for defining PromotedLabelKeySets
   136  type LabelKeySet struct {
   137  	state         protoimpl.MessageState
   138  	sizeCache     protoimpl.SizeCache
   139  	unknownFields protoimpl.UnknownFields
   140  	LabelKeys     []string `protobuf:"bytes,1,rep,name=label_keys,json=labelKeys,proto3" json:"label_keys,omitempty"`
   141  }
   142  
   143  func (m *LabelKeySet) Reset() {
   144  	*m = LabelKeySet{}
   145  	if protoimpl.UnsafeEnabled {
   146  		mi := &edgelq_logging_proto_v1_common_proto_msgTypes[1]
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   148  		ms.StoreMessageInfo(mi)
   149  	}
   150  }
   151  
   152  func (m *LabelKeySet) String() string {
   153  	return protoimpl.X.MessageStringOf(m)
   154  }
   155  
   156  func (*LabelKeySet) ProtoMessage() {}
   157  
   158  func (m *LabelKeySet) ProtoReflect() preflect.Message {
   159  	mi := &edgelq_logging_proto_v1_common_proto_msgTypes[1]
   160  	if protoimpl.UnsafeEnabled && m != nil {
   161  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   162  		if ms.LoadMessageInfo() == nil {
   163  			ms.StoreMessageInfo(mi)
   164  		}
   165  		return ms
   166  	}
   167  	return mi.MessageOf(m)
   168  }
   169  
   170  func (*LabelKeySet) GotenMessage() {}
   171  
   172  // Deprecated, Use LabelKeySet.ProtoReflect.Descriptor instead.
   173  func (*LabelKeySet) Descriptor() ([]byte, []int) {
   174  	return edgelq_logging_proto_v1_common_proto_rawDescGZIP(), []int{1}
   175  }
   176  
   177  func (m *LabelKeySet) Unmarshal(b []byte) error {
   178  	return proto.Unmarshal(b, m)
   179  }
   180  
   181  func (m *LabelKeySet) Marshal() ([]byte, error) {
   182  	return proto.Marshal(m)
   183  }
   184  
   185  func (m *LabelKeySet) MarshalJSON() ([]byte, error) {
   186  	return protojson.MarshalOptions{}.Marshal(m)
   187  }
   188  
   189  func (m *LabelKeySet) UnmarshalJSON(data []byte) error {
   190  	return protojson.Unmarshal(data, m)
   191  }
   192  
   193  func (m *LabelKeySet) GetLabelKeys() []string {
   194  	if m != nil {
   195  		return m.LabelKeys
   196  	}
   197  	return nil
   198  }
   199  
   200  func (m *LabelKeySet) SetLabelKeys(fv []string) {
   201  	if m == nil {
   202  		panic(fmt.Errorf("can't set %s on nil %s", "LabelKeys", "LabelKeySet"))
   203  	}
   204  	m.LabelKeys = fv
   205  }
   206  
   207  // A time interval extending just after a start time through an end time.
   208  // If the start time is the same as the end time, then the interval
   209  // represents a single point in time.
   210  type TimeInterval struct {
   211  	state         protoimpl.MessageState
   212  	sizeCache     protoimpl.SizeCache
   213  	unknownFields protoimpl.UnknownFields
   214  	// Optional - end of the time interval. If not provided, current
   215  	// time will be assumed.
   216  	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
   217  	// Required. The beginning of the time interval. The start time must not be
   218  	// later than the end time.
   219  	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
   220  }
   221  
   222  func (m *TimeInterval) Reset() {
   223  	*m = TimeInterval{}
   224  	if protoimpl.UnsafeEnabled {
   225  		mi := &edgelq_logging_proto_v1_common_proto_msgTypes[2]
   226  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   227  		ms.StoreMessageInfo(mi)
   228  	}
   229  }
   230  
   231  func (m *TimeInterval) String() string {
   232  	return protoimpl.X.MessageStringOf(m)
   233  }
   234  
   235  func (*TimeInterval) ProtoMessage() {}
   236  
   237  func (m *TimeInterval) ProtoReflect() preflect.Message {
   238  	mi := &edgelq_logging_proto_v1_common_proto_msgTypes[2]
   239  	if protoimpl.UnsafeEnabled && m != nil {
   240  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   241  		if ms.LoadMessageInfo() == nil {
   242  			ms.StoreMessageInfo(mi)
   243  		}
   244  		return ms
   245  	}
   246  	return mi.MessageOf(m)
   247  }
   248  
   249  func (*TimeInterval) GotenMessage() {}
   250  
   251  // Deprecated, Use TimeInterval.ProtoReflect.Descriptor instead.
   252  func (*TimeInterval) Descriptor() ([]byte, []int) {
   253  	return edgelq_logging_proto_v1_common_proto_rawDescGZIP(), []int{2}
   254  }
   255  
   256  func (m *TimeInterval) Unmarshal(b []byte) error {
   257  	return proto.Unmarshal(b, m)
   258  }
   259  
   260  func (m *TimeInterval) Marshal() ([]byte, error) {
   261  	return proto.Marshal(m)
   262  }
   263  
   264  func (m *TimeInterval) MarshalJSON() ([]byte, error) {
   265  	return protojson.MarshalOptions{}.Marshal(m)
   266  }
   267  
   268  func (m *TimeInterval) UnmarshalJSON(data []byte) error {
   269  	return protojson.Unmarshal(data, m)
   270  }
   271  
   272  func (m *TimeInterval) GetEndTime() *timestamppb.Timestamp {
   273  	if m != nil {
   274  		return m.EndTime
   275  	}
   276  	return nil
   277  }
   278  
   279  func (m *TimeInterval) GetStartTime() *timestamppb.Timestamp {
   280  	if m != nil {
   281  		return m.StartTime
   282  	}
   283  	return nil
   284  }
   285  
   286  func (m *TimeInterval) SetEndTime(fv *timestamppb.Timestamp) {
   287  	if m == nil {
   288  		panic(fmt.Errorf("can't set %s on nil %s", "EndTime", "TimeInterval"))
   289  	}
   290  	m.EndTime = fv
   291  }
   292  
   293  func (m *TimeInterval) SetStartTime(fv *timestamppb.Timestamp) {
   294  	if m == nil {
   295  		panic(fmt.Errorf("can't set %s on nil %s", "StartTime", "TimeInterval"))
   296  	}
   297  	m.StartTime = fv
   298  }
   299  
   300  var edgelq_logging_proto_v1_common_proto preflect.FileDescriptor
   301  
   302  var edgelq_logging_proto_v1_common_proto_rawDesc = []byte{
   303  	0x0a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
   304  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   305  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 0x74, 0x74, 0x2e, 0x6c, 0x6f, 0x67, 0x67,
   306  	0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e,
   307  	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e,
   308  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e,
   309  	0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
   310  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   311  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f,
   312  	0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   313  	0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
   314  	0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x0f, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x44, 0x65, 0x73, 0x63,
   315  	0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x39, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
   316  	0x01, 0x28, 0x09, 0x42, 0x27, 0xca, 0xc6, 0x27, 0x23, 0x2a, 0x21, 0x52, 0x1f, 0x42, 0x1d, 0x5e,
   317  	0x5b, 0x5f, 0x41, 0x2d, 0x5a, 0x61, 0x2d, 0x7a, 0x5d, 0x5b, 0x5f, 0x41, 0x2d, 0x5a, 0x61, 0x2d,
   318  	0x7a, 0x30, 0x2d, 0x39, 0x5d, 0x7b, 0x30, 0x2c, 0x36, 0x33, 0x7d, 0x24, 0x52, 0x03, 0x6b, 0x65,
   319  	0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
   320  	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
   321  	0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x53,
   322  	0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73,
   323  	0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79,
   324  	0x73, 0x22, 0x8a, 0x01, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76,
   325  	0x61, 0x6c, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02,
   326  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   327  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
   328  	0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x73, 0x74, 0x61,
   329  	0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
   330  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   331  	0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xca, 0xc6, 0x27, 0x04, 0x62,
   332  	0x02, 0x08, 0x01, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x62,
   333  	0xe8, 0xde, 0x21, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x6c, 0x6f,
   334  	0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x43, 0x6f, 0x6d,
   335  	0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68,
   336  	0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f,
   337  	0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x72,
   338  	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
   339  	0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   340  }
   341  
   342  var (
   343  	edgelq_logging_proto_v1_common_proto_rawDescOnce sync.Once
   344  	edgelq_logging_proto_v1_common_proto_rawDescData = edgelq_logging_proto_v1_common_proto_rawDesc
   345  )
   346  
   347  func edgelq_logging_proto_v1_common_proto_rawDescGZIP() []byte {
   348  	edgelq_logging_proto_v1_common_proto_rawDescOnce.Do(func() {
   349  		edgelq_logging_proto_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_logging_proto_v1_common_proto_rawDescData)
   350  	})
   351  	return edgelq_logging_proto_v1_common_proto_rawDescData
   352  }
   353  
   354  var edgelq_logging_proto_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   355  var edgelq_logging_proto_v1_common_proto_goTypes = []interface{}{
   356  	(*LabelDescriptor)(nil),       // 0: ntt.logging.v1.LabelDescriptor
   357  	(*LabelKeySet)(nil),           // 1: ntt.logging.v1.LabelKeySet
   358  	(*TimeInterval)(nil),          // 2: ntt.logging.v1.TimeInterval
   359  	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
   360  }
   361  var edgelq_logging_proto_v1_common_proto_depIdxs = []int32{
   362  	3, // 0: ntt.logging.v1.TimeInterval.end_time:type_name -> google.protobuf.Timestamp
   363  	3, // 1: ntt.logging.v1.TimeInterval.start_time:type_name -> google.protobuf.Timestamp
   364  	2, // [2:2] is the sub-list for method output_type
   365  	2, // [2:2] is the sub-list for method input_type
   366  	2, // [2:2] is the sub-list for extension type_name
   367  	2, // [2:2] is the sub-list for extension extendee
   368  	0, // [0:2] is the sub-list for field type_name
   369  }
   370  
   371  func init() { edgelq_logging_proto_v1_common_proto_init() }
   372  func edgelq_logging_proto_v1_common_proto_init() {
   373  	if edgelq_logging_proto_v1_common_proto != nil {
   374  		return
   375  	}
   376  	if !protoimpl.UnsafeEnabled {
   377  
   378  		edgelq_logging_proto_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   379  			switch v := v.(*LabelDescriptor); i {
   380  			case 0:
   381  				return &v.state
   382  			case 1:
   383  				return &v.sizeCache
   384  			case 2:
   385  				return &v.unknownFields
   386  			default:
   387  				return nil
   388  			}
   389  		}
   390  		edgelq_logging_proto_v1_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   391  			switch v := v.(*LabelKeySet); i {
   392  			case 0:
   393  				return &v.state
   394  			case 1:
   395  				return &v.sizeCache
   396  			case 2:
   397  				return &v.unknownFields
   398  			default:
   399  				return nil
   400  			}
   401  		}
   402  		edgelq_logging_proto_v1_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   403  			switch v := v.(*TimeInterval); i {
   404  			case 0:
   405  				return &v.state
   406  			case 1:
   407  				return &v.sizeCache
   408  			case 2:
   409  				return &v.unknownFields
   410  			default:
   411  				return nil
   412  			}
   413  		}
   414  	}
   415  
   416  	type x struct{}
   417  	out := protoimpl.TypeBuilder{
   418  		File: protoimpl.DescBuilder{
   419  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   420  			RawDescriptor: edgelq_logging_proto_v1_common_proto_rawDesc,
   421  			NumEnums:      0,
   422  			NumMessages:   3,
   423  			NumExtensions: 0,
   424  			NumServices:   0,
   425  		},
   426  		GoTypes:           edgelq_logging_proto_v1_common_proto_goTypes,
   427  		DependencyIndexes: edgelq_logging_proto_v1_common_proto_depIdxs,
   428  		MessageInfos:      edgelq_logging_proto_v1_common_proto_msgTypes,
   429  	}.Build()
   430  	edgelq_logging_proto_v1_common_proto = out.File
   431  	edgelq_logging_proto_v1_common_proto_rawDesc = nil
   432  	edgelq_logging_proto_v1_common_proto_goTypes = nil
   433  	edgelq_logging_proto_v1_common_proto_depIdxs = nil
   434  }