implement simple tui with humans data

This commit is contained in:
talksik
2025-10-27 15:18:32 -07:00
parent 8ed2d701db
commit dd0c83c22c
31 changed files with 11361 additions and 65 deletions
+871
View File
@@ -0,0 +1,871 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.35.1
// protoc v5.28.3
// source: helios/depot/depot.proto
package pbdepot
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Object struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
// Presigned url to download the object
ObjectUrl string `protobuf:"bytes,2,opt,name=object_url,json=objectUrl,proto3" json:"object_url,omitempty"`
// Whether or not this object is publicly accessible.
PublicInternet bool `protobuf:"varint,3,opt,name=public_internet,json=publicInternet,proto3" json:"public_internet,omitempty"`
// Arbitrary name that you can associate with this object.
// NOTE: This will NOT have problems with collisions. The depot system can have as many objects with the same name as desired.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
ContentType string `protobuf:"bytes,5,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
ContentLength int32 `protobuf:"varint,7,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
StorageInformation *Object_StorageInformation `protobuf:"bytes,8,opt,name=storage_information,json=storageInformation,proto3" json:"storage_information,omitempty"`
// Whether or not this object contains content, yet (use to check whether upload urls were used).
ContainsContent bool `protobuf:"varint,9,opt,name=contains_content,json=containsContent,proto3" json:"contains_content,omitempty"`
}
func (x *Object) Reset() {
*x = Object{}
mi := &file_helios_depot_depot_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Object) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Object) ProtoMessage() {}
func (x *Object) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Object.ProtoReflect.Descriptor instead.
func (*Object) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{0}
}
func (x *Object) GetObjectId() string {
if x != nil {
return x.ObjectId
}
return ""
}
func (x *Object) GetObjectUrl() string {
if x != nil {
return x.ObjectUrl
}
return ""
}
func (x *Object) GetPublicInternet() bool {
if x != nil {
return x.PublicInternet
}
return false
}
func (x *Object) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Object) GetContentType() string {
if x != nil {
return x.ContentType
}
return ""
}
func (x *Object) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Object) GetContentLength() int32 {
if x != nil {
return x.ContentLength
}
return 0
}
func (x *Object) GetStorageInformation() *Object_StorageInformation {
if x != nil {
return x.StorageInformation
}
return nil
}
func (x *Object) GetContainsContent() bool {
if x != nil {
return x.ContainsContent
}
return false
}
type GetObjectRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
}
func (x *GetObjectRequest) Reset() {
*x = GetObjectRequest{}
mi := &file_helios_depot_depot_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetObjectRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetObjectRequest) ProtoMessage() {}
func (x *GetObjectRequest) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetObjectRequest.ProtoReflect.Descriptor instead.
func (*GetObjectRequest) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{1}
}
func (x *GetObjectRequest) GetObjectId() string {
if x != nil {
return x.ObjectId
}
return ""
}
type GetObjectResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Object *Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
}
func (x *GetObjectResponse) Reset() {
*x = GetObjectResponse{}
mi := &file_helios_depot_depot_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetObjectResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetObjectResponse) ProtoMessage() {}
func (x *GetObjectResponse) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetObjectResponse.ProtoReflect.Descriptor instead.
func (*GetObjectResponse) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{2}
}
func (x *GetObjectResponse) GetObject() *Object {
if x != nil {
return x.Object
}
return nil
}
type GetObjectsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ObjectIds []string `protobuf:"bytes,1,rep,name=object_ids,json=objectIds,proto3" json:"object_ids,omitempty"`
}
func (x *GetObjectsRequest) Reset() {
*x = GetObjectsRequest{}
mi := &file_helios_depot_depot_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetObjectsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetObjectsRequest) ProtoMessage() {}
func (x *GetObjectsRequest) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetObjectsRequest.ProtoReflect.Descriptor instead.
func (*GetObjectsRequest) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{3}
}
func (x *GetObjectsRequest) GetObjectIds() []string {
if x != nil {
return x.ObjectIds
}
return nil
}
type GetObjectsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
}
func (x *GetObjectsResponse) Reset() {
*x = GetObjectsResponse{}
mi := &file_helios_depot_depot_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetObjectsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetObjectsResponse) ProtoMessage() {}
func (x *GetObjectsResponse) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetObjectsResponse.ProtoReflect.Descriptor instead.
func (*GetObjectsResponse) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{4}
}
func (x *GetObjectsResponse) GetObjects() []*Object {
if x != nil {
return x.Objects
}
return nil
}
type ListObjectsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *ListObjectsRequest) Reset() {
*x = ListObjectsRequest{}
mi := &file_helios_depot_depot_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListObjectsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListObjectsRequest) ProtoMessage() {}
func (x *ListObjectsRequest) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListObjectsRequest.ProtoReflect.Descriptor instead.
func (*ListObjectsRequest) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{5}
}
type ListObjectsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
}
func (x *ListObjectsResponse) Reset() {
*x = ListObjectsResponse{}
mi := &file_helios_depot_depot_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListObjectsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListObjectsResponse) ProtoMessage() {}
func (x *ListObjectsResponse) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListObjectsResponse.ProtoReflect.Descriptor instead.
func (*ListObjectsResponse) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{6}
}
func (x *ListObjectsResponse) GetObjects() []*Object {
if x != nil {
return x.Objects
}
return nil
}
type UploadNewObjectRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required...anything for example: "image.jpg"
// we don't really care about the extension as the object that is stored in the bucket is based on a generated object_id
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required
ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
// Required
ContentLength int64 `protobuf:"varint,3,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
// Required. Whether or not to make this publicly accessible to the internet.
PublicInternet bool `protobuf:"varint,4,opt,name=public_internet,json=publicInternet,proto3" json:"public_internet,omitempty"`
}
func (x *UploadNewObjectRequest) Reset() {
*x = UploadNewObjectRequest{}
mi := &file_helios_depot_depot_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UploadNewObjectRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UploadNewObjectRequest) ProtoMessage() {}
func (x *UploadNewObjectRequest) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UploadNewObjectRequest.ProtoReflect.Descriptor instead.
func (*UploadNewObjectRequest) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{7}
}
func (x *UploadNewObjectRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UploadNewObjectRequest) GetContentType() string {
if x != nil {
return x.ContentType
}
return ""
}
func (x *UploadNewObjectRequest) GetContentLength() int64 {
if x != nil {
return x.ContentLength
}
return 0
}
func (x *UploadNewObjectRequest) GetPublicInternet() bool {
if x != nil {
return x.PublicInternet
}
return false
}
type UploadNewObjectResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
// make a PUT request to this URL
UploadUrl string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`
// headers to include in the PUT request
UploadHeaders map[string]string `protobuf:"bytes,3,rep,name=upload_headers,json=uploadHeaders,proto3" json:"upload_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *UploadNewObjectResponse) Reset() {
*x = UploadNewObjectResponse{}
mi := &file_helios_depot_depot_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UploadNewObjectResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UploadNewObjectResponse) ProtoMessage() {}
func (x *UploadNewObjectResponse) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UploadNewObjectResponse.ProtoReflect.Descriptor instead.
func (*UploadNewObjectResponse) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{8}
}
func (x *UploadNewObjectResponse) GetObjectId() string {
if x != nil {
return x.ObjectId
}
return ""
}
func (x *UploadNewObjectResponse) GetUploadUrl() string {
if x != nil {
return x.UploadUrl
}
return ""
}
func (x *UploadNewObjectResponse) GetUploadHeaders() map[string]string {
if x != nil {
return x.UploadHeaders
}
return nil
}
type DeleteObjectRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
}
func (x *DeleteObjectRequest) Reset() {
*x = DeleteObjectRequest{}
mi := &file_helios_depot_depot_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteObjectRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteObjectRequest) ProtoMessage() {}
func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteObjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteObjectRequest) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{9}
}
func (x *DeleteObjectRequest) GetObjectId() string {
if x != nil {
return x.ObjectId
}
return ""
}
type DeleteObjectResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *DeleteObjectResponse) Reset() {
*x = DeleteObjectResponse{}
mi := &file_helios_depot_depot_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteObjectResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteObjectResponse) ProtoMessage() {}
func (x *DeleteObjectResponse) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteObjectResponse.ProtoReflect.Descriptor instead.
func (*DeleteObjectResponse) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{10}
}
type Object_StorageInformation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
GsUtilUri string `protobuf:"bytes,3,opt,name=gs_util_uri,json=gsUtilUri,proto3" json:"gs_util_uri,omitempty"`
}
func (x *Object_StorageInformation) Reset() {
*x = Object_StorageInformation{}
mi := &file_helios_depot_depot_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Object_StorageInformation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Object_StorageInformation) ProtoMessage() {}
func (x *Object_StorageInformation) ProtoReflect() protoreflect.Message {
mi := &file_helios_depot_depot_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Object_StorageInformation.ProtoReflect.Descriptor instead.
func (*Object_StorageInformation) Descriptor() ([]byte, []int) {
return file_helios_depot_depot_proto_rawDescGZIP(), []int{0, 0}
}
func (x *Object_StorageInformation) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *Object_StorageInformation) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Object_StorageInformation) GetGsUtilUri() string {
if x != nil {
return x.GsUtilUri
}
return ""
}
var File_helios_depot_depot_proto protoreflect.FileDescriptor
var file_helios_depot_depot_proto_rawDesc = []byte{
0x0a, 0x18, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2f, 0x64,
0x65, 0x70, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x68, 0x65, 0x6c, 0x69,
0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x03, 0x0a, 0x06, 0x4f, 0x62,
0x6a, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49,
0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x72, 0x6c,
0x12, 0x27, 0x0a, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72,
0x6e, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69,
0x63, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a,
0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65,
0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x63,
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x07, 0x20,
0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67,
0x74, 0x68, 0x12, 0x58, 0x0a, 0x13, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e,
0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x27, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x4f,
0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66,
0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10,
0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73,
0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x5e, 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x72, 0x61,
0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a,
0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62,
0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x0b, 0x67, 0x73, 0x5f, 0x75, 0x74,
0x69, 0x6c, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x73,
0x55, 0x74, 0x69, 0x6c, 0x55, 0x72, 0x69, 0x22, 0x2f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4f, 0x62,
0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6f,
0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x41, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4f,
0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a,
0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x4f, 0x62, 0x6a,
0x65, 0x63, 0x74, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x32, 0x0a, 0x11, 0x47,
0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x73, 0x22,
0x44, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x6f, 0x62,
0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x62, 0x6a,
0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x45, 0x0a, 0x13, 0x4c,
0x69, 0x73, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70,
0x6f, 0x74, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63,
0x74, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x65, 0x77,
0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f,
0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x70,
0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x18, 0x04,
0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x6e, 0x74, 0x65,
0x72, 0x6e, 0x65, 0x74, 0x22, 0xf8, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e,
0x65, 0x77, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a,
0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x09, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x5f, 0x0a, 0x0e,
0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65,
0x70, 0x6f, 0x74, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x65, 0x77, 0x4f, 0x62, 0x6a,
0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x55, 0x70, 0x6c, 0x6f,
0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d,
0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x40, 0x0a,
0x12, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63,
0x74, 0x49, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a,
0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xe5, 0x02, 0x0a, 0x05,
0x44, 0x65, 0x70, 0x6f, 0x74, 0x12, 0x4e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65,
0x63, 0x74, 0x12, 0x1e, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f,
0x74, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f,
0x74, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65,
0x63, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70,
0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65,
0x70, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x0f, 0x55, 0x70, 0x6c, 0x6f,
0x61, 0x64, 0x4e, 0x65, 0x77, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x68, 0x65,
0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61,
0x64, 0x4e, 0x65, 0x77, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x25, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74,
0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x65, 0x77, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0c, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x68, 0x65, 0x6c,
0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e,
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68, 0x65, 0x6c,
0x69, 0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65, 0x6c,
0x69, 0x6f, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x3b, 0x70, 0x62, 0x64, 0x65, 0x70, 0x6f,
0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_helios_depot_depot_proto_rawDescOnce sync.Once
file_helios_depot_depot_proto_rawDescData = file_helios_depot_depot_proto_rawDesc
)
func file_helios_depot_depot_proto_rawDescGZIP() []byte {
file_helios_depot_depot_proto_rawDescOnce.Do(func() {
file_helios_depot_depot_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_depot_depot_proto_rawDescData)
})
return file_helios_depot_depot_proto_rawDescData
}
var file_helios_depot_depot_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_helios_depot_depot_proto_goTypes = []any{
(*Object)(nil), // 0: helios.depot.Object
(*GetObjectRequest)(nil), // 1: helios.depot.GetObjectRequest
(*GetObjectResponse)(nil), // 2: helios.depot.GetObjectResponse
(*GetObjectsRequest)(nil), // 3: helios.depot.GetObjectsRequest
(*GetObjectsResponse)(nil), // 4: helios.depot.GetObjectsResponse
(*ListObjectsRequest)(nil), // 5: helios.depot.ListObjectsRequest
(*ListObjectsResponse)(nil), // 6: helios.depot.ListObjectsResponse
(*UploadNewObjectRequest)(nil), // 7: helios.depot.UploadNewObjectRequest
(*UploadNewObjectResponse)(nil), // 8: helios.depot.UploadNewObjectResponse
(*DeleteObjectRequest)(nil), // 9: helios.depot.DeleteObjectRequest
(*DeleteObjectResponse)(nil), // 10: helios.depot.DeleteObjectResponse
(*Object_StorageInformation)(nil), // 11: helios.depot.Object.StorageInformation
nil, // 12: helios.depot.UploadNewObjectResponse.UploadHeadersEntry
(*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
}
var file_helios_depot_depot_proto_depIdxs = []int32{
13, // 0: helios.depot.Object.created_at:type_name -> google.protobuf.Timestamp
11, // 1: helios.depot.Object.storage_information:type_name -> helios.depot.Object.StorageInformation
0, // 2: helios.depot.GetObjectResponse.object:type_name -> helios.depot.Object
0, // 3: helios.depot.GetObjectsResponse.objects:type_name -> helios.depot.Object
0, // 4: helios.depot.ListObjectsResponse.objects:type_name -> helios.depot.Object
12, // 5: helios.depot.UploadNewObjectResponse.upload_headers:type_name -> helios.depot.UploadNewObjectResponse.UploadHeadersEntry
1, // 6: helios.depot.Depot.GetObject:input_type -> helios.depot.GetObjectRequest
3, // 7: helios.depot.Depot.GetObjects:input_type -> helios.depot.GetObjectsRequest
7, // 8: helios.depot.Depot.UploadNewObject:input_type -> helios.depot.UploadNewObjectRequest
9, // 9: helios.depot.Depot.DeleteObject:input_type -> helios.depot.DeleteObjectRequest
2, // 10: helios.depot.Depot.GetObject:output_type -> helios.depot.GetObjectResponse
4, // 11: helios.depot.Depot.GetObjects:output_type -> helios.depot.GetObjectsResponse
8, // 12: helios.depot.Depot.UploadNewObject:output_type -> helios.depot.UploadNewObjectResponse
10, // 13: helios.depot.Depot.DeleteObject:output_type -> helios.depot.DeleteObjectResponse
10, // [10:14] is the sub-list for method output_type
6, // [6:10] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_helios_depot_depot_proto_init() }
func file_helios_depot_depot_proto_init() {
if File_helios_depot_depot_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_helios_depot_depot_proto_rawDesc,
NumEnums: 0,
NumMessages: 13,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_helios_depot_depot_proto_goTypes,
DependencyIndexes: file_helios_depot_depot_proto_depIdxs,
MessageInfos: file_helios_depot_depot_proto_msgTypes,
}.Build()
File_helios_depot_depot_proto = out.File
file_helios_depot_depot_proto_rawDesc = nil
file_helios_depot_depot_proto_goTypes = nil
file_helios_depot_depot_proto_depIdxs = nil
}
@@ -0,0 +1,241 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.28.3
// source: helios/depot/depot.proto
package pbdepot
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
Depot_GetObject_FullMethodName = "/helios.depot.Depot/GetObject"
Depot_GetObjects_FullMethodName = "/helios.depot.Depot/GetObjects"
Depot_UploadNewObject_FullMethodName = "/helios.depot.Depot/UploadNewObject"
Depot_DeleteObject_FullMethodName = "/helios.depot.Depot/DeleteObject"
)
// DepotClient is the client API for Depot 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.
//
// Depot stores assets as objects and has other features of handling media.
type DepotClient interface {
// Returns NOT_FOUND if the object does not exist.
GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (*GetObjectResponse, error)
GetObjects(ctx context.Context, in *GetObjectsRequest, opts ...grpc.CallOption) (*GetObjectsResponse, error)
UploadNewObject(ctx context.Context, in *UploadNewObjectRequest, opts ...grpc.CallOption) (*UploadNewObjectResponse, error)
DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...grpc.CallOption) (*DeleteObjectResponse, error)
}
type depotClient struct {
cc grpc.ClientConnInterface
}
func NewDepotClient(cc grpc.ClientConnInterface) DepotClient {
return &depotClient{cc}
}
func (c *depotClient) GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (*GetObjectResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetObjectResponse)
err := c.cc.Invoke(ctx, Depot_GetObject_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depotClient) GetObjects(ctx context.Context, in *GetObjectsRequest, opts ...grpc.CallOption) (*GetObjectsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetObjectsResponse)
err := c.cc.Invoke(ctx, Depot_GetObjects_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depotClient) UploadNewObject(ctx context.Context, in *UploadNewObjectRequest, opts ...grpc.CallOption) (*UploadNewObjectResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(UploadNewObjectResponse)
err := c.cc.Invoke(ctx, Depot_UploadNewObject_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depotClient) DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...grpc.CallOption) (*DeleteObjectResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(DeleteObjectResponse)
err := c.cc.Invoke(ctx, Depot_DeleteObject_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// DepotServer is the server API for Depot service.
// All implementations must embed UnimplementedDepotServer
// for forward compatibility.
//
// Depot stores assets as objects and has other features of handling media.
type DepotServer interface {
// Returns NOT_FOUND if the object does not exist.
GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
GetObjects(context.Context, *GetObjectsRequest) (*GetObjectsResponse, error)
UploadNewObject(context.Context, *UploadNewObjectRequest) (*UploadNewObjectResponse, error)
DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error)
mustEmbedUnimplementedDepotServer()
}
// UnimplementedDepotServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedDepotServer struct{}
func (UnimplementedDepotServer) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetObject not implemented")
}
func (UnimplementedDepotServer) GetObjects(context.Context, *GetObjectsRequest) (*GetObjectsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetObjects not implemented")
}
func (UnimplementedDepotServer) UploadNewObject(context.Context, *UploadNewObjectRequest) (*UploadNewObjectResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UploadNewObject not implemented")
}
func (UnimplementedDepotServer) DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteObject not implemented")
}
func (UnimplementedDepotServer) mustEmbedUnimplementedDepotServer() {}
func (UnimplementedDepotServer) testEmbeddedByValue() {}
// UnsafeDepotServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to DepotServer will
// result in compilation errors.
type UnsafeDepotServer interface {
mustEmbedUnimplementedDepotServer()
}
func RegisterDepotServer(s grpc.ServiceRegistrar, srv DepotServer) {
// If the following call pancis, it indicates UnimplementedDepotServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&Depot_ServiceDesc, srv)
}
func _Depot_GetObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetObjectRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DepotServer).GetObject(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Depot_GetObject_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DepotServer).GetObject(ctx, req.(*GetObjectRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Depot_GetObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetObjectsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DepotServer).GetObjects(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Depot_GetObjects_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DepotServer).GetObjects(ctx, req.(*GetObjectsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Depot_UploadNewObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UploadNewObjectRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DepotServer).UploadNewObject(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Depot_UploadNewObject_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DepotServer).UploadNewObject(ctx, req.(*UploadNewObjectRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Depot_DeleteObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteObjectRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DepotServer).DeleteObject(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Depot_DeleteObject_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DepotServer).DeleteObject(ctx, req.(*DeleteObjectRequest))
}
return interceptor(ctx, in, info, handler)
}
// Depot_ServiceDesc is the grpc.ServiceDesc for Depot service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Depot_ServiceDesc = grpc.ServiceDesc{
ServiceName: "helios.depot.Depot",
HandlerType: (*DepotServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetObject",
Handler: _Depot_GetObject_Handler,
},
{
MethodName: "GetObjects",
Handler: _Depot_GetObjects_Handler,
},
{
MethodName: "UploadNewObject",
Handler: _Depot_UploadNewObject_Handler,
},
{
MethodName: "DeleteObject",
Handler: _Depot_DeleteObject_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "helios/depot/depot.proto",
}