| // Copyright 2026 The ChromiumOS Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.36.9 |
| // protoc v6.32.0 |
| // source: go.chromium.org/infra/cros/recovery/internal/components/cros/cellular/cellular_info.proto |
| |
| package cellular |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // ModemInfo is a simplified version of the JSON output from ModemManager |
| // used to retrieve modem connection state information. |
| type ModemInfo struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| Modem *ModemData `protobuf:"bytes,1,opt,name=modem,proto3" json:"modem,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ModemInfo) Reset() { |
| *x = ModemInfo{} |
| mi := &file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ModemInfo) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ModemInfo) ProtoMessage() {} |
| |
| func (x *ModemInfo) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes[0] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ModemInfo.ProtoReflect.Descriptor instead. |
| func (*ModemInfo) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *ModemInfo) GetModem() *ModemData { |
| if x != nil { |
| return x.Modem |
| } |
| return nil |
| } |
| |
| // ModemData aggregates 3GPP and generic modem metadata. |
| type ModemData struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| G3Pp *G3PPInfo `protobuf:"bytes,1,opt,name=g3pp,json=3gpp,proto3" json:"g3pp,omitempty"` |
| Generic *GenericInfo `protobuf:"bytes,2,opt,name=generic,proto3" json:"generic,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ModemData) Reset() { |
| *x = ModemData{} |
| mi := &file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ModemData) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ModemData) ProtoMessage() {} |
| |
| func (x *ModemData) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes[1] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ModemData.ProtoReflect.Descriptor instead. |
| func (*ModemData) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *ModemData) GetG3Pp() *G3PPInfo { |
| if x != nil { |
| return x.G3Pp |
| } |
| return nil |
| } |
| |
| func (x *ModemData) GetGeneric() *GenericInfo { |
| if x != nil { |
| return x.Generic |
| } |
| return nil |
| } |
| |
| // G3PPInfo contains cellular identifiers such as IMEI. |
| type G3PPInfo struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| Imei string `protobuf:"bytes,1,opt,name=imei,proto3" json:"imei,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *G3PPInfo) Reset() { |
| *x = G3PPInfo{} |
| mi := &file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *G3PPInfo) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*G3PPInfo) ProtoMessage() {} |
| |
| func (x *G3PPInfo) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes[2] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use G3PPInfo.ProtoReflect.Descriptor instead. |
| func (*G3PPInfo) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *G3PPInfo) GetImei() string { |
| if x != nil { |
| return x.Imei |
| } |
| return "" |
| } |
| |
| // GenericInfo contains general modem information and status. |
| type GenericInfo struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| ActiveSimSlot string `protobuf:"bytes,1,opt,name=active_sim_slot,json=primary-sim-slot,proto3" json:"active_sim_slot,omitempty"` |
| State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` |
| Sim string `protobuf:"bytes,3,opt,name=sim,proto3" json:"sim,omitempty"` |
| SimSlots []string `protobuf:"bytes,4,rep,name=sim_slots,json=sim-slots,proto3" json:"sim_slots,omitempty"` |
| OwnNumbers []string `protobuf:"bytes,5,rep,name=own_numbers,json=own-numbers,proto3" json:"own_numbers,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *GenericInfo) Reset() { |
| *x = GenericInfo{} |
| mi := &file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *GenericInfo) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GenericInfo) ProtoMessage() {} |
| |
| func (x *GenericInfo) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes[3] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GenericInfo.ProtoReflect.Descriptor instead. |
| func (*GenericInfo) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *GenericInfo) GetActiveSimSlot() string { |
| if x != nil { |
| return x.ActiveSimSlot |
| } |
| return "" |
| } |
| |
| func (x *GenericInfo) GetState() string { |
| if x != nil { |
| return x.State |
| } |
| return "" |
| } |
| |
| func (x *GenericInfo) GetSim() string { |
| if x != nil { |
| return x.Sim |
| } |
| return "" |
| } |
| |
| func (x *GenericInfo) GetSimSlots() []string { |
| if x != nil { |
| return x.SimSlots |
| } |
| return nil |
| } |
| |
| func (x *GenericInfo) GetOwnNumbers() []string { |
| if x != nil { |
| return x.OwnNumbers |
| } |
| return nil |
| } |
| |
| var File_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto protoreflect.FileDescriptor |
| |
| const file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDesc = "" + |
| "\n" + |
| "Ygo.chromium.org/infra/cros/recovery/internal/components/cros/cellular/cellular_info.proto\x12\x11chromeos.recovery\"?\n" + |
| "\tModemInfo\x122\n" + |
| "\x05modem\x18\x01 \x01(\v2\x1c.chromeos.recovery.ModemDataR\x05modem\"v\n" + |
| "\tModemData\x12/\n" + |
| "\x04g3pp\x18\x01 \x01(\v2\x1b.chromeos.recovery.G3PPInfoR\x043gpp\x128\n" + |
| "\ageneric\x18\x02 \x01(\v2\x1e.chromeos.recovery.GenericInfoR\ageneric\"\x1e\n" + |
| "\bG3PPInfo\x12\x12\n" + |
| "\x04imei\x18\x01 \x01(\tR\x04imei\"\xa0\x01\n" + |
| "\vGenericInfo\x12)\n" + |
| "\x0factive_sim_slot\x18\x01 \x01(\tR\x10primary-sim-slot\x12\x14\n" + |
| "\x05state\x18\x02 \x01(\tR\x05state\x12\x10\n" + |
| "\x03sim\x18\x03 \x01(\tR\x03sim\x12\x1c\n" + |
| "\tsim_slots\x18\x04 \x03(\tR\tsim-slots\x12 \n" + |
| "\vown_numbers\x18\x05 \x03(\tR\vown-numbersBPZNgo.chromium.org/infra/cros/recovery/internal/components/cros/cellular;cellularb\x06proto3" |
| |
| var ( |
| file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescOnce sync.Once |
| file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescData []byte |
| ) |
| |
| func file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescGZIP() []byte { |
| file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescOnce.Do(func() { |
| file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDesc), len(file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDesc))) |
| }) |
| return file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDescData |
| } |
| |
| var file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| var file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_goTypes = []any{ |
| (*ModemInfo)(nil), // 0: chromeos.recovery.ModemInfo |
| (*ModemData)(nil), // 1: chromeos.recovery.ModemData |
| (*G3PPInfo)(nil), // 2: chromeos.recovery.G3PPInfo |
| (*GenericInfo)(nil), // 3: chromeos.recovery.GenericInfo |
| } |
| var file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_depIdxs = []int32{ |
| 1, // 0: chromeos.recovery.ModemInfo.modem:type_name -> chromeos.recovery.ModemData |
| 2, // 1: chromeos.recovery.ModemData.g3pp:type_name -> chromeos.recovery.G3PPInfo |
| 3, // 2: chromeos.recovery.ModemData.generic:type_name -> chromeos.recovery.GenericInfo |
| 3, // [3:3] is the sub-list for method output_type |
| 3, // [3:3] is the sub-list for method input_type |
| 3, // [3:3] is the sub-list for extension type_name |
| 3, // [3:3] is the sub-list for extension extendee |
| 0, // [0:3] is the sub-list for field type_name |
| } |
| |
| func init() { |
| file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_init() |
| } |
| func file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_init() { |
| if File_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto != nil { |
| return |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDesc), len(file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_rawDesc)), |
| NumEnums: 0, |
| NumMessages: 4, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_goTypes, |
| DependencyIndexes: file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_depIdxs, |
| MessageInfos: file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_msgTypes, |
| }.Build() |
| File_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto = out.File |
| file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_goTypes = nil |
| file_go_chromium_org_infra_cros_recovery_internal_components_cros_cellular_cellular_info_proto_depIdxs = nil |
| } |