...

Source file src/cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb/logs_panel.pb.go

Documentation: cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb

     1  // Copyright 2023 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.33.0
    18  // 	protoc        v4.25.3
    19  // source: google/monitoring/dashboard/v1/logs_panel.proto
    20  
    21  package dashboardpb
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // A widget that displays a stream of log.
    39  type LogsPanel struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// A filter that chooses which log entries to return.  See [Advanced Logs
    45  	// Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
    46  	// Only log entries that match the filter are returned.  An empty filter
    47  	// matches all log entries.
    48  	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
    49  	// The names of logging resources to collect logs for. Currently only projects
    50  	// are supported. If empty, the widget will default to the host project.
    51  	ResourceNames []string `protobuf:"bytes,2,rep,name=resource_names,json=resourceNames,proto3" json:"resource_names,omitempty"`
    52  }
    53  
    54  func (x *LogsPanel) Reset() {
    55  	*x = LogsPanel{}
    56  	if protoimpl.UnsafeEnabled {
    57  		mi := &file_google_monitoring_dashboard_v1_logs_panel_proto_msgTypes[0]
    58  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    59  		ms.StoreMessageInfo(mi)
    60  	}
    61  }
    62  
    63  func (x *LogsPanel) String() string {
    64  	return protoimpl.X.MessageStringOf(x)
    65  }
    66  
    67  func (*LogsPanel) ProtoMessage() {}
    68  
    69  func (x *LogsPanel) ProtoReflect() protoreflect.Message {
    70  	mi := &file_google_monitoring_dashboard_v1_logs_panel_proto_msgTypes[0]
    71  	if protoimpl.UnsafeEnabled && x != nil {
    72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    73  		if ms.LoadMessageInfo() == nil {
    74  			ms.StoreMessageInfo(mi)
    75  		}
    76  		return ms
    77  	}
    78  	return mi.MessageOf(x)
    79  }
    80  
    81  // Deprecated: Use LogsPanel.ProtoReflect.Descriptor instead.
    82  func (*LogsPanel) Descriptor() ([]byte, []int) {
    83  	return file_google_monitoring_dashboard_v1_logs_panel_proto_rawDescGZIP(), []int{0}
    84  }
    85  
    86  func (x *LogsPanel) GetFilter() string {
    87  	if x != nil {
    88  		return x.Filter
    89  	}
    90  	return ""
    91  }
    92  
    93  func (x *LogsPanel) GetResourceNames() []string {
    94  	if x != nil {
    95  		return x.ResourceNames
    96  	}
    97  	return nil
    98  }
    99  
   100  var File_google_monitoring_dashboard_v1_logs_panel_proto protoreflect.FileDescriptor
   101  
   102  var file_google_monitoring_dashboard_v1_logs_panel_proto_rawDesc = []byte{
   103  	0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
   104  	0x69, 0x6e, 0x67, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76, 0x31,
   105  	0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x5f, 0x70, 0x61, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   106  	0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f,
   107  	0x72, 0x69, 0x6e, 0x67, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76,
   108  	0x31, 0x22, 0x4a, 0x0a, 0x09, 0x4c, 0x6f, 0x67, 0x73, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x12, 0x16,
   109  	0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
   110  	0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
   111  	0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d,
   112  	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x42, 0xf7, 0x01,
   113  	0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e,
   114  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72,
   115  	0x64, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x4c, 0x6f, 0x67, 0x73, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x50,
   116  	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
   117  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x6f, 0x6e, 0x69,
   118  	0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64,
   119  	0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64,
   120  	0x70, 0x62, 0x3b, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x70, 0x62, 0xaa, 0x02,
   121  	0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x6f,
   122  	0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61,
   123  	0x72, 0x64, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43,
   124  	0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5c,
   125  	0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x28, 0x47,
   126  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4d, 0x6f,
   127  	0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f,
   128  	0x61, 0x72, 0x64, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   129  }
   130  
   131  var (
   132  	file_google_monitoring_dashboard_v1_logs_panel_proto_rawDescOnce sync.Once
   133  	file_google_monitoring_dashboard_v1_logs_panel_proto_rawDescData = file_google_monitoring_dashboard_v1_logs_panel_proto_rawDesc
   134  )
   135  
   136  func file_google_monitoring_dashboard_v1_logs_panel_proto_rawDescGZIP() []byte {
   137  	file_google_monitoring_dashboard_v1_logs_panel_proto_rawDescOnce.Do(func() {
   138  		file_google_monitoring_dashboard_v1_logs_panel_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_monitoring_dashboard_v1_logs_panel_proto_rawDescData)
   139  	})
   140  	return file_google_monitoring_dashboard_v1_logs_panel_proto_rawDescData
   141  }
   142  
   143  var file_google_monitoring_dashboard_v1_logs_panel_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   144  var file_google_monitoring_dashboard_v1_logs_panel_proto_goTypes = []interface{}{
   145  	(*LogsPanel)(nil), // 0: google.monitoring.dashboard.v1.LogsPanel
   146  }
   147  var file_google_monitoring_dashboard_v1_logs_panel_proto_depIdxs = []int32{
   148  	0, // [0:0] is the sub-list for method output_type
   149  	0, // [0:0] is the sub-list for method input_type
   150  	0, // [0:0] is the sub-list for extension type_name
   151  	0, // [0:0] is the sub-list for extension extendee
   152  	0, // [0:0] is the sub-list for field type_name
   153  }
   154  
   155  func init() { file_google_monitoring_dashboard_v1_logs_panel_proto_init() }
   156  func file_google_monitoring_dashboard_v1_logs_panel_proto_init() {
   157  	if File_google_monitoring_dashboard_v1_logs_panel_proto != nil {
   158  		return
   159  	}
   160  	if !protoimpl.UnsafeEnabled {
   161  		file_google_monitoring_dashboard_v1_logs_panel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   162  			switch v := v.(*LogsPanel); i {
   163  			case 0:
   164  				return &v.state
   165  			case 1:
   166  				return &v.sizeCache
   167  			case 2:
   168  				return &v.unknownFields
   169  			default:
   170  				return nil
   171  			}
   172  		}
   173  	}
   174  	type x struct{}
   175  	out := protoimpl.TypeBuilder{
   176  		File: protoimpl.DescBuilder{
   177  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   178  			RawDescriptor: file_google_monitoring_dashboard_v1_logs_panel_proto_rawDesc,
   179  			NumEnums:      0,
   180  			NumMessages:   1,
   181  			NumExtensions: 0,
   182  			NumServices:   0,
   183  		},
   184  		GoTypes:           file_google_monitoring_dashboard_v1_logs_panel_proto_goTypes,
   185  		DependencyIndexes: file_google_monitoring_dashboard_v1_logs_panel_proto_depIdxs,
   186  		MessageInfos:      file_google_monitoring_dashboard_v1_logs_panel_proto_msgTypes,
   187  	}.Build()
   188  	File_google_monitoring_dashboard_v1_logs_panel_proto = out.File
   189  	file_google_monitoring_dashboard_v1_logs_panel_proto_rawDesc = nil
   190  	file_google_monitoring_dashboard_v1_logs_panel_proto_goTypes = nil
   191  	file_google_monitoring_dashboard_v1_logs_panel_proto_depIdxs = nil
   192  }
   193  

View as plain text