...

Source file src/google.golang.org/genproto/googleapis/api/serviceconfig/log.pb.go

Documentation: google.golang.org/genproto/googleapis/api/serviceconfig

     1  // Copyright 2024 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.26.0
    18  // 	protoc        v4.24.4
    19  // source: google/api/log.proto
    20  
    21  package serviceconfig
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	label "google.golang.org/genproto/googleapis/api/label"
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // A description of a log type. Example in YAML format:
    40  //
    41  //   - name: library.googleapis.com/activity_history
    42  //     description: The history of borrowing and returning library items.
    43  //     display_name: Activity
    44  //     labels:
    45  //   - key: /customer_id
    46  //     description: Identifier of a library customer
    47  type LogDescriptor struct {
    48  	state         protoimpl.MessageState
    49  	sizeCache     protoimpl.SizeCache
    50  	unknownFields protoimpl.UnknownFields
    51  
    52  	// The name of the log. It must be less than 512 characters long and can
    53  	// include the following characters: upper- and lower-case alphanumeric
    54  	// characters [A-Za-z0-9], and punctuation characters including
    55  	// slash, underscore, hyphen, period [/_-.].
    56  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    57  	// The set of labels that are available to describe a specific log entry.
    58  	// Runtime requests that contain labels not specified here are
    59  	// considered invalid.
    60  	Labels []*label.LabelDescriptor `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
    61  	// A human-readable description of this log. This information appears in
    62  	// the documentation and can contain details.
    63  	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
    64  	// The human-readable name for this log. This information appears on
    65  	// the user interface and should be concise.
    66  	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    67  }
    68  
    69  func (x *LogDescriptor) Reset() {
    70  	*x = LogDescriptor{}
    71  	if protoimpl.UnsafeEnabled {
    72  		mi := &file_google_api_log_proto_msgTypes[0]
    73  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    74  		ms.StoreMessageInfo(mi)
    75  	}
    76  }
    77  
    78  func (x *LogDescriptor) String() string {
    79  	return protoimpl.X.MessageStringOf(x)
    80  }
    81  
    82  func (*LogDescriptor) ProtoMessage() {}
    83  
    84  func (x *LogDescriptor) ProtoReflect() protoreflect.Message {
    85  	mi := &file_google_api_log_proto_msgTypes[0]
    86  	if protoimpl.UnsafeEnabled && x != nil {
    87  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    88  		if ms.LoadMessageInfo() == nil {
    89  			ms.StoreMessageInfo(mi)
    90  		}
    91  		return ms
    92  	}
    93  	return mi.MessageOf(x)
    94  }
    95  
    96  // Deprecated: Use LogDescriptor.ProtoReflect.Descriptor instead.
    97  func (*LogDescriptor) Descriptor() ([]byte, []int) {
    98  	return file_google_api_log_proto_rawDescGZIP(), []int{0}
    99  }
   100  
   101  func (x *LogDescriptor) GetName() string {
   102  	if x != nil {
   103  		return x.Name
   104  	}
   105  	return ""
   106  }
   107  
   108  func (x *LogDescriptor) GetLabels() []*label.LabelDescriptor {
   109  	if x != nil {
   110  		return x.Labels
   111  	}
   112  	return nil
   113  }
   114  
   115  func (x *LogDescriptor) GetDescription() string {
   116  	if x != nil {
   117  		return x.Description
   118  	}
   119  	return ""
   120  }
   121  
   122  func (x *LogDescriptor) GetDisplayName() string {
   123  	if x != nil {
   124  		return x.DisplayName
   125  	}
   126  	return ""
   127  }
   128  
   129  var File_google_api_log_proto protoreflect.FileDescriptor
   130  
   131  var file_google_api_log_proto_rawDesc = []byte{
   132  	0x0a, 0x14, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67,
   133  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
   134  	0x70, 0x69, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c,
   135  	0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0d, 0x4c,
   136  	0x6f, 0x67, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04,
   137  	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   138  	0x12, 0x33, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
   139  	0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61,
   140  	0x62, 0x65, 0x6c, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x6c,
   141  	0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
   142  	0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
   143  	0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c,
   144  	0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
   145  	0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x6a, 0x0a, 0x0e, 0x63, 0x6f,
   146  	0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x08, 0x4c, 0x6f,
   147  	0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   148  	0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
   149  	0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
   150  	0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   151  	0x67, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0xa2,
   152  	0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   153  }
   154  
   155  var (
   156  	file_google_api_log_proto_rawDescOnce sync.Once
   157  	file_google_api_log_proto_rawDescData = file_google_api_log_proto_rawDesc
   158  )
   159  
   160  func file_google_api_log_proto_rawDescGZIP() []byte {
   161  	file_google_api_log_proto_rawDescOnce.Do(func() {
   162  		file_google_api_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_log_proto_rawDescData)
   163  	})
   164  	return file_google_api_log_proto_rawDescData
   165  }
   166  
   167  var file_google_api_log_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   168  var file_google_api_log_proto_goTypes = []interface{}{
   169  	(*LogDescriptor)(nil),         // 0: google.api.LogDescriptor
   170  	(*label.LabelDescriptor)(nil), // 1: google.api.LabelDescriptor
   171  }
   172  var file_google_api_log_proto_depIdxs = []int32{
   173  	1, // 0: google.api.LogDescriptor.labels:type_name -> google.api.LabelDescriptor
   174  	1, // [1:1] is the sub-list for method output_type
   175  	1, // [1:1] is the sub-list for method input_type
   176  	1, // [1:1] is the sub-list for extension type_name
   177  	1, // [1:1] is the sub-list for extension extendee
   178  	0, // [0:1] is the sub-list for field type_name
   179  }
   180  
   181  func init() { file_google_api_log_proto_init() }
   182  func file_google_api_log_proto_init() {
   183  	if File_google_api_log_proto != nil {
   184  		return
   185  	}
   186  	if !protoimpl.UnsafeEnabled {
   187  		file_google_api_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   188  			switch v := v.(*LogDescriptor); i {
   189  			case 0:
   190  				return &v.state
   191  			case 1:
   192  				return &v.sizeCache
   193  			case 2:
   194  				return &v.unknownFields
   195  			default:
   196  				return nil
   197  			}
   198  		}
   199  	}
   200  	type x struct{}
   201  	out := protoimpl.TypeBuilder{
   202  		File: protoimpl.DescBuilder{
   203  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   204  			RawDescriptor: file_google_api_log_proto_rawDesc,
   205  			NumEnums:      0,
   206  			NumMessages:   1,
   207  			NumExtensions: 0,
   208  			NumServices:   0,
   209  		},
   210  		GoTypes:           file_google_api_log_proto_goTypes,
   211  		DependencyIndexes: file_google_api_log_proto_depIdxs,
   212  		MessageInfos:      file_google_api_log_proto_msgTypes,
   213  	}.Build()
   214  	File_google_api_log_proto = out.File
   215  	file_google_api_log_proto_rawDesc = nil
   216  	file_google_api_log_proto_goTypes = nil
   217  	file_google_api_log_proto_depIdxs = nil
   218  }
   219  

View as plain text