| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package typesv1 |
| 8 |
|
| 9 |
import ( |
| 10 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 |
reflect "reflect" |
| 13 |
sync "sync" |
| 14 |
unsafe "unsafe" |
| 15 |
) |
| 16 |
|
| 17 |
const ( |
| 18 |
|
| 19 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 22 |
) |
| 23 |
|
| 24 |
type Machine struct { |
| 25 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 26 |
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` |
| 27 |
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| 28 |
OperatingSystem string `protobuf:"bytes,3,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"` |
| 29 |
Architecture string `protobuf:"bytes,4,opt,name=architecture,proto3" json:"architecture,omitempty"` |
| 30 |
unknownFields protoimpl.UnknownFields |
| 31 |
sizeCache protoimpl.SizeCache |
| 32 |
} |
| 33 |
|
| 34 |
func (x *Machine) Reset() { |
| 35 |
*x = Machine{} |
| 36 |
mi := &file_types_v1_machine_proto_msgTypes[0] |
| 37 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 38 |
ms.StoreMessageInfo(mi) |
| 39 |
} |
| 40 |
|
| 41 |
func (x *Machine) String() string { |
| 42 |
return protoimpl.X.MessageStringOf(x) |
| 43 |
} |
| 44 |
|
| 45 |
func (*Machine) ProtoMessage() {} |
| 46 |
|
| 47 |
func (x *Machine) ProtoReflect() protoreflect.Message { |
| 48 |
mi := &file_types_v1_machine_proto_msgTypes[0] |
| 49 |
if x != nil { |
| 50 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 51 |
if ms.LoadMessageInfo() == nil { |
| 52 |
ms.StoreMessageInfo(mi) |
| 53 |
} |
| 54 |
return ms |
| 55 |
} |
| 56 |
return mi.MessageOf(x) |
| 57 |
} |
| 58 |
|
| 59 |
|
| 60 |
func (*Machine) Descriptor() ([]byte, []int) { |
| 61 |
return file_types_v1_machine_proto_rawDescGZIP(), []int{0} |
| 62 |
} |
| 63 |
|
| 64 |
func (x *Machine) GetId() int64 { |
| 65 |
if x != nil { |
| 66 |
return x.Id |
| 67 |
} |
| 68 |
return 0 |
| 69 |
} |
| 70 |
|
| 71 |
func (x *Machine) GetName() string { |
| 72 |
if x != nil { |
| 73 |
return x.Name |
| 74 |
} |
| 75 |
return "" |
| 76 |
} |
| 77 |
|
| 78 |
func (x *Machine) GetOperatingSystem() string { |
| 79 |
if x != nil { |
| 80 |
return x.OperatingSystem |
| 81 |
} |
| 82 |
return "" |
| 83 |
} |
| 84 |
|
| 85 |
func (x *Machine) GetArchitecture() string { |
| 86 |
if x != nil { |
| 87 |
return x.Architecture |
| 88 |
} |
| 89 |
return "" |
| 90 |
} |
| 91 |
|
| 92 |
var File_types_v1_machine_proto protoreflect.FileDescriptor |
| 93 |
|
| 94 |
var file_types_v1_machine_proto_rawDesc = string([]byte{ |
| 95 |
0x0a, 0x16, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, |
| 96 |
0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, |
| 97 |
0x76, 0x31, 0x22, 0x7c, 0x0a, 0x07, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x0e, 0x0a, |
| 98 |
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, |
| 99 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, |
| 100 |
0x65, 0x12, 0x29, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, |
| 101 |
0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6f, 0x70, 0x65, |
| 102 |
0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x22, 0x0a, 0x0c, |
| 103 |
0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, |
| 104 |
0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, |
| 105 |
0x42, 0x8c, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, |
| 106 |
0x31, 0x42, 0x0c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, |
| 107 |
0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x75, |
| 108 |
0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, |
| 109 |
0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, |
| 110 |
0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, |
| 111 |
0x31, 0xca, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14, 0x54, |
| 112 |
0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, |
| 113 |
0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, |
| 114 |
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 115 |
}) |
| 116 |
|
| 117 |
var ( |
| 118 |
file_types_v1_machine_proto_rawDescOnce sync.Once |
| 119 |
file_types_v1_machine_proto_rawDescData []byte |
| 120 |
) |
| 121 |
|
| 122 |
func file_types_v1_machine_proto_rawDescGZIP() []byte { |
| 123 |
file_types_v1_machine_proto_rawDescOnce.Do(func() { |
| 124 |
file_types_v1_machine_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_types_v1_machine_proto_rawDesc), len(file_types_v1_machine_proto_rawDesc))) |
| 125 |
}) |
| 126 |
return file_types_v1_machine_proto_rawDescData |
| 127 |
} |
| 128 |
|
| 129 |
var file_types_v1_machine_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 130 |
var file_types_v1_machine_proto_goTypes = []any{ |
| 131 |
(*Machine)(nil), |
| 132 |
} |
| 133 |
var file_types_v1_machine_proto_depIdxs = []int32{ |
| 134 |
0, |
| 135 |
0, |
| 136 |
0, |
| 137 |
0, |
| 138 |
0, |
| 139 |
} |
| 140 |
|
| 141 |
func init() { file_types_v1_machine_proto_init() } |
| 142 |
func file_types_v1_machine_proto_init() { |
| 143 |
if File_types_v1_machine_proto != nil { |
| 144 |
return |
| 145 |
} |
| 146 |
type x struct{} |
| 147 |
out := protoimpl.TypeBuilder{ |
| 148 |
File: protoimpl.DescBuilder{ |
| 149 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 150 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_v1_machine_proto_rawDesc), len(file_types_v1_machine_proto_rawDesc)), |
| 151 |
NumEnums: 0, |
| 152 |
NumMessages: 1, |
| 153 |
NumExtensions: 0, |
| 154 |
NumServices: 0, |
| 155 |
}, |
| 156 |
GoTypes: file_types_v1_machine_proto_goTypes, |
| 157 |
DependencyIndexes: file_types_v1_machine_proto_depIdxs, |
| 158 |
MessageInfos: file_types_v1_machine_proto_msgTypes, |
| 159 |
}.Build() |
| 160 |
File_types_v1_machine_proto = out.File |
| 161 |
file_types_v1_machine_proto_goTypes = nil |
| 162 |
file_types_v1_machine_proto_depIdxs = nil |
| 163 |
} |