Documentation ¶
Index ¶
- Variables
- type FileUploadRequest
- func (*FileUploadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FileUploadRequest) GetContent() []byte
- func (x *FileUploadRequest) GetName() string
- func (*FileUploadRequest) ProtoMessage()
- func (x *FileUploadRequest) ProtoReflect() protoreflect.Message
- func (x *FileUploadRequest) Reset()
- func (x *FileUploadRequest) String() string
- func (this *FileUploadRequest) Validate() error
- type FileUploadResponse
- func (*FileUploadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FileUploadResponse) GetMsg() string
- func (x *FileUploadResponse) GetStatus() FileUploadResponse_Status
- func (*FileUploadResponse) ProtoMessage()
- func (x *FileUploadResponse) ProtoReflect() protoreflect.Message
- func (x *FileUploadResponse) Reset()
- func (x *FileUploadResponse) String() string
- func (this *FileUploadResponse) Validate() error
- type FileUploadResponse_Status
- func (FileUploadResponse_Status) Descriptor() protoreflect.EnumDescriptor
- func (x FileUploadResponse_Status) Enum() *FileUploadResponse_Status
- func (FileUploadResponse_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x FileUploadResponse_Status) Number() protoreflect.EnumNumber
- func (x FileUploadResponse_Status) String() string
- func (FileUploadResponse_Status) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FileUploadResponse_Status_name = map[int32]string{ 0: "CREATED", 1: "UPDATED", } FileUploadResponse_Status_value = map[string]int32{ "CREATED": 0, "UPDATED": 1, } )
Enum value maps for FileUploadResponse_Status.
View Source
var File_dictybase_api_upload_file_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FileUploadRequest ¶
type FileUploadRequest struct { // name of the file Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // content of the file, expected to be streamed in chunk Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
FileUploadRequest defines requests parameters for uploading a file through protocol buffer. The file is expected to be uploaded grpc client side streaming
func (*FileUploadRequest) Descriptor
deprecated
func (*FileUploadRequest) Descriptor() ([]byte, []int)
Deprecated: Use FileUploadRequest.ProtoReflect.Descriptor instead.
func (*FileUploadRequest) GetContent ¶
func (x *FileUploadRequest) GetContent() []byte
func (*FileUploadRequest) GetName ¶
func (x *FileUploadRequest) GetName() string
func (*FileUploadRequest) ProtoMessage ¶
func (*FileUploadRequest) ProtoMessage()
func (*FileUploadRequest) ProtoReflect ¶
func (x *FileUploadRequest) ProtoReflect() protoreflect.Message
func (*FileUploadRequest) Reset ¶
func (x *FileUploadRequest) Reset()
func (*FileUploadRequest) String ¶
func (x *FileUploadRequest) String() string
func (*FileUploadRequest) Validate ¶
func (this *FileUploadRequest) Validate() error
type FileUploadResponse ¶
type FileUploadResponse struct { // Status gives the status after file upload Status FileUploadResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=dictybase.api.upload.FileUploadResponse_Status" json:"status,omitempty"` // message send by the server after file upload Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
FileUploadResponse defines response received after completion of file upload
func (*FileUploadResponse) Descriptor
deprecated
func (*FileUploadResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileUploadResponse.ProtoReflect.Descriptor instead.
func (*FileUploadResponse) GetMsg ¶
func (x *FileUploadResponse) GetMsg() string
func (*FileUploadResponse) GetStatus ¶
func (x *FileUploadResponse) GetStatus() FileUploadResponse_Status
func (*FileUploadResponse) ProtoMessage ¶
func (*FileUploadResponse) ProtoMessage()
func (*FileUploadResponse) ProtoReflect ¶
func (x *FileUploadResponse) ProtoReflect() protoreflect.Message
func (*FileUploadResponse) Reset ¶
func (x *FileUploadResponse) Reset()
func (*FileUploadResponse) String ¶
func (x *FileUploadResponse) String() string
func (*FileUploadResponse) Validate ¶
func (this *FileUploadResponse) Validate() error
type FileUploadResponse_Status ¶
type FileUploadResponse_Status int32
const ( // a new file FileUploadResponse_CREATED FileUploadResponse_Status = 0 // an existing file FileUploadResponse_UPDATED FileUploadResponse_Status = 1 )
func (FileUploadResponse_Status) Descriptor ¶
func (FileUploadResponse_Status) Descriptor() protoreflect.EnumDescriptor
func (FileUploadResponse_Status) Enum ¶
func (x FileUploadResponse_Status) Enum() *FileUploadResponse_Status
func (FileUploadResponse_Status) EnumDescriptor
deprecated
func (FileUploadResponse_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use FileUploadResponse_Status.Descriptor instead.
func (FileUploadResponse_Status) Number ¶
func (x FileUploadResponse_Status) Number() protoreflect.EnumNumber
func (FileUploadResponse_Status) String ¶
func (x FileUploadResponse_Status) String() string
func (FileUploadResponse_Status) Type ¶
func (FileUploadResponse_Status) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.