Documentation ¶
Index ¶
- Variables
- func RegisterAssetServiceServer(s grpc.ServiceRegistrar, srv AssetServiceServer)
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)deprecated
- func (x *Asset) GetDescription() string
- func (x *Asset) GetId() string
- func (x *Asset) GetName() string
- func (x *Asset) GetPreviewUrl() string
- func (x *Asset) GetResourceUrl() string
- func (x *Asset) GetType() AssetType
- func (*Asset) ProtoMessage()
- func (x *Asset) ProtoReflect() protoreflect.Message
- func (x *Asset) Reset()
- func (x *Asset) String() string
- type AssetServiceClient
- type AssetServiceServer
- type AssetType
- type AssignAssetLabelRequest
- func (*AssignAssetLabelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignAssetLabelRequest) GetAssetId() string
- func (x *AssignAssetLabelRequest) GetLabel() string
- func (*AssignAssetLabelRequest) ProtoMessage()
- func (x *AssignAssetLabelRequest) ProtoReflect() protoreflect.Message
- func (x *AssignAssetLabelRequest) Reset()
- func (x *AssignAssetLabelRequest) String() string
- type AssignAssetLabelResponse
- type CreateAssetPreviewRequest
- func (*CreateAssetPreviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAssetPreviewRequest) GetAssetId() string
- func (*CreateAssetPreviewRequest) ProtoMessage()
- func (x *CreateAssetPreviewRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAssetPreviewRequest) Reset()
- func (x *CreateAssetPreviewRequest) String() string
- type CreateAssetPreviewResponse
- func (*CreateAssetPreviewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAssetPreviewResponse) GetImageId() string
- func (x *CreateAssetPreviewResponse) GetUploadUrl() string
- func (*CreateAssetPreviewResponse) ProtoMessage()
- func (x *CreateAssetPreviewResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAssetPreviewResponse) Reset()
- func (x *CreateAssetPreviewResponse) String() string
- type CreateAssetRequest
- func (*CreateAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAssetRequest) GetDescription() string
- func (x *CreateAssetRequest) GetName() string
- func (x *CreateAssetRequest) GetUploadId() string
- func (*CreateAssetRequest) ProtoMessage()
- func (x *CreateAssetRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAssetRequest) Reset()
- func (x *CreateAssetRequest) String() string
- type CreateAssetResponse
- func (*CreateAssetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAssetResponse) GetId() string
- func (*CreateAssetResponse) ProtoMessage()
- func (x *CreateAssetResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAssetResponse) Reset()
- func (x *CreateAssetResponse) String() string
- type GetAssetLabelsRequest
- func (*GetAssetLabelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssetLabelsRequest) GetAssetId() string
- func (*GetAssetLabelsRequest) ProtoMessage()
- func (x *GetAssetLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAssetLabelsRequest) Reset()
- func (x *GetAssetLabelsRequest) String() string
- type GetAssetLabelsResponse
- func (*GetAssetLabelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssetLabelsResponse) GetLabels() []string
- func (*GetAssetLabelsResponse) ProtoMessage()
- func (x *GetAssetLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAssetLabelsResponse) Reset()
- func (x *GetAssetLabelsResponse) String() string
- type GetAssetsRequest
- func (*GetAssetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssetsRequest) GetPage() *protobuf.PageInput
- func (x *GetAssetsRequest) GetSearch() string
- func (*GetAssetsRequest) ProtoMessage()
- func (x *GetAssetsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAssetsRequest) Reset()
- func (x *GetAssetsRequest) String() string
- type GetAssetsResponse
- func (*GetAssetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssetsResponse) GetAssets() []*Asset
- func (x *GetAssetsResponse) GetNextPage() *protobuf.PageToken
- func (*GetAssetsResponse) ProtoMessage()
- func (x *GetAssetsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAssetsResponse) Reset()
- func (x *GetAssetsResponse) String() string
- type GetRandomAssetsRequest
- func (*GetRandomAssetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRandomAssetsRequest) GetPage() *protobuf.PageInput
- func (*GetRandomAssetsRequest) ProtoMessage()
- func (x *GetRandomAssetsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRandomAssetsRequest) Reset()
- func (x *GetRandomAssetsRequest) String() string
- type GetRandomAssetsResponse
- func (*GetRandomAssetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRandomAssetsResponse) GetAssets() []*Asset
- func (*GetRandomAssetsResponse) ProtoMessage()
- func (x *GetRandomAssetsResponse) ProtoReflect() protoreflect.Message
- func (x *GetRandomAssetsResponse) Reset()
- func (x *GetRandomAssetsResponse) String() string
- type UnassignAssetLabelRequest
- func (*UnassignAssetLabelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnassignAssetLabelRequest) GetAssetId() string
- func (x *UnassignAssetLabelRequest) GetLabel() string
- func (*UnassignAssetLabelRequest) ProtoMessage()
- func (x *UnassignAssetLabelRequest) ProtoReflect() protoreflect.Message
- func (x *UnassignAssetLabelRequest) Reset()
- func (x *UnassignAssetLabelRequest) String() string
- type UnassignAssetLabelResponse
- type UnimplementedAssetServiceServer
- func (UnimplementedAssetServiceServer) AssignAssetLabel(context.Context, *AssignAssetLabelRequest) (*AssignAssetLabelResponse, error)
- func (UnimplementedAssetServiceServer) CreateAsset(context.Context, *CreateAssetRequest) (*CreateAssetResponse, error)
- func (UnimplementedAssetServiceServer) CreateAssetPreview(context.Context, *CreateAssetPreviewRequest) (*CreateAssetPreviewResponse, error)
- func (UnimplementedAssetServiceServer) GetAssetLabels(context.Context, *GetAssetLabelsRequest) (*GetAssetLabelsResponse, error)
- func (UnimplementedAssetServiceServer) GetAssets(context.Context, *GetAssetsRequest) (*GetAssetsResponse, error)
- func (UnimplementedAssetServiceServer) GetRandomAssets(context.Context, *GetRandomAssetsRequest) (*GetRandomAssetsResponse, error)
- func (UnimplementedAssetServiceServer) UnassignAssetLabel(context.Context, *UnassignAssetLabelRequest) (*UnassignAssetLabelResponse, error)
- func (UnimplementedAssetServiceServer) UpdateAsset(context.Context, *UpdateAssetRequest) (*UpdateAssetResponse, error)
- func (UnimplementedAssetServiceServer) UploadAsset(context.Context, *UploadAssetRequest) (*UploadAssetResponse, error)
- type UnsafeAssetServiceServer
- type UpdateAssetRequest
- func (*UpdateAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAssetRequest) GetDescription() string
- func (x *UpdateAssetRequest) GetId() string
- func (x *UpdateAssetRequest) GetName() string
- func (x *UpdateAssetRequest) GetPreviewId() string
- func (*UpdateAssetRequest) ProtoMessage()
- func (x *UpdateAssetRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAssetRequest) Reset()
- func (x *UpdateAssetRequest) String() string
- type UpdateAssetResponse
- type UploadAssetRequest
- func (*UploadAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadAssetRequest) GetType() AssetType
- func (*UploadAssetRequest) ProtoMessage()
- func (x *UploadAssetRequest) ProtoReflect() protoreflect.Message
- func (x *UploadAssetRequest) Reset()
- func (x *UploadAssetRequest) String() string
- type UploadAssetResponse
- func (*UploadAssetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadAssetResponse) GetId() string
- func (x *UploadAssetResponse) GetUploadUrl() string
- func (*UploadAssetResponse) ProtoMessage()
- func (x *UploadAssetResponse) ProtoReflect() protoreflect.Message
- func (x *UploadAssetResponse) Reset()
- func (x *UploadAssetResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( AssetType_name = map[int32]string{ 0: "ASSET_TYPE_UNSPECIFIED", 1: "ASSET_TYPE_GLB", } AssetType_value = map[string]int32{ "ASSET_TYPE_UNSPECIFIED": 0, "ASSET_TYPE_GLB": 1, } )
Enum value maps for AssetType.
var AssetService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "basket.asset_service.v1.AssetService", HandlerType: (*AssetServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAssets", Handler: _AssetService_GetAssets_Handler, }, { MethodName: "UploadAsset", Handler: _AssetService_UploadAsset_Handler, }, { MethodName: "CreateAsset", Handler: _AssetService_CreateAsset_Handler, }, { MethodName: "UpdateAsset", Handler: _AssetService_UpdateAsset_Handler, }, { MethodName: "GetRandomAssets", Handler: _AssetService_GetRandomAssets_Handler, }, { MethodName: "GetAssetLabels", Handler: _AssetService_GetAssetLabels_Handler, }, { MethodName: "AssignAssetLabel", Handler: _AssetService_AssignAssetLabel_Handler, }, { MethodName: "UnassignAssetLabel", Handler: _AssetService_UnassignAssetLabel_Handler, }, { MethodName: "CreateAssetPreview", Handler: _AssetService_CreateAssetPreview_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "basket/asset-service/v1/asset.proto", }
AssetService_ServiceDesc is the grpc.ServiceDesc for AssetService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_basket_asset_service_v1_asset_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAssetServiceServer ¶
func RegisterAssetServiceServer(s grpc.ServiceRegistrar, srv AssetServiceServer)
Types ¶
type Asset ¶
type Asset struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Type AssetType `protobuf:"varint,4,opt,name=type,proto3,enum=basket.asset_service.v1.AssetType" json:"type,omitempty"` PreviewUrl *string `protobuf:"bytes,5,opt,name=preview_url,json=previewUrl,proto3,oneof" json:"preview_url,omitempty"` ResourceUrl string `protobuf:"bytes,6,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"` // contains filtered or unexported fields }
func (*Asset) Descriptor
deprecated
func (*Asset) GetDescription ¶
func (*Asset) GetPreviewUrl ¶
func (*Asset) GetResourceUrl ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶
func (x *Asset) ProtoReflect() protoreflect.Message
type AssetServiceClient ¶
type AssetServiceClient interface { GetAssets(ctx context.Context, in *GetAssetsRequest, opts ...grpc.CallOption) (*GetAssetsResponse, error) UploadAsset(ctx context.Context, in *UploadAssetRequest, opts ...grpc.CallOption) (*UploadAssetResponse, error) CreateAsset(ctx context.Context, in *CreateAssetRequest, opts ...grpc.CallOption) (*CreateAssetResponse, error) UpdateAsset(ctx context.Context, in *UpdateAssetRequest, opts ...grpc.CallOption) (*UpdateAssetResponse, error) GetRandomAssets(ctx context.Context, in *GetRandomAssetsRequest, opts ...grpc.CallOption) (*GetRandomAssetsResponse, error) GetAssetLabels(ctx context.Context, in *GetAssetLabelsRequest, opts ...grpc.CallOption) (*GetAssetLabelsResponse, error) AssignAssetLabel(ctx context.Context, in *AssignAssetLabelRequest, opts ...grpc.CallOption) (*AssignAssetLabelResponse, error) UnassignAssetLabel(ctx context.Context, in *UnassignAssetLabelRequest, opts ...grpc.CallOption) (*UnassignAssetLabelResponse, error) CreateAssetPreview(ctx context.Context, in *CreateAssetPreviewRequest, opts ...grpc.CallOption) (*CreateAssetPreviewResponse, error) }
AssetServiceClient is the client API for AssetService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAssetServiceClient ¶
func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClient
type AssetServiceServer ¶
type AssetServiceServer interface { GetAssets(context.Context, *GetAssetsRequest) (*GetAssetsResponse, error) UploadAsset(context.Context, *UploadAssetRequest) (*UploadAssetResponse, error) CreateAsset(context.Context, *CreateAssetRequest) (*CreateAssetResponse, error) UpdateAsset(context.Context, *UpdateAssetRequest) (*UpdateAssetResponse, error) GetRandomAssets(context.Context, *GetRandomAssetsRequest) (*GetRandomAssetsResponse, error) GetAssetLabels(context.Context, *GetAssetLabelsRequest) (*GetAssetLabelsResponse, error) AssignAssetLabel(context.Context, *AssignAssetLabelRequest) (*AssignAssetLabelResponse, error) UnassignAssetLabel(context.Context, *UnassignAssetLabelRequest) (*UnassignAssetLabelResponse, error) CreateAssetPreview(context.Context, *CreateAssetPreviewRequest) (*CreateAssetPreviewResponse, error) // contains filtered or unexported methods }
AssetServiceServer is the server API for AssetService service. All implementations must embed UnimplementedAssetServiceServer for forward compatibility
type AssetType ¶
type AssetType int32
func (AssetType) Descriptor ¶
func (AssetType) Descriptor() protoreflect.EnumDescriptor
func (AssetType) EnumDescriptor
deprecated
func (AssetType) Number ¶
func (x AssetType) Number() protoreflect.EnumNumber
func (AssetType) Type ¶
func (AssetType) Type() protoreflect.EnumType
type AssignAssetLabelRequest ¶ added in v0.3.8
type AssignAssetLabelRequest struct { AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*AssignAssetLabelRequest) Descriptor
deprecated
added in
v0.3.8
func (*AssignAssetLabelRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignAssetLabelRequest.ProtoReflect.Descriptor instead.
func (*AssignAssetLabelRequest) GetAssetId ¶ added in v0.3.8
func (x *AssignAssetLabelRequest) GetAssetId() string
func (*AssignAssetLabelRequest) GetLabel ¶ added in v0.3.8
func (x *AssignAssetLabelRequest) GetLabel() string
func (*AssignAssetLabelRequest) ProtoMessage ¶ added in v0.3.8
func (*AssignAssetLabelRequest) ProtoMessage()
func (*AssignAssetLabelRequest) ProtoReflect ¶ added in v0.3.8
func (x *AssignAssetLabelRequest) ProtoReflect() protoreflect.Message
func (*AssignAssetLabelRequest) Reset ¶ added in v0.3.8
func (x *AssignAssetLabelRequest) Reset()
func (*AssignAssetLabelRequest) String ¶ added in v0.3.8
func (x *AssignAssetLabelRequest) String() string
type AssignAssetLabelResponse ¶ added in v0.3.8
type AssignAssetLabelResponse struct {
// contains filtered or unexported fields
}
func (*AssignAssetLabelResponse) Descriptor
deprecated
added in
v0.3.8
func (*AssignAssetLabelResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssignAssetLabelResponse.ProtoReflect.Descriptor instead.
func (*AssignAssetLabelResponse) ProtoMessage ¶ added in v0.3.8
func (*AssignAssetLabelResponse) ProtoMessage()
func (*AssignAssetLabelResponse) ProtoReflect ¶ added in v0.3.8
func (x *AssignAssetLabelResponse) ProtoReflect() protoreflect.Message
func (*AssignAssetLabelResponse) Reset ¶ added in v0.3.8
func (x *AssignAssetLabelResponse) Reset()
func (*AssignAssetLabelResponse) String ¶ added in v0.3.8
func (x *AssignAssetLabelResponse) String() string
type CreateAssetPreviewRequest ¶
type CreateAssetPreviewRequest struct { AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // contains filtered or unexported fields }
func (*CreateAssetPreviewRequest) Descriptor
deprecated
func (*CreateAssetPreviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAssetPreviewRequest.ProtoReflect.Descriptor instead.
func (*CreateAssetPreviewRequest) GetAssetId ¶
func (x *CreateAssetPreviewRequest) GetAssetId() string
func (*CreateAssetPreviewRequest) ProtoMessage ¶
func (*CreateAssetPreviewRequest) ProtoMessage()
func (*CreateAssetPreviewRequest) ProtoReflect ¶
func (x *CreateAssetPreviewRequest) ProtoReflect() protoreflect.Message
func (*CreateAssetPreviewRequest) Reset ¶
func (x *CreateAssetPreviewRequest) Reset()
func (*CreateAssetPreviewRequest) String ¶
func (x *CreateAssetPreviewRequest) String() string
type CreateAssetPreviewResponse ¶
type CreateAssetPreviewResponse struct { ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` UploadUrl string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"` // contains filtered or unexported fields }
func (*CreateAssetPreviewResponse) Descriptor
deprecated
func (*CreateAssetPreviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAssetPreviewResponse.ProtoReflect.Descriptor instead.
func (*CreateAssetPreviewResponse) GetImageId ¶
func (x *CreateAssetPreviewResponse) GetImageId() string
func (*CreateAssetPreviewResponse) GetUploadUrl ¶
func (x *CreateAssetPreviewResponse) GetUploadUrl() string
func (*CreateAssetPreviewResponse) ProtoMessage ¶
func (*CreateAssetPreviewResponse) ProtoMessage()
func (*CreateAssetPreviewResponse) ProtoReflect ¶
func (x *CreateAssetPreviewResponse) ProtoReflect() protoreflect.Message
func (*CreateAssetPreviewResponse) Reset ¶
func (x *CreateAssetPreviewResponse) Reset()
func (*CreateAssetPreviewResponse) String ¶
func (x *CreateAssetPreviewResponse) String() string
type CreateAssetRequest ¶
type CreateAssetRequest struct { // Use UploadAsset to get upload_id. UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateAssetRequest) Descriptor
deprecated
func (*CreateAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAssetRequest.ProtoReflect.Descriptor instead.
func (*CreateAssetRequest) GetDescription ¶
func (x *CreateAssetRequest) GetDescription() string
func (*CreateAssetRequest) GetName ¶
func (x *CreateAssetRequest) GetName() string
func (*CreateAssetRequest) GetUploadId ¶
func (x *CreateAssetRequest) GetUploadId() string
func (*CreateAssetRequest) ProtoMessage ¶
func (*CreateAssetRequest) ProtoMessage()
func (*CreateAssetRequest) ProtoReflect ¶
func (x *CreateAssetRequest) ProtoReflect() protoreflect.Message
func (*CreateAssetRequest) Reset ¶
func (x *CreateAssetRequest) Reset()
func (*CreateAssetRequest) String ¶
func (x *CreateAssetRequest) String() string
type CreateAssetResponse ¶
type CreateAssetResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateAssetResponse) Descriptor
deprecated
func (*CreateAssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAssetResponse.ProtoReflect.Descriptor instead.
func (*CreateAssetResponse) GetId ¶
func (x *CreateAssetResponse) GetId() string
func (*CreateAssetResponse) ProtoMessage ¶
func (*CreateAssetResponse) ProtoMessage()
func (*CreateAssetResponse) ProtoReflect ¶
func (x *CreateAssetResponse) ProtoReflect() protoreflect.Message
func (*CreateAssetResponse) Reset ¶
func (x *CreateAssetResponse) Reset()
func (*CreateAssetResponse) String ¶
func (x *CreateAssetResponse) String() string
type GetAssetLabelsRequest ¶ added in v0.3.8
type GetAssetLabelsRequest struct { AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // contains filtered or unexported fields }
func (*GetAssetLabelsRequest) Descriptor
deprecated
added in
v0.3.8
func (*GetAssetLabelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssetLabelsRequest.ProtoReflect.Descriptor instead.
func (*GetAssetLabelsRequest) GetAssetId ¶ added in v0.3.8
func (x *GetAssetLabelsRequest) GetAssetId() string
func (*GetAssetLabelsRequest) ProtoMessage ¶ added in v0.3.8
func (*GetAssetLabelsRequest) ProtoMessage()
func (*GetAssetLabelsRequest) ProtoReflect ¶ added in v0.3.8
func (x *GetAssetLabelsRequest) ProtoReflect() protoreflect.Message
func (*GetAssetLabelsRequest) Reset ¶ added in v0.3.8
func (x *GetAssetLabelsRequest) Reset()
func (*GetAssetLabelsRequest) String ¶ added in v0.3.8
func (x *GetAssetLabelsRequest) String() string
type GetAssetLabelsResponse ¶ added in v0.3.8
type GetAssetLabelsResponse struct { Labels []string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // contains filtered or unexported fields }
func (*GetAssetLabelsResponse) Descriptor
deprecated
added in
v0.3.8
func (*GetAssetLabelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAssetLabelsResponse.ProtoReflect.Descriptor instead.
func (*GetAssetLabelsResponse) GetLabels ¶ added in v0.3.8
func (x *GetAssetLabelsResponse) GetLabels() []string
func (*GetAssetLabelsResponse) ProtoMessage ¶ added in v0.3.8
func (*GetAssetLabelsResponse) ProtoMessage()
func (*GetAssetLabelsResponse) ProtoReflect ¶ added in v0.3.8
func (x *GetAssetLabelsResponse) ProtoReflect() protoreflect.Message
func (*GetAssetLabelsResponse) Reset ¶ added in v0.3.8
func (x *GetAssetLabelsResponse) Reset()
func (*GetAssetLabelsResponse) String ¶ added in v0.3.8
func (x *GetAssetLabelsResponse) String() string
type GetAssetsRequest ¶
type GetAssetsRequest struct { Search *string `protobuf:"bytes,1,opt,name=search,proto3,oneof" json:"search,omitempty"` Page *protobuf.PageInput `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*GetAssetsRequest) Descriptor
deprecated
func (*GetAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssetsRequest.ProtoReflect.Descriptor instead.
func (*GetAssetsRequest) GetPage ¶ added in v0.3.8
func (x *GetAssetsRequest) GetPage() *protobuf.PageInput
func (*GetAssetsRequest) GetSearch ¶ added in v0.3.6
func (x *GetAssetsRequest) GetSearch() string
func (*GetAssetsRequest) ProtoMessage ¶
func (*GetAssetsRequest) ProtoMessage()
func (*GetAssetsRequest) ProtoReflect ¶
func (x *GetAssetsRequest) ProtoReflect() protoreflect.Message
func (*GetAssetsRequest) Reset ¶
func (x *GetAssetsRequest) Reset()
func (*GetAssetsRequest) String ¶
func (x *GetAssetsRequest) String() string
type GetAssetsResponse ¶
type GetAssetsResponse struct { Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` NextPage *protobuf.PageToken `protobuf:"bytes,2,opt,name=next_page,json=nextPage,proto3" json:"next_page,omitempty"` // contains filtered or unexported fields }
func (*GetAssetsResponse) Descriptor
deprecated
func (*GetAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAssetsResponse.ProtoReflect.Descriptor instead.
func (*GetAssetsResponse) GetAssets ¶
func (x *GetAssetsResponse) GetAssets() []*Asset
func (*GetAssetsResponse) GetNextPage ¶ added in v0.3.8
func (x *GetAssetsResponse) GetNextPage() *protobuf.PageToken
func (*GetAssetsResponse) ProtoMessage ¶
func (*GetAssetsResponse) ProtoMessage()
func (*GetAssetsResponse) ProtoReflect ¶
func (x *GetAssetsResponse) ProtoReflect() protoreflect.Message
func (*GetAssetsResponse) Reset ¶
func (x *GetAssetsResponse) Reset()
func (*GetAssetsResponse) String ¶
func (x *GetAssetsResponse) String() string
type GetRandomAssetsRequest ¶ added in v0.3.13
type GetRandomAssetsRequest struct { Page *protobuf.PageInput `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*GetRandomAssetsRequest) Descriptor
deprecated
added in
v0.3.13
func (*GetRandomAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRandomAssetsRequest.ProtoReflect.Descriptor instead.
func (*GetRandomAssetsRequest) GetPage ¶ added in v0.3.13
func (x *GetRandomAssetsRequest) GetPage() *protobuf.PageInput
func (*GetRandomAssetsRequest) ProtoMessage ¶ added in v0.3.13
func (*GetRandomAssetsRequest) ProtoMessage()
func (*GetRandomAssetsRequest) ProtoReflect ¶ added in v0.3.13
func (x *GetRandomAssetsRequest) ProtoReflect() protoreflect.Message
func (*GetRandomAssetsRequest) Reset ¶ added in v0.3.13
func (x *GetRandomAssetsRequest) Reset()
func (*GetRandomAssetsRequest) String ¶ added in v0.3.13
func (x *GetRandomAssetsRequest) String() string
type GetRandomAssetsResponse ¶ added in v0.3.13
type GetRandomAssetsResponse struct { Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // contains filtered or unexported fields }
func (*GetRandomAssetsResponse) Descriptor
deprecated
added in
v0.3.13
func (*GetRandomAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRandomAssetsResponse.ProtoReflect.Descriptor instead.
func (*GetRandomAssetsResponse) GetAssets ¶ added in v0.3.13
func (x *GetRandomAssetsResponse) GetAssets() []*Asset
func (*GetRandomAssetsResponse) ProtoMessage ¶ added in v0.3.13
func (*GetRandomAssetsResponse) ProtoMessage()
func (*GetRandomAssetsResponse) ProtoReflect ¶ added in v0.3.13
func (x *GetRandomAssetsResponse) ProtoReflect() protoreflect.Message
func (*GetRandomAssetsResponse) Reset ¶ added in v0.3.13
func (x *GetRandomAssetsResponse) Reset()
func (*GetRandomAssetsResponse) String ¶ added in v0.3.13
func (x *GetRandomAssetsResponse) String() string
type UnassignAssetLabelRequest ¶ added in v0.3.8
type UnassignAssetLabelRequest struct { AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*UnassignAssetLabelRequest) Descriptor
deprecated
added in
v0.3.8
func (*UnassignAssetLabelRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnassignAssetLabelRequest.ProtoReflect.Descriptor instead.
func (*UnassignAssetLabelRequest) GetAssetId ¶ added in v0.3.8
func (x *UnassignAssetLabelRequest) GetAssetId() string
func (*UnassignAssetLabelRequest) GetLabel ¶ added in v0.3.8
func (x *UnassignAssetLabelRequest) GetLabel() string
func (*UnassignAssetLabelRequest) ProtoMessage ¶ added in v0.3.8
func (*UnassignAssetLabelRequest) ProtoMessage()
func (*UnassignAssetLabelRequest) ProtoReflect ¶ added in v0.3.8
func (x *UnassignAssetLabelRequest) ProtoReflect() protoreflect.Message
func (*UnassignAssetLabelRequest) Reset ¶ added in v0.3.8
func (x *UnassignAssetLabelRequest) Reset()
func (*UnassignAssetLabelRequest) String ¶ added in v0.3.8
func (x *UnassignAssetLabelRequest) String() string
type UnassignAssetLabelResponse ¶ added in v0.3.8
type UnassignAssetLabelResponse struct {
// contains filtered or unexported fields
}
func (*UnassignAssetLabelResponse) Descriptor
deprecated
added in
v0.3.8
func (*UnassignAssetLabelResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnassignAssetLabelResponse.ProtoReflect.Descriptor instead.
func (*UnassignAssetLabelResponse) ProtoMessage ¶ added in v0.3.8
func (*UnassignAssetLabelResponse) ProtoMessage()
func (*UnassignAssetLabelResponse) ProtoReflect ¶ added in v0.3.8
func (x *UnassignAssetLabelResponse) ProtoReflect() protoreflect.Message
func (*UnassignAssetLabelResponse) Reset ¶ added in v0.3.8
func (x *UnassignAssetLabelResponse) Reset()
func (*UnassignAssetLabelResponse) String ¶ added in v0.3.8
func (x *UnassignAssetLabelResponse) String() string
type UnimplementedAssetServiceServer ¶
type UnimplementedAssetServiceServer struct { }
UnimplementedAssetServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAssetServiceServer) AssignAssetLabel ¶ added in v0.3.8
func (UnimplementedAssetServiceServer) AssignAssetLabel(context.Context, *AssignAssetLabelRequest) (*AssignAssetLabelResponse, error)
func (UnimplementedAssetServiceServer) CreateAsset ¶
func (UnimplementedAssetServiceServer) CreateAsset(context.Context, *CreateAssetRequest) (*CreateAssetResponse, error)
func (UnimplementedAssetServiceServer) CreateAssetPreview ¶
func (UnimplementedAssetServiceServer) CreateAssetPreview(context.Context, *CreateAssetPreviewRequest) (*CreateAssetPreviewResponse, error)
func (UnimplementedAssetServiceServer) GetAssetLabels ¶ added in v0.3.8
func (UnimplementedAssetServiceServer) GetAssetLabels(context.Context, *GetAssetLabelsRequest) (*GetAssetLabelsResponse, error)
func (UnimplementedAssetServiceServer) GetAssets ¶
func (UnimplementedAssetServiceServer) GetAssets(context.Context, *GetAssetsRequest) (*GetAssetsResponse, error)
func (UnimplementedAssetServiceServer) GetRandomAssets ¶ added in v0.3.13
func (UnimplementedAssetServiceServer) GetRandomAssets(context.Context, *GetRandomAssetsRequest) (*GetRandomAssetsResponse, error)
func (UnimplementedAssetServiceServer) UnassignAssetLabel ¶ added in v0.3.8
func (UnimplementedAssetServiceServer) UnassignAssetLabel(context.Context, *UnassignAssetLabelRequest) (*UnassignAssetLabelResponse, error)
func (UnimplementedAssetServiceServer) UpdateAsset ¶
func (UnimplementedAssetServiceServer) UpdateAsset(context.Context, *UpdateAssetRequest) (*UpdateAssetResponse, error)
func (UnimplementedAssetServiceServer) UploadAsset ¶
func (UnimplementedAssetServiceServer) UploadAsset(context.Context, *UploadAssetRequest) (*UploadAssetResponse, error)
type UnsafeAssetServiceServer ¶
type UnsafeAssetServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAssetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssetServiceServer will result in compilation errors.
type UpdateAssetRequest ¶
type UpdateAssetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` PreviewId *string `protobuf:"bytes,4,opt,name=preview_id,json=previewId,proto3,oneof" json:"preview_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateAssetRequest) Descriptor
deprecated
func (*UpdateAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAssetRequest.ProtoReflect.Descriptor instead.
func (*UpdateAssetRequest) GetDescription ¶
func (x *UpdateAssetRequest) GetDescription() string
func (*UpdateAssetRequest) GetId ¶
func (x *UpdateAssetRequest) GetId() string
func (*UpdateAssetRequest) GetName ¶
func (x *UpdateAssetRequest) GetName() string
func (*UpdateAssetRequest) GetPreviewId ¶
func (x *UpdateAssetRequest) GetPreviewId() string
func (*UpdateAssetRequest) ProtoMessage ¶
func (*UpdateAssetRequest) ProtoMessage()
func (*UpdateAssetRequest) ProtoReflect ¶
func (x *UpdateAssetRequest) ProtoReflect() protoreflect.Message
func (*UpdateAssetRequest) Reset ¶
func (x *UpdateAssetRequest) Reset()
func (*UpdateAssetRequest) String ¶
func (x *UpdateAssetRequest) String() string
type UpdateAssetResponse ¶
type UpdateAssetResponse struct {
// contains filtered or unexported fields
}
func (*UpdateAssetResponse) Descriptor
deprecated
func (*UpdateAssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAssetResponse.ProtoReflect.Descriptor instead.
func (*UpdateAssetResponse) ProtoMessage ¶
func (*UpdateAssetResponse) ProtoMessage()
func (*UpdateAssetResponse) ProtoReflect ¶
func (x *UpdateAssetResponse) ProtoReflect() protoreflect.Message
func (*UpdateAssetResponse) Reset ¶
func (x *UpdateAssetResponse) Reset()
func (*UpdateAssetResponse) String ¶
func (x *UpdateAssetResponse) String() string
type UploadAssetRequest ¶
type UploadAssetRequest struct { Type AssetType `protobuf:"varint,1,opt,name=type,proto3,enum=basket.asset_service.v1.AssetType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*UploadAssetRequest) Descriptor
deprecated
func (*UploadAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadAssetRequest.ProtoReflect.Descriptor instead.
func (*UploadAssetRequest) GetType ¶
func (x *UploadAssetRequest) GetType() AssetType
func (*UploadAssetRequest) ProtoMessage ¶
func (*UploadAssetRequest) ProtoMessage()
func (*UploadAssetRequest) ProtoReflect ¶
func (x *UploadAssetRequest) ProtoReflect() protoreflect.Message
func (*UploadAssetRequest) Reset ¶
func (x *UploadAssetRequest) Reset()
func (*UploadAssetRequest) String ¶
func (x *UploadAssetRequest) String() string
type UploadAssetResponse ¶
type UploadAssetResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UploadUrl string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"` // contains filtered or unexported fields }
func (*UploadAssetResponse) Descriptor
deprecated
func (*UploadAssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadAssetResponse.ProtoReflect.Descriptor instead.
func (*UploadAssetResponse) GetId ¶
func (x *UploadAssetResponse) GetId() string
func (*UploadAssetResponse) GetUploadUrl ¶
func (x *UploadAssetResponse) GetUploadUrl() string
func (*UploadAssetResponse) ProtoMessage ¶
func (*UploadAssetResponse) ProtoMessage()
func (*UploadAssetResponse) ProtoReflect ¶
func (x *UploadAssetResponse) ProtoReflect() protoreflect.Message
func (*UploadAssetResponse) Reset ¶
func (x *UploadAssetResponse) Reset()
func (*UploadAssetResponse) String ¶
func (x *UploadAssetResponse) String() string