Commit 6201ca61 authored by vicotor's avatar vicotor
parents 3aef1ba2 12928477
This diff is collapsed.
syntax = "proto3";
package meta.ring.v1;
option go_package = "ringv1";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "meta/ring/v1/resource.proto";
// The standard List request definition.
message ListShelvesRequest {
// Only retrieve shelves after this time.
google.protobuf.Timestamp after_time = 1;
// Only retrieve shelves before this time.
google.protobuf.Timestamp before_time = 2;
// The start index for pagination.
uint64 start = 3;
// The maximum number of shelves to return.
uint64 max_size = 4;
// The unique id of the parent example for which to list the shelves.
string example_id = 5;
message SendRawTransactionRequest{
bytes data = 1;
}
// The standard List response definition.
message ListShelvesResponse {
// The retrieved list of shelves.
repeated Shelf shelves = 1;
// True if more shelves are available.
bool next = 2;
message SendRawTransactionResponse{
bytes data = 1;
}
// The standard BatchGet request definition.
message BatchGetShelvesRequest {
// The ids of the requested shelves.
repeated string ids = 1;
}
// The standard BatchGet response definition.
message BatchGetShelvesResponse {
// The retrieved shelves.
repeated Shelf shelves = 1;
}
// The standard Get request definition.
message GetShelfRequest {
// The id of the requested shelf.
string id = 1;
}
// The standard Get response definition.
message GetShelfResponse {
// The retrieved shelf.
Shelf shelf = 1;
}
// The standard Create request definition.
message CreateShelfRequest {
// The shelf to create.
Shelf shelf = 1;
// The unique id of the parent example where the shelf is to be created.
string example_id = 2;
}
// The standard Create response definition.
message CreateShelfResponse {
// The created shelf.
Shelf shelf = 1;
message EstimateGasRequest{
bytes from = 1;
bytes to =2;
int64 gas = 3;
bytes gas_price =4;
bytes value =5;
bytes data =6;
}
// The standard Update request definition.
message UpdateShelfRequest {
// The id of the shelf to be updated.
string id = 1;
// The shelf which replaces the shelf on the server.
Shelf shelf = 2;
// The update mask applied to the shelf. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
google.protobuf.FieldMask update_mask = 3;
message EstimateGasResponse{
uint64 gas = 1;
bytes err =2;
}
// The standard Update response definition.
message UpdateShelfResponse {
// The updated shelf.
Shelf shelf = 1;
message CallArgs {
bytes from = 1;
bytes to =2;
int64 gas = 3;
bytes gas_price =4;
bytes value =5;
bytes data =6;
}
// The standard Delete request definition.
message DeleteShelfRequest {
// The id of the shelf to be deleted.
string id = 1;
}
// The standard Delete response definition.
message DeleteShelfResponse {
// The deleted shelf.
Shelf shelf = 1;
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/ring/v1/resource.proto
package ringv1
package meta_ring_v1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
......@@ -21,103 +20,13 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The default Shelf resource representation.
type Shelf struct {
// The unique shelf id.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Indicates when the shelf was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Indicates when the shelf was last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The unique id of the parent example resource.
ExampleId string `protobuf:"bytes,4,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"`
// The display name for the shelf.
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Shelf) Reset() { *m = Shelf{} }
func (m *Shelf) String() string { return proto.CompactTextString(m) }
func (*Shelf) ProtoMessage() {}
func (*Shelf) Descriptor() ([]byte, []int) {
return fileDescriptor_92ae7458bb171b6e, []int{0}
}
func (m *Shelf) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Shelf.Unmarshal(m, b)
}
func (m *Shelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Shelf.Marshal(b, m, deterministic)
}
func (m *Shelf) XXX_Merge(src proto.Message) {
xxx_messageInfo_Shelf.Merge(m, src)
}
func (m *Shelf) XXX_Size() int {
return xxx_messageInfo_Shelf.Size(m)
}
func (m *Shelf) XXX_DiscardUnknown() {
xxx_messageInfo_Shelf.DiscardUnknown(m)
}
var xxx_messageInfo_Shelf proto.InternalMessageInfo
func (m *Shelf) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Shelf) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Shelf) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *Shelf) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
func (m *Shelf) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func init() {
proto.RegisterType((*Shelf)(nil), "meta.ring.v1.Shelf")
}
func init() { proto.RegisterFile("meta/ring/v1/resource.proto", fileDescriptor_92ae7458bb171b6e) }
var fileDescriptor_92ae7458bb171b6e = []byte{
// 226 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0x03, 0x21,
0x18, 0x86, 0xc3, 0x69, 0x1b, 0xfb, 0x5d, 0xe3, 0xc0, 0x44, 0x6a, 0x8c, 0xd5, 0xa9, 0x13, 0xe4,
0x74, 0x74, 0x73, 0x73, 0x71, 0xa8, 0x4e, 0x2e, 0x17, 0x5a, 0xbe, 0x9e, 0x24, 0x50, 0x08, 0xc7,
0x5d, 0xf4, 0x77, 0xfa, 0x87, 0x0c, 0xd0, 0x73, 0xed, 0xfa, 0xbe, 0xcf, 0xf3, 0x42, 0x3e, 0xb8,
0xb1, 0x18, 0xa5, 0x08, 0xfa, 0xd8, 0x89, 0xb1, 0x11, 0x01, 0x7b, 0x37, 0x84, 0x3d, 0x72, 0x1f,
0x5c, 0x74, 0x74, 0x99, 0x4a, 0x9e, 0x4a, 0x3e, 0x36, 0xab, 0xbb, 0xce, 0xb9, 0xce, 0xa0, 0xc8,
0xdd, 0x6e, 0x38, 0x88, 0xa8, 0x2d, 0xf6, 0x51, 0x5a, 0x5f, 0xf0, 0x87, 0x5f, 0x02, 0xb3, 0xf7,
0x2f, 0x34, 0x07, 0x7a, 0x0d, 0x95, 0x56, 0x8c, 0xac, 0xc9, 0x66, 0xb1, 0xad, 0xb4, 0xa2, 0xcf,
0x50, 0xef, 0x03, 0xca, 0x88, 0x6d, 0x72, 0x58, 0xb5, 0x26, 0x9b, 0xfa, 0x71, 0xc5, 0xcb, 0x20,
0x9f, 0x06, 0xf9, 0xc7, 0x34, 0xb8, 0x85, 0x82, 0xa7, 0x20, 0xc9, 0x83, 0x57, 0xff, 0xf2, 0xc5,
0x79, 0xb9, 0xe0, 0x59, 0xbe, 0x05, 0xc0, 0x6f, 0x69, 0xbd, 0xc1, 0x56, 0x2b, 0x76, 0x99, 0x7f,
0xb4, 0x38, 0x25, 0xaf, 0x8a, 0xde, 0xc3, 0x52, 0xe9, 0xde, 0x1b, 0xf9, 0xd3, 0x1e, 0xa5, 0x45,
0x36, 0xcb, 0x40, 0x7d, 0xca, 0xde, 0xa4, 0xc5, 0x97, 0xab, 0xcf, 0x79, 0xba, 0xc0, 0xd8, 0xec,
0xe6, 0xf9, 0xad, 0xa7, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x19, 0xcd, 0x1d, 0x34, 0x01,
0x00, 0x00,
// 68 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xce, 0x4d, 0x2d, 0x49,
0xd4, 0x2f, 0xca, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a,
0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x49, 0xea, 0x81, 0x24, 0xf5, 0xca,
0x0c, 0x93, 0xd8, 0xc0, 0x82, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x39, 0xf7, 0x3e,
0x33, 0x00, 0x00, 0x00,
}
syntax = "proto3";
package meta.ring.v1;
option go_package = "ringv1";
import "google/protobuf/timestamp.proto";
// The default Shelf resource representation.
message Shelf {
// The unique shelf id.
string id = 1;
// Indicates when the shelf was created.
google.protobuf.Timestamp create_time = 2;
// Indicates when the shelf was last updated.
google.protobuf.Timestamp update_time = 3;
// The unique id of the parent example resource.
string example_id = 4;
// The display name for the shelf.
string display_name = 5;
}
This diff is collapsed.
syntax = "proto3";
package meta.ring.v1;
option go_package = "ringv1";
import "meta/ring/v1/request_response.proto";
// ShelfService defines methods for managing shelves.
service ShelfService {
// ListShelves retrieves a list of shelf resources from the server.
rpc ListShelves(ListShelvesRequest) returns (ListShelvesResponse) {}
// BatchGetShelves retrieves multiple shelf resources from the server.
rpc BatchGetShelves(BatchGetShelvesRequest) returns (BatchGetShelvesResponse) {}
// GetShelf retrieves a single shelf resource from the server.
rpc GetShelf(GetShelfRequest) returns (GetShelfResponse) {}
// CreateShelf creates a new shelf resource on the server.
rpc CreateShelf(CreateShelfRequest) returns (CreateShelfResponse) {}
// UpdateShelf updates the shelf resource on the server.
rpc UpdateShelf(UpdateShelfRequest) returns (UpdateShelfResponse) {}
// DeleteShelf deletes the shelf resource from the server.
rpc DeleteShelf(DeleteShelfRequest) returns (DeleteShelfResponse) {}
//service ShelfService {
service EthRpcService{
rpc SendRawTransaction(SendRawTransactionRequest) returns (SendRawTransactionResponse) {}
rpc EstimateGas(EstimateGasRequest) returns (EstimateGasResponse) {}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment