...

Source file src/google.golang.org/genproto/googleapis/cloud/notebooks/logging/v1/runtime_log.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/notebooks/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/cloud/notebooks/logging/v1/runtime_log.proto
    20  
    21  package logging
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	_ "google.golang.org/genproto/googleapis/api/annotations"
    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  // Defines event type.
    40  type RuntimeEvent_EventType int32
    41  
    42  const (
    43  	// Event is not specified.
    44  	RuntimeEvent_EVENT_TYPE_UNSPECIFIED RuntimeEvent_EventType = 0
    45  	// Runtime state has been updated.
    46  	RuntimeEvent_RUNTIME_STATE_CHANGE_EVENT RuntimeEvent_EventType = 1
    47  )
    48  
    49  // Enum value maps for RuntimeEvent_EventType.
    50  var (
    51  	RuntimeEvent_EventType_name = map[int32]string{
    52  		0: "EVENT_TYPE_UNSPECIFIED",
    53  		1: "RUNTIME_STATE_CHANGE_EVENT",
    54  	}
    55  	RuntimeEvent_EventType_value = map[string]int32{
    56  		"EVENT_TYPE_UNSPECIFIED":     0,
    57  		"RUNTIME_STATE_CHANGE_EVENT": 1,
    58  	}
    59  )
    60  
    61  func (x RuntimeEvent_EventType) Enum() *RuntimeEvent_EventType {
    62  	p := new(RuntimeEvent_EventType)
    63  	*p = x
    64  	return p
    65  }
    66  
    67  func (x RuntimeEvent_EventType) String() string {
    68  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    69  }
    70  
    71  func (RuntimeEvent_EventType) Descriptor() protoreflect.EnumDescriptor {
    72  	return file_google_cloud_notebooks_logging_v1_runtime_log_proto_enumTypes[0].Descriptor()
    73  }
    74  
    75  func (RuntimeEvent_EventType) Type() protoreflect.EnumType {
    76  	return &file_google_cloud_notebooks_logging_v1_runtime_log_proto_enumTypes[0]
    77  }
    78  
    79  func (x RuntimeEvent_EventType) Number() protoreflect.EnumNumber {
    80  	return protoreflect.EnumNumber(x)
    81  }
    82  
    83  // Deprecated: Use RuntimeEvent_EventType.Descriptor instead.
    84  func (RuntimeEvent_EventType) EnumDescriptor() ([]byte, []int) {
    85  	return file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescGZIP(), []int{0, 0}
    86  }
    87  
    88  // Log content of an event related to a runtime.
    89  type RuntimeEvent struct {
    90  	state         protoimpl.MessageState
    91  	sizeCache     protoimpl.SizeCache
    92  	unknownFields protoimpl.UnknownFields
    93  
    94  	// Required. Type of event.
    95  	Type RuntimeEvent_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.notebooks.logging.v1.RuntimeEvent_EventType" json:"type,omitempty"`
    96  	// Optional. Additional metadata for the event.
    97  	Details map[string]string `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    98  }
    99  
   100  func (x *RuntimeEvent) Reset() {
   101  	*x = RuntimeEvent{}
   102  	if protoimpl.UnsafeEnabled {
   103  		mi := &file_google_cloud_notebooks_logging_v1_runtime_log_proto_msgTypes[0]
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		ms.StoreMessageInfo(mi)
   106  	}
   107  }
   108  
   109  func (x *RuntimeEvent) String() string {
   110  	return protoimpl.X.MessageStringOf(x)
   111  }
   112  
   113  func (*RuntimeEvent) ProtoMessage() {}
   114  
   115  func (x *RuntimeEvent) ProtoReflect() protoreflect.Message {
   116  	mi := &file_google_cloud_notebooks_logging_v1_runtime_log_proto_msgTypes[0]
   117  	if protoimpl.UnsafeEnabled && x != nil {
   118  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   119  		if ms.LoadMessageInfo() == nil {
   120  			ms.StoreMessageInfo(mi)
   121  		}
   122  		return ms
   123  	}
   124  	return mi.MessageOf(x)
   125  }
   126  
   127  // Deprecated: Use RuntimeEvent.ProtoReflect.Descriptor instead.
   128  func (*RuntimeEvent) Descriptor() ([]byte, []int) {
   129  	return file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescGZIP(), []int{0}
   130  }
   131  
   132  func (x *RuntimeEvent) GetType() RuntimeEvent_EventType {
   133  	if x != nil {
   134  		return x.Type
   135  	}
   136  	return RuntimeEvent_EVENT_TYPE_UNSPECIFIED
   137  }
   138  
   139  func (x *RuntimeEvent) GetDetails() map[string]string {
   140  	if x != nil {
   141  		return x.Details
   142  	}
   143  	return nil
   144  }
   145  
   146  var File_google_cloud_notebooks_logging_v1_runtime_log_proto protoreflect.FileDescriptor
   147  
   148  var file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDesc = []byte{
   149  	0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6e,
   150  	0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
   151  	0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x2e,
   152  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   153  	0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x6c, 0x6f,
   154  	0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   155  	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
   156  	0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x02, 0x0a, 0x0c, 0x52, 0x75,
   157  	0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x04, 0x74, 0x79,
   158  	0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   159  	0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b,
   160  	0x73, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e,
   161  	0x74, 0x69, 0x6d, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54,
   162  	0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x5b,
   163  	0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
   164  	0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e,
   165  	0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
   166  	0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74,
   167  	0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0,
   168  	0x41, 0x01, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x44,
   169  	0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
   170  	0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
   171  	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
   172  	0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x47, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74,
   173  	0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59,
   174  	0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
   175  	0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54,
   176  	0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x10, 0x01,
   177  	0x42, 0x84, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   178  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x6f, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2e,
   179  	0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x52, 0x75, 0x6e, 0x74,
   180  	0x69, 0x6d, 0x65, 0x4c, 0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67,
   181  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
   182  	0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   183  	0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6e, 0x6f, 0x74, 0x65, 0x62,
   184  	0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b,
   185  	0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   186  }
   187  
   188  var (
   189  	file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescOnce sync.Once
   190  	file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescData = file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDesc
   191  )
   192  
   193  func file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescGZIP() []byte {
   194  	file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescOnce.Do(func() {
   195  		file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescData)
   196  	})
   197  	return file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDescData
   198  }
   199  
   200  var file_google_cloud_notebooks_logging_v1_runtime_log_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   201  var file_google_cloud_notebooks_logging_v1_runtime_log_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   202  var file_google_cloud_notebooks_logging_v1_runtime_log_proto_goTypes = []interface{}{
   203  	(RuntimeEvent_EventType)(0), // 0: google.cloud.notebooks.logging.v1.RuntimeEvent.EventType
   204  	(*RuntimeEvent)(nil),        // 1: google.cloud.notebooks.logging.v1.RuntimeEvent
   205  	nil,                         // 2: google.cloud.notebooks.logging.v1.RuntimeEvent.DetailsEntry
   206  }
   207  var file_google_cloud_notebooks_logging_v1_runtime_log_proto_depIdxs = []int32{
   208  	0, // 0: google.cloud.notebooks.logging.v1.RuntimeEvent.type:type_name -> google.cloud.notebooks.logging.v1.RuntimeEvent.EventType
   209  	2, // 1: google.cloud.notebooks.logging.v1.RuntimeEvent.details:type_name -> google.cloud.notebooks.logging.v1.RuntimeEvent.DetailsEntry
   210  	2, // [2:2] is the sub-list for method output_type
   211  	2, // [2:2] is the sub-list for method input_type
   212  	2, // [2:2] is the sub-list for extension type_name
   213  	2, // [2:2] is the sub-list for extension extendee
   214  	0, // [0:2] is the sub-list for field type_name
   215  }
   216  
   217  func init() { file_google_cloud_notebooks_logging_v1_runtime_log_proto_init() }
   218  func file_google_cloud_notebooks_logging_v1_runtime_log_proto_init() {
   219  	if File_google_cloud_notebooks_logging_v1_runtime_log_proto != nil {
   220  		return
   221  	}
   222  	if !protoimpl.UnsafeEnabled {
   223  		file_google_cloud_notebooks_logging_v1_runtime_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   224  			switch v := v.(*RuntimeEvent); i {
   225  			case 0:
   226  				return &v.state
   227  			case 1:
   228  				return &v.sizeCache
   229  			case 2:
   230  				return &v.unknownFields
   231  			default:
   232  				return nil
   233  			}
   234  		}
   235  	}
   236  	type x struct{}
   237  	out := protoimpl.TypeBuilder{
   238  		File: protoimpl.DescBuilder{
   239  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   240  			RawDescriptor: file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDesc,
   241  			NumEnums:      1,
   242  			NumMessages:   2,
   243  			NumExtensions: 0,
   244  			NumServices:   0,
   245  		},
   246  		GoTypes:           file_google_cloud_notebooks_logging_v1_runtime_log_proto_goTypes,
   247  		DependencyIndexes: file_google_cloud_notebooks_logging_v1_runtime_log_proto_depIdxs,
   248  		EnumInfos:         file_google_cloud_notebooks_logging_v1_runtime_log_proto_enumTypes,
   249  		MessageInfos:      file_google_cloud_notebooks_logging_v1_runtime_log_proto_msgTypes,
   250  	}.Build()
   251  	File_google_cloud_notebooks_logging_v1_runtime_log_proto = out.File
   252  	file_google_cloud_notebooks_logging_v1_runtime_log_proto_rawDesc = nil
   253  	file_google_cloud_notebooks_logging_v1_runtime_log_proto_goTypes = nil
   254  	file_google_cloud_notebooks_logging_v1_runtime_log_proto_depIdxs = nil
   255  }
   256  

View as plain text