Documentation ¶
Overview ¶
Package v1 is a generated protocol buffer package.
It is generated from these files:
happyco/manage/asset/v1/asset.proto
It has these top-level messages:
Asset Unit Property ListAssetsRequest ListAssetsResponse CreateAssetsRequest CreateAssetsResponse UpdateAssetsRequest UpdateAssetsResponse SetAssetsArchivedRequest SetAssetsArchivedResponse
Index ¶
- func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer)
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)
- func (m *Asset) GetAddressLine_1() string
- func (m *Asset) GetAddressLine_2() string
- func (m *Asset) GetArchived() bool
- func (m *Asset) GetCity() string
- func (m *Asset) GetCountry() string
- func (m *Asset) GetId() *happyco_type_v1.IntegrationID
- func (m *Asset) GetPostalCode() string
- func (m *Asset) GetProperty() *Property
- func (m *Asset) GetState() string
- func (m *Asset) GetType() isAsset_Type
- func (m *Asset) GetUnit() *Unit
- func (*Asset) ProtoMessage()
- func (m *Asset) Reset()
- func (m *Asset) String() string
- func (*Asset) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type AssetServiceClient
- type AssetServiceServer
- type Asset_Property
- type Asset_Unit
- type CreateAssetsRequest
- func (*CreateAssetsRequest) Descriptor() ([]byte, []int)
- func (m *CreateAssetsRequest) GetAccountId() *happyco_type_v1.IntegrationID
- func (m *CreateAssetsRequest) GetAssets() []*Asset
- func (m *CreateAssetsRequest) GetFolderId() *happyco_type_v1.IntegrationID
- func (*CreateAssetsRequest) ProtoMessage()
- func (m *CreateAssetsRequest) Reset()
- func (m *CreateAssetsRequest) String() string
- type CreateAssetsResponse
- type ListAssetsRequest
- func (*ListAssetsRequest) Descriptor() ([]byte, []int)
- func (m *ListAssetsRequest) GetAccountId() *happyco_type_v1.IntegrationID
- func (m *ListAssetsRequest) GetAssetIds() []*happyco_type_v1.IntegrationID
- func (m *ListAssetsRequest) GetFolderId() *happyco_type_v1.IntegrationID
- func (m *ListAssetsRequest) GetIncludeArchived() bool
- func (m *ListAssetsRequest) GetPaging() *happyco_type_v11.Paging
- func (*ListAssetsRequest) ProtoMessage()
- func (m *ListAssetsRequest) Reset()
- func (m *ListAssetsRequest) String() string
- type ListAssetsResponse
- func (*ListAssetsResponse) Descriptor() ([]byte, []int)
- func (m *ListAssetsResponse) GetAssets() []*Asset
- func (m *ListAssetsResponse) GetPaging() *happyco_type_v11.PagingResponse
- func (*ListAssetsResponse) ProtoMessage()
- func (m *ListAssetsResponse) Reset()
- func (m *ListAssetsResponse) String() string
- type Property
- type SetAssetsArchivedRequest
- func (*SetAssetsArchivedRequest) Descriptor() ([]byte, []int)
- func (m *SetAssetsArchivedRequest) GetAccountId() *happyco_type_v1.IntegrationID
- func (m *SetAssetsArchivedRequest) GetAssetIds() []*happyco_type_v1.IntegrationID
- func (m *SetAssetsArchivedRequest) GetFolderId() *happyco_type_v1.IntegrationID
- func (*SetAssetsArchivedRequest) ProtoMessage()
- func (m *SetAssetsArchivedRequest) Reset()
- func (m *SetAssetsArchivedRequest) String() string
- type SetAssetsArchivedResponse
- type Unit
- type UpdateAssetsRequest
- func (*UpdateAssetsRequest) Descriptor() ([]byte, []int)
- func (m *UpdateAssetsRequest) GetAccountId() *happyco_type_v1.IntegrationID
- func (m *UpdateAssetsRequest) GetAssets() []*Asset
- func (m *UpdateAssetsRequest) GetFolderId() *happyco_type_v1.IntegrationID
- func (*UpdateAssetsRequest) ProtoMessage()
- func (m *UpdateAssetsRequest) Reset()
- func (m *UpdateAssetsRequest) String() string
- type UpdateAssetsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAssetServiceServer ¶
func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer)
Types ¶
type Asset ¶
type Asset struct { Id *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Archived bool `protobuf:"varint,2,opt,name=archived" json:"archived,omitempty"` AddressLine_1 string `protobuf:"bytes,3,opt,name=address_line_1,json=addressLine1" json:"address_line_1,omitempty"` AddressLine_2 string `protobuf:"bytes,4,opt,name=address_line_2,json=addressLine2" json:"address_line_2,omitempty"` City string `protobuf:"bytes,5,opt,name=city" json:"city,omitempty"` State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` PostalCode string `protobuf:"bytes,7,opt,name=postal_code,json=postalCode" json:"postal_code,omitempty"` Country string `protobuf:"bytes,8,opt,name=country" json:"country,omitempty"` // Types that are valid to be assigned to Type: // *Asset_Unit // *Asset_Property Type isAsset_Type `protobuf_oneof:"type"` }
func (*Asset) Descriptor ¶
func (*Asset) GetAddressLine_1 ¶
func (*Asset) GetAddressLine_2 ¶
func (*Asset) GetArchived ¶
func (*Asset) GetCountry ¶
func (*Asset) GetId ¶
func (m *Asset) GetId() *happyco_type_v1.IntegrationID
func (*Asset) GetPostalCode ¶
func (*Asset) GetProperty ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
type AssetServiceClient ¶
type AssetServiceClient interface { ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error) CreateAssets(ctx context.Context, in *CreateAssetsRequest, opts ...grpc.CallOption) (*CreateAssetsResponse, error) UpdateAssets(ctx context.Context, in *UpdateAssetsRequest, opts ...grpc.CallOption) (*UpdateAssetsResponse, error) ArchiveAssets(ctx context.Context, in *SetAssetsArchivedRequest, opts ...grpc.CallOption) (*SetAssetsArchivedResponse, error) UnarchiveAssets(ctx context.Context, in *SetAssetsArchivedRequest, opts ...grpc.CallOption) (*SetAssetsArchivedResponse, error) }
func NewAssetServiceClient ¶
func NewAssetServiceClient(cc *grpc.ClientConn) AssetServiceClient
type AssetServiceServer ¶
type AssetServiceServer interface { ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error) CreateAssets(context.Context, *CreateAssetsRequest) (*CreateAssetsResponse, error) UpdateAssets(context.Context, *UpdateAssetsRequest) (*UpdateAssetsResponse, error) ArchiveAssets(context.Context, *SetAssetsArchivedRequest) (*SetAssetsArchivedResponse, error) UnarchiveAssets(context.Context, *SetAssetsArchivedRequest) (*SetAssetsArchivedResponse, error) }
type Asset_Property ¶
type Asset_Property struct {
Property *Property `protobuf:"bytes,10,opt,name=property,oneof"`
}
type Asset_Unit ¶
type Asset_Unit struct {
Unit *Unit `protobuf:"bytes,9,opt,name=unit,oneof"`
}
type CreateAssetsRequest ¶
type CreateAssetsRequest struct { AccountId *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"` FolderId *happyco_type_v1.IntegrationID `protobuf:"bytes,2,opt,name=folder_id,json=folderId" json:"folder_id,omitempty"` Assets []*Asset `protobuf:"bytes,3,rep,name=assets" json:"assets,omitempty"` }
func (*CreateAssetsRequest) Descriptor ¶
func (*CreateAssetsRequest) Descriptor() ([]byte, []int)
func (*CreateAssetsRequest) GetAccountId ¶
func (m *CreateAssetsRequest) GetAccountId() *happyco_type_v1.IntegrationID
func (*CreateAssetsRequest) GetAssets ¶
func (m *CreateAssetsRequest) GetAssets() []*Asset
func (*CreateAssetsRequest) GetFolderId ¶
func (m *CreateAssetsRequest) GetFolderId() *happyco_type_v1.IntegrationID
func (*CreateAssetsRequest) ProtoMessage ¶
func (*CreateAssetsRequest) ProtoMessage()
func (*CreateAssetsRequest) Reset ¶
func (m *CreateAssetsRequest) Reset()
func (*CreateAssetsRequest) String ¶
func (m *CreateAssetsRequest) String() string
type CreateAssetsResponse ¶
type CreateAssetsResponse struct {
AssetIds []*happyco_type_v1.IntegrationID `protobuf:"bytes,1,rep,name=asset_ids,json=assetIds" json:"asset_ids,omitempty"`
}
func (*CreateAssetsResponse) Descriptor ¶
func (*CreateAssetsResponse) Descriptor() ([]byte, []int)
func (*CreateAssetsResponse) GetAssetIds ¶
func (m *CreateAssetsResponse) GetAssetIds() []*happyco_type_v1.IntegrationID
func (*CreateAssetsResponse) ProtoMessage ¶
func (*CreateAssetsResponse) ProtoMessage()
func (*CreateAssetsResponse) Reset ¶
func (m *CreateAssetsResponse) Reset()
func (*CreateAssetsResponse) String ¶
func (m *CreateAssetsResponse) String() string
type ListAssetsRequest ¶
type ListAssetsRequest struct { AccountId *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"` FolderId *happyco_type_v1.IntegrationID `protobuf:"bytes,2,opt,name=folder_id,json=folderId" json:"folder_id,omitempty"` AssetIds []*happyco_type_v1.IntegrationID `protobuf:"bytes,3,rep,name=asset_ids,json=assetIds" json:"asset_ids,omitempty"` IncludeArchived bool `protobuf:"varint,4,opt,name=include_archived,json=includeArchived" json:"include_archived,omitempty"` Paging *happyco_type_v11.Paging `protobuf:"bytes,5,opt,name=paging" json:"paging,omitempty"` }
func (*ListAssetsRequest) Descriptor ¶
func (*ListAssetsRequest) Descriptor() ([]byte, []int)
func (*ListAssetsRequest) GetAccountId ¶
func (m *ListAssetsRequest) GetAccountId() *happyco_type_v1.IntegrationID
func (*ListAssetsRequest) GetAssetIds ¶
func (m *ListAssetsRequest) GetAssetIds() []*happyco_type_v1.IntegrationID
func (*ListAssetsRequest) GetFolderId ¶
func (m *ListAssetsRequest) GetFolderId() *happyco_type_v1.IntegrationID
func (*ListAssetsRequest) GetIncludeArchived ¶
func (m *ListAssetsRequest) GetIncludeArchived() bool
func (*ListAssetsRequest) GetPaging ¶
func (m *ListAssetsRequest) GetPaging() *happyco_type_v11.Paging
func (*ListAssetsRequest) ProtoMessage ¶
func (*ListAssetsRequest) ProtoMessage()
func (*ListAssetsRequest) Reset ¶
func (m *ListAssetsRequest) Reset()
func (*ListAssetsRequest) String ¶
func (m *ListAssetsRequest) String() string
type ListAssetsResponse ¶
type ListAssetsResponse struct { Assets []*Asset `protobuf:"bytes,1,rep,name=assets" json:"assets,omitempty"` Paging *happyco_type_v11.PagingResponse `protobuf:"bytes,2,opt,name=paging" json:"paging,omitempty"` }
func (*ListAssetsResponse) Descriptor ¶
func (*ListAssetsResponse) Descriptor() ([]byte, []int)
func (*ListAssetsResponse) GetAssets ¶
func (m *ListAssetsResponse) GetAssets() []*Asset
func (*ListAssetsResponse) GetPaging ¶
func (m *ListAssetsResponse) GetPaging() *happyco_type_v11.PagingResponse
func (*ListAssetsResponse) ProtoMessage ¶
func (*ListAssetsResponse) ProtoMessage()
func (*ListAssetsResponse) Reset ¶
func (m *ListAssetsResponse) Reset()
func (*ListAssetsResponse) String ¶
func (m *ListAssetsResponse) String() string
type Property ¶
type Property struct {
KeyNumber string `protobuf:"bytes,1,opt,name=key_number,json=keyNumber" json:"key_number,omitempty"`
}
func (*Property) Descriptor ¶
func (*Property) GetKeyNumber ¶
func (*Property) ProtoMessage ¶
func (*Property) ProtoMessage()
type SetAssetsArchivedRequest ¶
type SetAssetsArchivedRequest struct { AccountId *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"` FolderId *happyco_type_v1.IntegrationID `protobuf:"bytes,2,opt,name=folder_id,json=folderId" json:"folder_id,omitempty"` AssetIds []*happyco_type_v1.IntegrationID `protobuf:"bytes,3,rep,name=asset_ids,json=assetIds" json:"asset_ids,omitempty"` }
func (*SetAssetsArchivedRequest) Descriptor ¶
func (*SetAssetsArchivedRequest) Descriptor() ([]byte, []int)
func (*SetAssetsArchivedRequest) GetAccountId ¶
func (m *SetAssetsArchivedRequest) GetAccountId() *happyco_type_v1.IntegrationID
func (*SetAssetsArchivedRequest) GetAssetIds ¶
func (m *SetAssetsArchivedRequest) GetAssetIds() []*happyco_type_v1.IntegrationID
func (*SetAssetsArchivedRequest) GetFolderId ¶
func (m *SetAssetsArchivedRequest) GetFolderId() *happyco_type_v1.IntegrationID
func (*SetAssetsArchivedRequest) ProtoMessage ¶
func (*SetAssetsArchivedRequest) ProtoMessage()
func (*SetAssetsArchivedRequest) Reset ¶
func (m *SetAssetsArchivedRequest) Reset()
func (*SetAssetsArchivedRequest) String ¶
func (m *SetAssetsArchivedRequest) String() string
type SetAssetsArchivedResponse ¶
type SetAssetsArchivedResponse struct { }
func (*SetAssetsArchivedResponse) Descriptor ¶
func (*SetAssetsArchivedResponse) Descriptor() ([]byte, []int)
func (*SetAssetsArchivedResponse) ProtoMessage ¶
func (*SetAssetsArchivedResponse) ProtoMessage()
func (*SetAssetsArchivedResponse) Reset ¶
func (m *SetAssetsArchivedResponse) Reset()
func (*SetAssetsArchivedResponse) String ¶
func (m *SetAssetsArchivedResponse) String() string
type Unit ¶
type Unit struct { Building string `protobuf:"bytes,1,opt,name=building" json:"building,omitempty"` FloorPlan string `protobuf:"bytes,2,opt,name=floor_plan,json=floorPlan" json:"floor_plan,omitempty"` }
func (*Unit) Descriptor ¶
func (*Unit) GetBuilding ¶
func (*Unit) GetFloorPlan ¶
func (*Unit) ProtoMessage ¶
func (*Unit) ProtoMessage()
type UpdateAssetsRequest ¶
type UpdateAssetsRequest struct { AccountId *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"` FolderId *happyco_type_v1.IntegrationID `protobuf:"bytes,2,opt,name=folder_id,json=folderId" json:"folder_id,omitempty"` Assets []*Asset `protobuf:"bytes,3,rep,name=assets" json:"assets,omitempty"` }
func (*UpdateAssetsRequest) Descriptor ¶
func (*UpdateAssetsRequest) Descriptor() ([]byte, []int)
func (*UpdateAssetsRequest) GetAccountId ¶
func (m *UpdateAssetsRequest) GetAccountId() *happyco_type_v1.IntegrationID
func (*UpdateAssetsRequest) GetAssets ¶
func (m *UpdateAssetsRequest) GetAssets() []*Asset
func (*UpdateAssetsRequest) GetFolderId ¶
func (m *UpdateAssetsRequest) GetFolderId() *happyco_type_v1.IntegrationID
func (*UpdateAssetsRequest) ProtoMessage ¶
func (*UpdateAssetsRequest) ProtoMessage()
func (*UpdateAssetsRequest) Reset ¶
func (m *UpdateAssetsRequest) Reset()
func (*UpdateAssetsRequest) String ¶
func (m *UpdateAssetsRequest) String() string
type UpdateAssetsResponse ¶
type UpdateAssetsResponse struct { }
func (*UpdateAssetsResponse) Descriptor ¶
func (*UpdateAssetsResponse) Descriptor() ([]byte, []int)
func (*UpdateAssetsResponse) ProtoMessage ¶
func (*UpdateAssetsResponse) ProtoMessage()
func (*UpdateAssetsResponse) Reset ¶
func (m *UpdateAssetsResponse) Reset()
func (*UpdateAssetsResponse) String ¶
func (m *UpdateAssetsResponse) String() string
Click to show internal directories.
Click to hide internal directories.