...

Source file src/google.golang.org/genproto/googleapis/chat/logging/v1/chat_app_log_entry.pb.go

Documentation: google.golang.org/genproto/googleapis/chat/logging/v1

     1  // Copyright 2022 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        v3.12.2
    19  // source: google/chat/logging/v1/chat_app_log_entry.proto
    20  
    21  package logging
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	status "google.golang.org/genproto/googleapis/rpc/status"
    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  // JSON payload of error messages. If the Cloud Logging API is enabled, these
    40  // error messages are logged to
    41  // [Google Cloud Logging](https://cloud.google.com/logging/docs).
    42  type ChatAppLogEntry struct {
    43  	state         protoimpl.MessageState
    44  	sizeCache     protoimpl.SizeCache
    45  	unknownFields protoimpl.UnknownFields
    46  
    47  	// The deployment that caused the error. For Chat bots built in Apps Script,
    48  	// this is the deployment ID defined by Apps Script.
    49  	Deployment string `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
    50  	// The error code and message.
    51  	Error *status.Status `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
    52  	// The unencrypted `callback_method` name that was running when the error was
    53  	// encountered.
    54  	DeploymentFunction string `protobuf:"bytes,3,opt,name=deployment_function,json=deploymentFunction,proto3" json:"deployment_function,omitempty"`
    55  }
    56  
    57  func (x *ChatAppLogEntry) Reset() {
    58  	*x = ChatAppLogEntry{}
    59  	if protoimpl.UnsafeEnabled {
    60  		mi := &file_google_chat_logging_v1_chat_app_log_entry_proto_msgTypes[0]
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    62  		ms.StoreMessageInfo(mi)
    63  	}
    64  }
    65  
    66  func (x *ChatAppLogEntry) String() string {
    67  	return protoimpl.X.MessageStringOf(x)
    68  }
    69  
    70  func (*ChatAppLogEntry) ProtoMessage() {}
    71  
    72  func (x *ChatAppLogEntry) ProtoReflect() protoreflect.Message {
    73  	mi := &file_google_chat_logging_v1_chat_app_log_entry_proto_msgTypes[0]
    74  	if protoimpl.UnsafeEnabled && x != nil {
    75  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    76  		if ms.LoadMessageInfo() == nil {
    77  			ms.StoreMessageInfo(mi)
    78  		}
    79  		return ms
    80  	}
    81  	return mi.MessageOf(x)
    82  }
    83  
    84  // Deprecated: Use ChatAppLogEntry.ProtoReflect.Descriptor instead.
    85  func (*ChatAppLogEntry) Descriptor() ([]byte, []int) {
    86  	return file_google_chat_logging_v1_chat_app_log_entry_proto_rawDescGZIP(), []int{0}
    87  }
    88  
    89  func (x *ChatAppLogEntry) GetDeployment() string {
    90  	if x != nil {
    91  		return x.Deployment
    92  	}
    93  	return ""
    94  }
    95  
    96  func (x *ChatAppLogEntry) GetError() *status.Status {
    97  	if x != nil {
    98  		return x.Error
    99  	}
   100  	return nil
   101  }
   102  
   103  func (x *ChatAppLogEntry) GetDeploymentFunction() string {
   104  	if x != nil {
   105  		return x.DeploymentFunction
   106  	}
   107  	return ""
   108  }
   109  
   110  var File_google_chat_logging_v1_chat_app_log_entry_proto protoreflect.FileDescriptor
   111  
   112  var file_google_chat_logging_v1_chat_app_log_entry_proto_rawDesc = []byte{
   113  	0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x2f, 0x6c, 0x6f,
   114  	0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x61, 0x70,
   115  	0x70, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   116  	0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x6c,
   117  	0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   118  	0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   119  	0x74, 0x6f, 0x22, 0x8c, 0x01, 0x0a, 0x0f, 0x43, 0x68, 0x61, 0x74, 0x41, 0x70, 0x70, 0x4c, 0x6f,
   120  	0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,
   121  	0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6c,
   122  	0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
   123  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72,
   124  	0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
   125  	0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x66,
   126  	0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64,
   127  	0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
   128  	0x6e, 0x42, 0x73, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   129  	0x63, 0x68, 0x61, 0x74, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42,
   130  	0x14, 0x43, 0x68, 0x61, 0x74, 0x41, 0x70, 0x70, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79,
   131  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   132  	0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
   133  	0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63,
   134  	0x68, 0x61, 0x74, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x6c,
   135  	0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   136  }
   137  
   138  var (
   139  	file_google_chat_logging_v1_chat_app_log_entry_proto_rawDescOnce sync.Once
   140  	file_google_chat_logging_v1_chat_app_log_entry_proto_rawDescData = file_google_chat_logging_v1_chat_app_log_entry_proto_rawDesc
   141  )
   142  
   143  func file_google_chat_logging_v1_chat_app_log_entry_proto_rawDescGZIP() []byte {
   144  	file_google_chat_logging_v1_chat_app_log_entry_proto_rawDescOnce.Do(func() {
   145  		file_google_chat_logging_v1_chat_app_log_entry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_chat_logging_v1_chat_app_log_entry_proto_rawDescData)
   146  	})
   147  	return file_google_chat_logging_v1_chat_app_log_entry_proto_rawDescData
   148  }
   149  
   150  var file_google_chat_logging_v1_chat_app_log_entry_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   151  var file_google_chat_logging_v1_chat_app_log_entry_proto_goTypes = []interface{}{
   152  	(*ChatAppLogEntry)(nil), // 0: google.chat.logging.v1.ChatAppLogEntry
   153  	(*status.Status)(nil),   // 1: google.rpc.Status
   154  }
   155  var file_google_chat_logging_v1_chat_app_log_entry_proto_depIdxs = []int32{
   156  	1, // 0: google.chat.logging.v1.ChatAppLogEntry.error:type_name -> google.rpc.Status
   157  	1, // [1:1] is the sub-list for method output_type
   158  	1, // [1:1] is the sub-list for method input_type
   159  	1, // [1:1] is the sub-list for extension type_name
   160  	1, // [1:1] is the sub-list for extension extendee
   161  	0, // [0:1] is the sub-list for field type_name
   162  }
   163  
   164  func init() { file_google_chat_logging_v1_chat_app_log_entry_proto_init() }
   165  func file_google_chat_logging_v1_chat_app_log_entry_proto_init() {
   166  	if File_google_chat_logging_v1_chat_app_log_entry_proto != nil {
   167  		return
   168  	}
   169  	if !protoimpl.UnsafeEnabled {
   170  		file_google_chat_logging_v1_chat_app_log_entry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   171  			switch v := v.(*ChatAppLogEntry); i {
   172  			case 0:
   173  				return &v.state
   174  			case 1:
   175  				return &v.sizeCache
   176  			case 2:
   177  				return &v.unknownFields
   178  			default:
   179  				return nil
   180  			}
   181  		}
   182  	}
   183  	type x struct{}
   184  	out := protoimpl.TypeBuilder{
   185  		File: protoimpl.DescBuilder{
   186  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   187  			RawDescriptor: file_google_chat_logging_v1_chat_app_log_entry_proto_rawDesc,
   188  			NumEnums:      0,
   189  			NumMessages:   1,
   190  			NumExtensions: 0,
   191  			NumServices:   0,
   192  		},
   193  		GoTypes:           file_google_chat_logging_v1_chat_app_log_entry_proto_goTypes,
   194  		DependencyIndexes: file_google_chat_logging_v1_chat_app_log_entry_proto_depIdxs,
   195  		MessageInfos:      file_google_chat_logging_v1_chat_app_log_entry_proto_msgTypes,
   196  	}.Build()
   197  	File_google_chat_logging_v1_chat_app_log_entry_proto = out.File
   198  	file_google_chat_logging_v1_chat_app_log_entry_proto_rawDesc = nil
   199  	file_google_chat_logging_v1_chat_app_log_entry_proto_goTypes = nil
   200  	file_google_chat_logging_v1_chat_app_log_entry_proto_depIdxs = nil
   201  }
   202  

View as plain text