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 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 GetAssetsRequest
- type GetAssetsResponse
- type UnimplementedAssetServiceServer
- func (UnimplementedAssetServiceServer) CreateAsset(context.Context, *CreateAssetRequest) (*CreateAssetResponse, error)
- func (UnimplementedAssetServiceServer) CreateAssetPreview(context.Context, *CreateAssetPreviewRequest) (*CreateAssetPreviewResponse, error)
- func (UnimplementedAssetServiceServer) GetAssets(context.Context, *GetAssetsRequest) (*GetAssetsResponse, 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: "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) 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) 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 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 GetAssetsRequest ¶
type GetAssetsRequest struct { NameStartsWith *string `protobuf:"bytes,1,opt,name=name_starts_with,json=nameStartsWith,proto3,oneof" json:"name_starts_with,omitempty"` // contains filtered or unexported fields }
func (*GetAssetsRequest) Descriptor
deprecated
func (*GetAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssetsRequest.ProtoReflect.Descriptor instead.
func (*GetAssetsRequest) GetNameStartsWith ¶
func (x *GetAssetsRequest) GetNameStartsWith() 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"` // 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) 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 UnimplementedAssetServiceServer ¶
type UnimplementedAssetServiceServer struct { }
UnimplementedAssetServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAssetServiceServer) CreateAsset ¶
func (UnimplementedAssetServiceServer) CreateAsset(context.Context, *CreateAssetRequest) (*CreateAssetResponse, error)
func (UnimplementedAssetServiceServer) CreateAssetPreview ¶
func (UnimplementedAssetServiceServer) CreateAssetPreview(context.Context, *CreateAssetPreviewRequest) (*CreateAssetPreviewResponse, error)
func (UnimplementedAssetServiceServer) GetAssets ¶
func (UnimplementedAssetServiceServer) GetAssets(context.Context, *GetAssetsRequest) (*GetAssetsResponse, 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