| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: assetinfo.proto |
| |
| package _go |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| //TODO(anushruth): Use 0 as Undefined inline with https://google.aip.dev/126 |
| type RequestStatus int32 |
| |
| const ( |
| RequestStatus_OK RequestStatus = 0 |
| RequestStatus_INVALID_MESSAGE RequestStatus = 1 |
| RequestStatus_SERVER_ERROR RequestStatus = 2 |
| RequestStatus_NO_ASSET_TAG RequestStatus = 3 |
| RequestStatus_NO_GPN RequestStatus = 4 |
| ) |
| |
| var RequestStatus_name = map[int32]string{ |
| 0: "OK", |
| 1: "INVALID_MESSAGE", |
| 2: "SERVER_ERROR", |
| 3: "NO_ASSET_TAG", |
| 4: "NO_GPN", |
| } |
| |
| var RequestStatus_value = map[string]int32{ |
| "OK": 0, |
| "INVALID_MESSAGE": 1, |
| "SERVER_ERROR": 2, |
| "NO_ASSET_TAG": 3, |
| "NO_GPN": 4, |
| } |
| |
| func (x RequestStatus) String() string { |
| return proto.EnumName(RequestStatus_name, int32(x)) |
| } |
| |
| func (RequestStatus) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_1a7a9f575d08c498, []int{0} |
| } |
| |
| type AssetInfo struct { |
| AssetTag string `protobuf:"bytes,1,opt,name=asset_tag,json=assetTag,proto3" json:"asset_tag,omitempty"` |
| SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` |
| CostCenter string `protobuf:"bytes,3,opt,name=cost_center,json=costCenter,proto3" json:"cost_center,omitempty"` |
| GoogleCodeName string `protobuf:"bytes,4,opt,name=google_code_name,json=googleCodeName,proto3" json:"google_code_name,omitempty"` |
| Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"` |
| BuildTarget string `protobuf:"bytes,6,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"` |
| ReferenceBoard string `protobuf:"bytes,7,opt,name=reference_board,json=referenceBoard,proto3" json:"reference_board,omitempty"` |
| EthernetMacAddress string `protobuf:"bytes,8,opt,name=ethernet_mac_address,json=ethernetMacAddress,proto3" json:"ethernet_mac_address,omitempty"` |
| Sku string `protobuf:"bytes,9,opt,name=sku,proto3" json:"sku,omitempty"` |
| Phase string `protobuf:"bytes,10,opt,name=phase,proto3" json:"phase,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AssetInfo) Reset() { *m = AssetInfo{} } |
| func (m *AssetInfo) String() string { return proto.CompactTextString(m) } |
| func (*AssetInfo) ProtoMessage() {} |
| func (*AssetInfo) Descriptor() ([]byte, []int) { |
| return fileDescriptor_1a7a9f575d08c498, []int{0} |
| } |
| |
| func (m *AssetInfo) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AssetInfo.Unmarshal(m, b) |
| } |
| func (m *AssetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AssetInfo.Marshal(b, m, deterministic) |
| } |
| func (m *AssetInfo) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AssetInfo.Merge(m, src) |
| } |
| func (m *AssetInfo) XXX_Size() int { |
| return xxx_messageInfo_AssetInfo.Size(m) |
| } |
| func (m *AssetInfo) XXX_DiscardUnknown() { |
| xxx_messageInfo_AssetInfo.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AssetInfo proto.InternalMessageInfo |
| |
| func (m *AssetInfo) GetAssetTag() string { |
| if m != nil { |
| return m.AssetTag |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetSerialNumber() string { |
| if m != nil { |
| return m.SerialNumber |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetCostCenter() string { |
| if m != nil { |
| return m.CostCenter |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetGoogleCodeName() string { |
| if m != nil { |
| return m.GoogleCodeName |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetModel() string { |
| if m != nil { |
| return m.Model |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetBuildTarget() string { |
| if m != nil { |
| return m.BuildTarget |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetReferenceBoard() string { |
| if m != nil { |
| return m.ReferenceBoard |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetEthernetMacAddress() string { |
| if m != nil { |
| return m.EthernetMacAddress |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetSku() string { |
| if m != nil { |
| return m.Sku |
| } |
| return "" |
| } |
| |
| func (m *AssetInfo) GetPhase() string { |
| if m != nil { |
| return m.Phase |
| } |
| return "" |
| } |
| |
| type AssetInfoRequest struct { |
| // Required. Asset tag(s) to lookup. |
| AssetTags []string `protobuf:"bytes,1,rep,name=asset_tags,json=assetTags,proto3" json:"asset_tags,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AssetInfoRequest) Reset() { *m = AssetInfoRequest{} } |
| func (m *AssetInfoRequest) String() string { return proto.CompactTextString(m) } |
| func (*AssetInfoRequest) ProtoMessage() {} |
| func (*AssetInfoRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_1a7a9f575d08c498, []int{1} |
| } |
| |
| func (m *AssetInfoRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AssetInfoRequest.Unmarshal(m, b) |
| } |
| func (m *AssetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AssetInfoRequest.Marshal(b, m, deterministic) |
| } |
| func (m *AssetInfoRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AssetInfoRequest.Merge(m, src) |
| } |
| func (m *AssetInfoRequest) XXX_Size() int { |
| return xxx_messageInfo_AssetInfoRequest.Size(m) |
| } |
| func (m *AssetInfoRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_AssetInfoRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AssetInfoRequest proto.InternalMessageInfo |
| |
| func (m *AssetInfoRequest) GetAssetTags() []string { |
| if m != nil { |
| return m.AssetTags |
| } |
| return nil |
| } |
| |
| type AssetInfoResponse struct { |
| // Indicator of whether the request call succeed or not. |
| RequestStatus RequestStatus `protobuf:"varint,1,opt,name=request_status,json=requestStatus,proto3,enum=fleet.RequestStatus" json:"request_status,omitempty"` |
| // A list of asset info retrieved from Hart. |
| Assets []*AssetInfo `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"` |
| // A list of asset tags not found in Corporate Asset Management platform. |
| MissingAssetTags []string `protobuf:"bytes,3,rep,name=missing_asset_tags,json=missingAssetTags,proto3" json:"missing_asset_tags,omitempty"` |
| // A list of asset tags whose part number not found in Hart. |
| FailedAssetTags []string `protobuf:"bytes,4,rep,name=failed_asset_tags,json=failedAssetTags,proto3" json:"failed_asset_tags,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AssetInfoResponse) Reset() { *m = AssetInfoResponse{} } |
| func (m *AssetInfoResponse) String() string { return proto.CompactTextString(m) } |
| func (*AssetInfoResponse) ProtoMessage() {} |
| func (*AssetInfoResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_1a7a9f575d08c498, []int{2} |
| } |
| |
| func (m *AssetInfoResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AssetInfoResponse.Unmarshal(m, b) |
| } |
| func (m *AssetInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AssetInfoResponse.Marshal(b, m, deterministic) |
| } |
| func (m *AssetInfoResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AssetInfoResponse.Merge(m, src) |
| } |
| func (m *AssetInfoResponse) XXX_Size() int { |
| return xxx_messageInfo_AssetInfoResponse.Size(m) |
| } |
| func (m *AssetInfoResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_AssetInfoResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AssetInfoResponse proto.InternalMessageInfo |
| |
| func (m *AssetInfoResponse) GetRequestStatus() RequestStatus { |
| if m != nil { |
| return m.RequestStatus |
| } |
| return RequestStatus_OK |
| } |
| |
| func (m *AssetInfoResponse) GetAssets() []*AssetInfo { |
| if m != nil { |
| return m.Assets |
| } |
| return nil |
| } |
| |
| func (m *AssetInfoResponse) GetMissingAssetTags() []string { |
| if m != nil { |
| return m.MissingAssetTags |
| } |
| return nil |
| } |
| |
| func (m *AssetInfoResponse) GetFailedAssetTags() []string { |
| if m != nil { |
| return m.FailedAssetTags |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterEnum("fleet.RequestStatus", RequestStatus_name, RequestStatus_value) |
| proto.RegisterType((*AssetInfo)(nil), "fleet.AssetInfo") |
| proto.RegisterType((*AssetInfoRequest)(nil), "fleet.AssetInfoRequest") |
| proto.RegisterType((*AssetInfoResponse)(nil), "fleet.AssetInfoResponse") |
| } |
| |
| func init() { |
| proto.RegisterFile("assetinfo.proto", fileDescriptor_1a7a9f575d08c498) |
| } |
| |
| var fileDescriptor_1a7a9f575d08c498 = []byte{ |
| // 490 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x92, 0x4f, 0x6f, 0xd3, 0x4c, |
| 0x10, 0xc6, 0xdf, 0xc4, 0x6d, 0xde, 0x7a, 0xda, 0x26, 0xee, 0x92, 0xc3, 0x8a, 0x3f, 0x22, 0x84, |
| 0x03, 0x51, 0x85, 0x12, 0x28, 0x47, 0x4e, 0x6e, 0xb1, 0xa2, 0x08, 0xea, 0x20, 0x3b, 0xea, 0x01, |
| 0x21, 0xad, 0x36, 0xf6, 0xd8, 0xb5, 0xb0, 0xbd, 0x61, 0x77, 0xf3, 0x4d, 0xfb, 0x81, 0x90, 0xc7, |
| 0x49, 0x08, 0xb7, 0x9d, 0xdf, 0xf3, 0xcc, 0xee, 0xe3, 0x19, 0xc3, 0x40, 0x1a, 0x83, 0xb6, 0xa8, |
| 0x33, 0x35, 0xdd, 0x68, 0x65, 0x15, 0x3b, 0xcd, 0x4a, 0x44, 0x3b, 0x7e, 0xea, 0x82, 0xeb, 0x37, |
| 0xd2, 0xa2, 0xce, 0x14, 0x7b, 0x01, 0x2e, 0xf9, 0x84, 0x95, 0x39, 0xef, 0x8c, 0x3a, 0x13, 0x37, |
| 0x3a, 0x23, 0xb0, 0x92, 0x39, 0x7b, 0x0b, 0x97, 0x06, 0x75, 0x21, 0x4b, 0x51, 0x6f, 0xab, 0x35, |
| 0x6a, 0xde, 0x25, 0xc3, 0x45, 0x0b, 0x43, 0x62, 0xec, 0x35, 0x9c, 0x27, 0xca, 0x58, 0x91, 0x60, |
| 0x6d, 0x51, 0x73, 0x87, 0x2c, 0xd0, 0xa0, 0x3b, 0x22, 0x6c, 0x02, 0x5e, 0xae, 0x54, 0x5e, 0xa2, |
| 0x48, 0x54, 0x8a, 0xa2, 0x96, 0x15, 0xf2, 0x13, 0x72, 0xf5, 0x5b, 0x7e, 0xa7, 0x52, 0x0c, 0x65, |
| 0x85, 0x6c, 0x08, 0xa7, 0x95, 0x4a, 0xb1, 0xe4, 0xa7, 0x24, 0xb7, 0x05, 0x7b, 0x03, 0x17, 0xeb, |
| 0x6d, 0x51, 0xa6, 0xc2, 0x4a, 0x9d, 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