You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create / Update method have two versions: one for metadata and one for uploads
what role does gRPC streaming play here?
Singletons play a role when size matters, say a standard method GetFile() has a corresponding GetFileData(), perhaps even streaming?
Perhaps something along the lines of:
// Manages file operations.serviceFileService {
// Creates a new file.rpcCreateFile(CreateFileRequest) returns (File);
// Gets a file.rpcGetFile(GetFileRequest) returns (File);
// Updates a file.rpcUpdateFile(UpdateFileRequest) returns (File);
// Deletes a file.rpcDeleteFile(DeleteFileRequest) returns (google.protobuf.Empty);
// Lists files.rpcListFiles(ListFilesRequest) returns (ListFilesResponse);
// Gets file data.rpcGetFileData(GetFileDataRequest) returns (streamFileData);
// Uploads file data using client-side streaming.rpcUploadFileData(streamUploadFileDataRequest) returns (UploadFileDataResponse);
}
// Response message for FileService.GetFileData.messageFileData {
// A chunk of the file data.bytesdata=1;
}
// Request message for FileService.UploadFileData.messageUploadFileDataRequest {
// The resource name of the file to upload data to.// Format: files/{file}stringname=1;
// A chunk of the file data.bytesdata=2;
}
// Response message for FileService.UploadFileData.messageUploadFileDataResponse {
// The size of the file in bytes after the upload.int64size_bytes=1;
}
Would be nice to have an AIP guidance for how to handle resources that involve file input / output. Examples:
The text was updated successfully, but these errors were encountered: