Commit 6201ca61 authored by vicotor's avatar vicotor
parents 3aef1ba2 12928477
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/ring/v1/request_response.proto // source: meta/ring/v1/request_response.proto
package ringv1 package meta_ring_v1
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/gogo/protobuf/proto" proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math" math "math"
) )
...@@ -22,571 +20,290 @@ var _ = math.Inf ...@@ -22,571 +20,290 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The standard List request definition. type SendRawTransactionRequest struct {
type ListShelvesRequest struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// Only retrieve shelves after this time.
AfterTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=after_time,json=afterTime,proto3" json:"after_time,omitempty"`
// Only retrieve shelves before this time.
BeforeTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=before_time,json=beforeTime,proto3" json:"before_time,omitempty"`
// The start index for pagination.
Start uint64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
// The maximum number of shelves to return.
MaxSize uint64 `protobuf:"varint,4,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
// The unique id of the parent example for which to list the shelves.
ExampleId string `protobuf:"bytes,5,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *ListShelvesRequest) Reset() { *m = ListShelvesRequest{} } func (m *SendRawTransactionRequest) Reset() { *m = SendRawTransactionRequest{} }
func (m *ListShelvesRequest) String() string { return proto.CompactTextString(m) } func (m *SendRawTransactionRequest) String() string { return proto.CompactTextString(m) }
func (*ListShelvesRequest) ProtoMessage() {} func (*SendRawTransactionRequest) ProtoMessage() {}
func (*ListShelvesRequest) Descriptor() ([]byte, []int) { func (*SendRawTransactionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{0} return fileDescriptor_5ce663d43ac67a3b, []int{0}
} }
func (m *ListShelvesRequest) XXX_Unmarshal(b []byte) error { func (m *SendRawTransactionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesRequest.Unmarshal(m, b) return xxx_messageInfo_SendRawTransactionRequest.Unmarshal(m, b)
} }
func (m *ListShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SendRawTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesRequest.Marshal(b, m, deterministic) return xxx_messageInfo_SendRawTransactionRequest.Marshal(b, m, deterministic)
} }
func (m *ListShelvesRequest) XXX_Merge(src proto.Message) { func (m *SendRawTransactionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesRequest.Merge(m, src) xxx_messageInfo_SendRawTransactionRequest.Merge(m, src)
} }
func (m *ListShelvesRequest) XXX_Size() int { func (m *SendRawTransactionRequest) XXX_Size() int {
return xxx_messageInfo_ListShelvesRequest.Size(m) return xxx_messageInfo_SendRawTransactionRequest.Size(m)
} }
func (m *ListShelvesRequest) XXX_DiscardUnknown() { func (m *SendRawTransactionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesRequest.DiscardUnknown(m) xxx_messageInfo_SendRawTransactionRequest.DiscardUnknown(m)
} }
var xxx_messageInfo_ListShelvesRequest proto.InternalMessageInfo var xxx_messageInfo_SendRawTransactionRequest proto.InternalMessageInfo
func (m *ListShelvesRequest) GetAfterTime() *timestamp.Timestamp { func (m *SendRawTransactionRequest) GetData() []byte {
if m != nil { if m != nil {
return m.AfterTime return m.Data
} }
return nil return nil
} }
func (m *ListShelvesRequest) GetBeforeTime() *timestamp.Timestamp { type SendRawTransactionResponse struct {
if m != nil { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
return m.BeforeTime
}
return nil
}
func (m *ListShelvesRequest) GetStart() uint64 {
if m != nil {
return m.Start
}
return 0
}
func (m *ListShelvesRequest) GetMaxSize() uint64 {
if m != nil {
return m.MaxSize
}
return 0
}
func (m *ListShelvesRequest) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
// The standard List response definition.
type ListShelvesResponse struct {
// The retrieved list of shelves.
Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"`
// True if more shelves are available.
Next bool `protobuf:"varint,2,opt,name=next,proto3" json:"next,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *ListShelvesResponse) Reset() { *m = ListShelvesResponse{} } func (m *SendRawTransactionResponse) Reset() { *m = SendRawTransactionResponse{} }
func (m *ListShelvesResponse) String() string { return proto.CompactTextString(m) } func (m *SendRawTransactionResponse) String() string { return proto.CompactTextString(m) }
func (*ListShelvesResponse) ProtoMessage() {} func (*SendRawTransactionResponse) ProtoMessage() {}
func (*ListShelvesResponse) Descriptor() ([]byte, []int) { func (*SendRawTransactionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{1} return fileDescriptor_5ce663d43ac67a3b, []int{1}
} }
func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error { func (m *SendRawTransactionResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesResponse.Unmarshal(m, b) return xxx_messageInfo_SendRawTransactionResponse.Unmarshal(m, b)
} }
func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SendRawTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesResponse.Marshal(b, m, deterministic) return xxx_messageInfo_SendRawTransactionResponse.Marshal(b, m, deterministic)
} }
func (m *ListShelvesResponse) XXX_Merge(src proto.Message) { func (m *SendRawTransactionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesResponse.Merge(m, src) xxx_messageInfo_SendRawTransactionResponse.Merge(m, src)
} }
func (m *ListShelvesResponse) XXX_Size() int { func (m *SendRawTransactionResponse) XXX_Size() int {
return xxx_messageInfo_ListShelvesResponse.Size(m) return xxx_messageInfo_SendRawTransactionResponse.Size(m)
} }
func (m *ListShelvesResponse) XXX_DiscardUnknown() { func (m *SendRawTransactionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesResponse.DiscardUnknown(m) xxx_messageInfo_SendRawTransactionResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_ListShelvesResponse proto.InternalMessageInfo var xxx_messageInfo_SendRawTransactionResponse proto.InternalMessageInfo
func (m *ListShelvesResponse) GetShelves() []*Shelf { func (m *SendRawTransactionResponse) GetData() []byte {
if m != nil { if m != nil {
return m.Shelves return m.Data
} }
return nil return nil
} }
func (m *ListShelvesResponse) GetNext() bool { type EstimateGasRequest struct {
if m != nil { From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
return m.Next To []byte `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
} Gas int64 `protobuf:"varint,3,opt,name=gas,proto3" json:"gas,omitempty"`
return false GasPrice []byte `protobuf:"bytes,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
} Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
// The standard BatchGet request definition.
type BatchGetShelvesRequest struct {
// The ids of the requested shelves.
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *BatchGetShelvesRequest) Reset() { *m = BatchGetShelvesRequest{} } func (m *EstimateGasRequest) Reset() { *m = EstimateGasRequest{} }
func (m *BatchGetShelvesRequest) String() string { return proto.CompactTextString(m) } func (m *EstimateGasRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetShelvesRequest) ProtoMessage() {} func (*EstimateGasRequest) ProtoMessage() {}
func (*BatchGetShelvesRequest) Descriptor() ([]byte, []int) { func (*EstimateGasRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{2} return fileDescriptor_5ce663d43ac67a3b, []int{2}
} }
func (m *BatchGetShelvesRequest) XXX_Unmarshal(b []byte) error { func (m *EstimateGasRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetShelvesRequest.Unmarshal(m, b) return xxx_messageInfo_EstimateGasRequest.Unmarshal(m, b)
} }
func (m *BatchGetShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *EstimateGasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetShelvesRequest.Marshal(b, m, deterministic) return xxx_messageInfo_EstimateGasRequest.Marshal(b, m, deterministic)
} }
func (m *BatchGetShelvesRequest) XXX_Merge(src proto.Message) { func (m *EstimateGasRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetShelvesRequest.Merge(m, src) xxx_messageInfo_EstimateGasRequest.Merge(m, src)
} }
func (m *BatchGetShelvesRequest) XXX_Size() int { func (m *EstimateGasRequest) XXX_Size() int {
return xxx_messageInfo_BatchGetShelvesRequest.Size(m) return xxx_messageInfo_EstimateGasRequest.Size(m)
} }
func (m *BatchGetShelvesRequest) XXX_DiscardUnknown() { func (m *EstimateGasRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetShelvesRequest.DiscardUnknown(m) xxx_messageInfo_EstimateGasRequest.DiscardUnknown(m)
} }
var xxx_messageInfo_BatchGetShelvesRequest proto.InternalMessageInfo var xxx_messageInfo_EstimateGasRequest proto.InternalMessageInfo
func (m *BatchGetShelvesRequest) GetIds() []string { func (m *EstimateGasRequest) GetFrom() []byte {
if m != nil { if m != nil {
return m.Ids return m.From
} }
return nil return nil
} }
// The standard BatchGet response definition. func (m *EstimateGasRequest) GetTo() []byte {
type BatchGetShelvesResponse struct {
// The retrieved shelves.
Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetShelvesResponse) Reset() { *m = BatchGetShelvesResponse{} }
func (m *BatchGetShelvesResponse) String() string { return proto.CompactTextString(m) }
func (*BatchGetShelvesResponse) ProtoMessage() {}
func (*BatchGetShelvesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{3}
}
func (m *BatchGetShelvesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetShelvesResponse.Unmarshal(m, b)
}
func (m *BatchGetShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetShelvesResponse.Marshal(b, m, deterministic)
}
func (m *BatchGetShelvesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetShelvesResponse.Merge(m, src)
}
func (m *BatchGetShelvesResponse) XXX_Size() int {
return xxx_messageInfo_BatchGetShelvesResponse.Size(m)
}
func (m *BatchGetShelvesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetShelvesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetShelvesResponse proto.InternalMessageInfo
func (m *BatchGetShelvesResponse) GetShelves() []*Shelf {
if m != nil { if m != nil {
return m.Shelves return m.To
} }
return nil return nil
} }
// The standard Get request definition. func (m *EstimateGasRequest) GetGas() int64 {
type GetShelfRequest struct {
// The id of the requested shelf.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetShelfRequest) Reset() { *m = GetShelfRequest{} }
func (m *GetShelfRequest) String() string { return proto.CompactTextString(m) }
func (*GetShelfRequest) ProtoMessage() {}
func (*GetShelfRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{4}
}
func (m *GetShelfRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetShelfRequest.Unmarshal(m, b)
}
func (m *GetShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetShelfRequest.Marshal(b, m, deterministic)
}
func (m *GetShelfRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetShelfRequest.Merge(m, src)
}
func (m *GetShelfRequest) XXX_Size() int {
return xxx_messageInfo_GetShelfRequest.Size(m)
}
func (m *GetShelfRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetShelfRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetShelfRequest proto.InternalMessageInfo
func (m *GetShelfRequest) GetId() string {
if m != nil { if m != nil {
return m.Id return m.Gas
} }
return "" return 0
} }
// The standard Get response definition. func (m *EstimateGasRequest) GetGasPrice() []byte {
type GetShelfResponse struct { if m != nil {
// The retrieved shelf. return m.GasPrice
Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` }
XXX_NoUnkeyedLiteral struct{} `json:"-"` return nil
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *GetShelfResponse) Reset() { *m = GetShelfResponse{} } func (m *EstimateGasRequest) GetValue() []byte {
func (m *GetShelfResponse) String() string { return proto.CompactTextString(m) } if m != nil {
func (*GetShelfResponse) ProtoMessage() {} return m.Value
func (*GetShelfResponse) Descriptor() ([]byte, []int) { }
return fileDescriptor_5ce663d43ac67a3b, []int{5} return nil
}
func (m *GetShelfResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetShelfResponse.Unmarshal(m, b)
}
func (m *GetShelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetShelfResponse.Marshal(b, m, deterministic)
}
func (m *GetShelfResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetShelfResponse.Merge(m, src)
}
func (m *GetShelfResponse) XXX_Size() int {
return xxx_messageInfo_GetShelfResponse.Size(m)
}
func (m *GetShelfResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetShelfResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_GetShelfResponse proto.InternalMessageInfo func (m *EstimateGasRequest) GetData() []byte {
func (m *GetShelfResponse) GetShelf() *Shelf {
if m != nil { if m != nil {
return m.Shelf return m.Data
} }
return nil return nil
} }
// The standard Create request definition. type EstimateGasResponse struct {
type CreateShelfRequest struct { Gas uint64 `protobuf:"varint,1,opt,name=gas,proto3" json:"gas,omitempty"`
// The shelf to create. Err []byte `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"`
// The unique id of the parent example where the shelf is to be created.
ExampleId string `protobuf:"bytes,2,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *CreateShelfRequest) Reset() { *m = CreateShelfRequest{} } func (m *EstimateGasResponse) Reset() { *m = EstimateGasResponse{} }
func (m *CreateShelfRequest) String() string { return proto.CompactTextString(m) } func (m *EstimateGasResponse) String() string { return proto.CompactTextString(m) }
func (*CreateShelfRequest) ProtoMessage() {} func (*EstimateGasResponse) ProtoMessage() {}
func (*CreateShelfRequest) Descriptor() ([]byte, []int) { func (*EstimateGasResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{6} return fileDescriptor_5ce663d43ac67a3b, []int{3}
} }
func (m *CreateShelfRequest) XXX_Unmarshal(b []byte) error { func (m *EstimateGasResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfRequest.Unmarshal(m, b) return xxx_messageInfo_EstimateGasResponse.Unmarshal(m, b)
} }
func (m *CreateShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *EstimateGasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfRequest.Marshal(b, m, deterministic) return xxx_messageInfo_EstimateGasResponse.Marshal(b, m, deterministic)
} }
func (m *CreateShelfRequest) XXX_Merge(src proto.Message) { func (m *EstimateGasResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfRequest.Merge(m, src) xxx_messageInfo_EstimateGasResponse.Merge(m, src)
} }
func (m *CreateShelfRequest) XXX_Size() int { func (m *EstimateGasResponse) XXX_Size() int {
return xxx_messageInfo_CreateShelfRequest.Size(m) return xxx_messageInfo_EstimateGasResponse.Size(m)
} }
func (m *CreateShelfRequest) XXX_DiscardUnknown() { func (m *EstimateGasResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfRequest.DiscardUnknown(m) xxx_messageInfo_EstimateGasResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_CreateShelfRequest proto.InternalMessageInfo var xxx_messageInfo_EstimateGasResponse proto.InternalMessageInfo
func (m *CreateShelfRequest) GetShelf() *Shelf { func (m *EstimateGasResponse) GetGas() uint64 {
if m != nil { if m != nil {
return m.Shelf return m.Gas
} }
return nil return 0
} }
func (m *CreateShelfRequest) GetExampleId() string { func (m *EstimateGasResponse) GetErr() []byte {
if m != nil { if m != nil {
return m.ExampleId return m.Err
} }
return "" return nil
} }
// The standard Create response definition. type CallArgs struct {
type CreateShelfResponse struct { From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
// The created shelf. To []byte `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` Gas int64 `protobuf:"varint,3,opt,name=gas,proto3" json:"gas,omitempty"`
GasPrice []byte `protobuf:"bytes,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *CreateShelfResponse) Reset() { *m = CreateShelfResponse{} } func (m *CallArgs) Reset() { *m = CallArgs{} }
func (m *CreateShelfResponse) String() string { return proto.CompactTextString(m) } func (m *CallArgs) String() string { return proto.CompactTextString(m) }
func (*CreateShelfResponse) ProtoMessage() {} func (*CallArgs) ProtoMessage() {}
func (*CreateShelfResponse) Descriptor() ([]byte, []int) { func (*CallArgs) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{7} return fileDescriptor_5ce663d43ac67a3b, []int{4}
} }
func (m *CreateShelfResponse) XXX_Unmarshal(b []byte) error { func (m *CallArgs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfResponse.Unmarshal(m, b) return xxx_messageInfo_CallArgs.Unmarshal(m, b)
} }
func (m *CreateShelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CallArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfResponse.Marshal(b, m, deterministic) return xxx_messageInfo_CallArgs.Marshal(b, m, deterministic)
} }
func (m *CreateShelfResponse) XXX_Merge(src proto.Message) { func (m *CallArgs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfResponse.Merge(m, src) xxx_messageInfo_CallArgs.Merge(m, src)
} }
func (m *CreateShelfResponse) XXX_Size() int { func (m *CallArgs) XXX_Size() int {
return xxx_messageInfo_CreateShelfResponse.Size(m) return xxx_messageInfo_CallArgs.Size(m)
} }
func (m *CreateShelfResponse) XXX_DiscardUnknown() { func (m *CallArgs) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfResponse.DiscardUnknown(m) xxx_messageInfo_CallArgs.DiscardUnknown(m)
} }
var xxx_messageInfo_CreateShelfResponse proto.InternalMessageInfo var xxx_messageInfo_CallArgs proto.InternalMessageInfo
func (m *CreateShelfResponse) GetShelf() *Shelf { func (m *CallArgs) GetFrom() []byte {
if m != nil { if m != nil {
return m.Shelf return m.From
} }
return nil return nil
} }
// The standard Update request definition. func (m *CallArgs) GetTo() []byte {
type UpdateShelfRequest struct {
// The id of the shelf to be updated.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The shelf which replaces the shelf on the server.
Shelf *Shelf `protobuf:"bytes,2,opt,name=shelf,proto3" json:"shelf,omitempty"`
// The update mask applied to the shelf. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateShelfRequest) Reset() { *m = UpdateShelfRequest{} }
func (m *UpdateShelfRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateShelfRequest) ProtoMessage() {}
func (*UpdateShelfRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{8}
}
func (m *UpdateShelfRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateShelfRequest.Unmarshal(m, b)
}
func (m *UpdateShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateShelfRequest.Marshal(b, m, deterministic)
}
func (m *UpdateShelfRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateShelfRequest.Merge(m, src)
}
func (m *UpdateShelfRequest) XXX_Size() int {
return xxx_messageInfo_UpdateShelfRequest.Size(m)
}
func (m *UpdateShelfRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateShelfRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateShelfRequest proto.InternalMessageInfo
func (m *UpdateShelfRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *UpdateShelfRequest) GetShelf() *Shelf {
if m != nil { if m != nil {
return m.Shelf return m.To
} }
return nil return nil
} }
func (m *UpdateShelfRequest) GetUpdateMask() *field_mask.FieldMask { func (m *CallArgs) GetGas() int64 {
if m != nil { if m != nil {
return m.UpdateMask return m.Gas
} }
return nil return 0
}
// The standard Update response definition.
type UpdateShelfResponse struct {
// The updated shelf.
Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateShelfResponse) Reset() { *m = UpdateShelfResponse{} }
func (m *UpdateShelfResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateShelfResponse) ProtoMessage() {}
func (*UpdateShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{9}
}
func (m *UpdateShelfResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateShelfResponse.Unmarshal(m, b)
}
func (m *UpdateShelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateShelfResponse.Marshal(b, m, deterministic)
}
func (m *UpdateShelfResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateShelfResponse.Merge(m, src)
}
func (m *UpdateShelfResponse) XXX_Size() int {
return xxx_messageInfo_UpdateShelfResponse.Size(m)
}
func (m *UpdateShelfResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateShelfResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_UpdateShelfResponse proto.InternalMessageInfo func (m *CallArgs) GetGasPrice() []byte {
func (m *UpdateShelfResponse) GetShelf() *Shelf {
if m != nil { if m != nil {
return m.Shelf return m.GasPrice
} }
return nil return nil
} }
// The standard Delete request definition. func (m *CallArgs) GetValue() []byte {
type DeleteShelfRequest struct {
// The id of the shelf to be deleted.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteShelfRequest) Reset() { *m = DeleteShelfRequest{} }
func (m *DeleteShelfRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteShelfRequest) ProtoMessage() {}
func (*DeleteShelfRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{10}
}
func (m *DeleteShelfRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteShelfRequest.Unmarshal(m, b)
}
func (m *DeleteShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteShelfRequest.Marshal(b, m, deterministic)
}
func (m *DeleteShelfRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteShelfRequest.Merge(m, src)
}
func (m *DeleteShelfRequest) XXX_Size() int {
return xxx_messageInfo_DeleteShelfRequest.Size(m)
}
func (m *DeleteShelfRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteShelfRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteShelfRequest proto.InternalMessageInfo
func (m *DeleteShelfRequest) GetId() string {
if m != nil { if m != nil {
return m.Id return m.Value
} }
return "" return nil
}
// The standard Delete response definition.
type DeleteShelfResponse struct {
// The deleted shelf.
Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteShelfResponse) Reset() { *m = DeleteShelfResponse{} }
func (m *DeleteShelfResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteShelfResponse) ProtoMessage() {}
func (*DeleteShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{11}
}
func (m *DeleteShelfResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteShelfResponse.Unmarshal(m, b)
}
func (m *DeleteShelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteShelfResponse.Marshal(b, m, deterministic)
}
func (m *DeleteShelfResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteShelfResponse.Merge(m, src)
}
func (m *DeleteShelfResponse) XXX_Size() int {
return xxx_messageInfo_DeleteShelfResponse.Size(m)
}
func (m *DeleteShelfResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteShelfResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_DeleteShelfResponse proto.InternalMessageInfo func (m *CallArgs) GetData() []byte {
func (m *DeleteShelfResponse) GetShelf() *Shelf {
if m != nil { if m != nil {
return m.Shelf return m.Data
} }
return nil return nil
} }
func init() { func init() {
proto.RegisterType((*ListShelvesRequest)(nil), "meta.ring.v1.ListShelvesRequest") proto.RegisterType((*SendRawTransactionRequest)(nil), "meta.ring.v1.SendRawTransactionRequest")
proto.RegisterType((*ListShelvesResponse)(nil), "meta.ring.v1.ListShelvesResponse") proto.RegisterType((*SendRawTransactionResponse)(nil), "meta.ring.v1.SendRawTransactionResponse")
proto.RegisterType((*BatchGetShelvesRequest)(nil), "meta.ring.v1.BatchGetShelvesRequest") proto.RegisterType((*EstimateGasRequest)(nil), "meta.ring.v1.EstimateGasRequest")
proto.RegisterType((*BatchGetShelvesResponse)(nil), "meta.ring.v1.BatchGetShelvesResponse") proto.RegisterType((*EstimateGasResponse)(nil), "meta.ring.v1.EstimateGasResponse")
proto.RegisterType((*GetShelfRequest)(nil), "meta.ring.v1.GetShelfRequest") proto.RegisterType((*CallArgs)(nil), "meta.ring.v1.CallArgs")
proto.RegisterType((*GetShelfResponse)(nil), "meta.ring.v1.GetShelfResponse")
proto.RegisterType((*CreateShelfRequest)(nil), "meta.ring.v1.CreateShelfRequest")
proto.RegisterType((*CreateShelfResponse)(nil), "meta.ring.v1.CreateShelfResponse")
proto.RegisterType((*UpdateShelfRequest)(nil), "meta.ring.v1.UpdateShelfRequest")
proto.RegisterType((*UpdateShelfResponse)(nil), "meta.ring.v1.UpdateShelfResponse")
proto.RegisterType((*DeleteShelfRequest)(nil), "meta.ring.v1.DeleteShelfRequest")
proto.RegisterType((*DeleteShelfResponse)(nil), "meta.ring.v1.DeleteShelfResponse")
} }
func init() { func init() {
...@@ -594,35 +311,22 @@ func init() { ...@@ -594,35 +311,22 @@ func init() {
} }
var fileDescriptor_5ce663d43ac67a3b = []byte{ var fileDescriptor_5ce663d43ac67a3b = []byte{
// 469 bytes of a gzipped FileDescriptorProto // 261 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xdd, 0x8a, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x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, 0x19, 0xbe,
0x83, 0xdb, 0x7f, 0xb0, 0xff, 0x95, 0x49, 0xf8, 0x00, 0x6e, 0xd4, 0x22, 0x59, 0x63, 0x77, 0x1d,
0x5c, 0x9e, 0x9a, 0x11, 0x79, 0xd4, 0xe5, 0x69, 0xf8, 0x02, 0x0e, 0x2e, 0x91, 0xda, 0xe5, 0x31,
0x0c, 0xb4, 0x42, 0x56, 0x4f, 0xf2, 0x4a, 0x0f, 0x4b, 0x84, 0xdf, 0x80, 0xbc, 0x12, 0xc8, 0x14,
0xb6, 0x4c, 0xfe, 0x5d, 0xa0, 0x33, 0x11, 0xb7, 0x3b, 0x91, 0x97, 0x30, 0x6e, 0xe9, 0xef, 0x9e,
0xe1, 0x0f, 0x07, 0xc8, 0xe7, 0x2a, 0xed, 0xa6, 0xd8, 0xe9, 0xc3, 0xa5, 0xa2, 0xbb, 0x35, 0xe5,
0x23, 0x18, 0xad, 0x8c, 0xa0, 0xf9, 0x57, 0xe6, 0xed, 0x5d, 0xf5, 0x64, 0xdf, 0xe8, 0xaf, 0xf7,
0x91, 0xc9, 0x73, 0x0a, 0x16, 0xd7, 0x6b, 0x5d, 0x50, 0x2b, 0x9b, 0xdd, 0x0b, 0x7a, 0x04, 0xe4,
0x35, 0xe6, 0xf8, 0xf7, 0x7a, 0xb4, 0x4f, 0x8b, 0xda, 0xd9, 0xe7, 0x78, 0xf8, 0x75, 0x4f, 0x9f,
0xaf, 0x67, 0xf3, 0x3d, 0x53, 0xd3, 0xb3, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x6f, 0x7b, 0xd9,
0xbd, 0x91, 0x04, 0x00, 0x00,
} }
syntax = "proto3"; syntax = "proto3";
package meta.ring.v1; 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 SendRawTransactionRequest{
message ListShelvesRequest { bytes data = 1;
// 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;
} }
// The standard List response definition. message SendRawTransactionResponse{
message ListShelvesResponse { bytes data = 1;
// The retrieved list of shelves.
repeated Shelf shelves = 1;
// True if more shelves are available.
bool next = 2;
} }
// 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 EstimateGasRequest{
message CreateShelfResponse { bytes from = 1;
// The created shelf. bytes to =2;
Shelf shelf = 1; int64 gas = 3;
bytes gas_price =4;
bytes value =5;
bytes data =6;
} }
// The standard Update request definition. message EstimateGasResponse{
message UpdateShelfRequest { uint64 gas = 1;
// The id of the shelf to be updated. bytes err =2;
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;
} }
// The standard Update response definition. message CallArgs {
message UpdateShelfResponse { bytes from = 1;
// The updated shelf. bytes to =2;
Shelf shelf = 1; 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. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/ring/v1/resource.proto // source: meta/ring/v1/resource.proto
package ringv1 package meta_ring_v1
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/gogo/protobuf/proto" proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math" math "math"
) )
...@@ -21,103 +20,13 @@ var _ = math.Inf ...@@ -21,103 +20,13 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 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) } func init() { proto.RegisterFile("meta/ring/v1/resource.proto", fileDescriptor_92ae7458bb171b6e) }
var fileDescriptor_92ae7458bb171b6e = []byte{ var fileDescriptor_92ae7458bb171b6e = []byte{
// 226 bytes of a gzipped FileDescriptorProto // 68 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0x03, 0x21, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xce, 0x4d, 0x2d, 0x49,
0x18, 0x86, 0xc3, 0x69, 0x1b, 0xfb, 0x5d, 0xe3, 0xc0, 0x44, 0x6a, 0x8c, 0xd5, 0xa9, 0x13, 0xe4, 0xd4, 0x2f, 0xca, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a,
0x74, 0x74, 0x73, 0x73, 0x71, 0xa8, 0x4e, 0x2e, 0x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, 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,
} }
syntax = "proto3"; syntax = "proto3";
package meta.ring.v1; 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;
}
// Code generated by protoc-gen-gogo. DO NOT EDIT. // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/ring/v1/service.proto // source: meta/ring/v1/service.proto
package ringv1 package meta_ring_v1
import ( import (
context "context" context "context"
...@@ -27,22 +27,18 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package ...@@ -27,22 +27,18 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/ring/v1/service.proto", fileDescriptor_e770cde54344f3d9) } func init() { proto.RegisterFile("meta/ring/v1/service.proto", fileDescriptor_e770cde54344f3d9) }
var fileDescriptor_e770cde54344f3d9 = []byte{ var fileDescriptor_e770cde54344f3d9 = []byte{
// 239 bytes of a gzipped FileDescriptorProto // 173 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0xd2, 0x4f, 0x6b, 0x83, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xca, 0x4d, 0x2d, 0x49,
0x18, 0x06, 0xf0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 0xbd, 0xce, 0x79, 0x02, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
...@@ -53,264 +49,108 @@ var _ grpc.ClientConn ...@@ -53,264 +49,108 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// ShelfServiceClient is the client API for ShelfService service. // EthRpcServiceClient is the client API for EthRpcService service.
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ShelfServiceClient interface { type EthRpcServiceClient interface {
// ListShelves retrieves a list of shelf resources from the server. SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error)
ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error) EstimateGas(ctx context.Context, in *EstimateGasRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error)
// BatchGetShelves retrieves multiple shelf resources from the server.
BatchGetShelves(ctx context.Context, in *BatchGetShelvesRequest, opts ...grpc.CallOption) (*BatchGetShelvesResponse, error)
// GetShelf retrieves a single shelf resource from the server.
GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*GetShelfResponse, error)
// CreateShelf creates a new shelf resource on the server.
CreateShelf(ctx context.Context, in *CreateShelfRequest, opts ...grpc.CallOption) (*CreateShelfResponse, error)
// UpdateShelf updates the shelf resource on the server.
UpdateShelf(ctx context.Context, in *UpdateShelfRequest, opts ...grpc.CallOption) (*UpdateShelfResponse, error)
// DeleteShelf deletes the shelf resource from the server.
DeleteShelf(ctx context.Context, in *DeleteShelfRequest, opts ...grpc.CallOption) (*DeleteShelfResponse, error)
} }
type shelfServiceClient struct { type ethRpcServiceClient struct {
cc *grpc.ClientConn cc *grpc.ClientConn
} }
func NewShelfServiceClient(cc *grpc.ClientConn) ShelfServiceClient { func NewEthRpcServiceClient(cc *grpc.ClientConn) EthRpcServiceClient {
return &shelfServiceClient{cc} return &ethRpcServiceClient{cc}
} }
func (c *shelfServiceClient) ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error) { func (c *ethRpcServiceClient) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) {
out := new(ListShelvesResponse) out := new(SendRawTransactionResponse)
err := c.cc.Invoke(ctx, "/meta.ring.v1.ShelfService/ListShelves", in, out, opts...) err := c.cc.Invoke(ctx, "/meta.ring.v1.EthRpcService/SendRawTransaction", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *shelfServiceClient) BatchGetShelves(ctx context.Context, in *BatchGetShelvesRequest, opts ...grpc.CallOption) (*BatchGetShelvesResponse, error) { func (c *ethRpcServiceClient) EstimateGas(ctx context.Context, in *EstimateGasRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error) {
out := new(BatchGetShelvesResponse) out := new(EstimateGasResponse)
err := c.cc.Invoke(ctx, "/meta.ring.v1.ShelfService/BatchGetShelves", in, out, opts...) err := c.cc.Invoke(ctx, "/meta.ring.v1.EthRpcService/EstimateGas", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *shelfServiceClient) GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*GetShelfResponse, error) { // EthRpcServiceServer is the server API for EthRpcService service.
out := new(GetShelfResponse) type EthRpcServiceServer interface {
err := c.cc.Invoke(ctx, "/meta.ring.v1.ShelfService/GetShelf", in, out, opts...) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error)
if err != nil { EstimateGas(context.Context, *EstimateGasRequest) (*EstimateGasResponse, error)
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) CreateShelf(ctx context.Context, in *CreateShelfRequest, opts ...grpc.CallOption) (*CreateShelfResponse, error) {
out := new(CreateShelfResponse)
err := c.cc.Invoke(ctx, "/meta.ring.v1.ShelfService/CreateShelf", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) UpdateShelf(ctx context.Context, in *UpdateShelfRequest, opts ...grpc.CallOption) (*UpdateShelfResponse, error) {
out := new(UpdateShelfResponse)
err := c.cc.Invoke(ctx, "/meta.ring.v1.ShelfService/UpdateShelf", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) DeleteShelf(ctx context.Context, in *DeleteShelfRequest, opts ...grpc.CallOption) (*DeleteShelfResponse, error) {
out := new(DeleteShelfResponse)
err := c.cc.Invoke(ctx, "/meta.ring.v1.ShelfService/DeleteShelf", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
} }
// ShelfServiceServer is the server API for ShelfService service. // UnimplementedEthRpcServiceServer can be embedded to have forward compatible implementations.
type ShelfServiceServer interface { type UnimplementedEthRpcServiceServer struct {
// ListShelves retrieves a list of shelf resources from the server.
ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error)
// BatchGetShelves retrieves multiple shelf resources from the server.
BatchGetShelves(context.Context, *BatchGetShelvesRequest) (*BatchGetShelvesResponse, error)
// GetShelf retrieves a single shelf resource from the server.
GetShelf(context.Context, *GetShelfRequest) (*GetShelfResponse, error)
// CreateShelf creates a new shelf resource on the server.
CreateShelf(context.Context, *CreateShelfRequest) (*CreateShelfResponse, error)
// UpdateShelf updates the shelf resource on the server.
UpdateShelf(context.Context, *UpdateShelfRequest) (*UpdateShelfResponse, error)
// DeleteShelf deletes the shelf resource from the server.
DeleteShelf(context.Context, *DeleteShelfRequest) (*DeleteShelfResponse, error)
}
// UnimplementedShelfServiceServer can be embedded to have forward compatible implementations.
type UnimplementedShelfServiceServer struct {
}
func (*UnimplementedShelfServiceServer) ListShelves(ctx context.Context, req *ListShelvesRequest) (*ListShelvesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListShelves not implemented")
}
func (*UnimplementedShelfServiceServer) BatchGetShelves(ctx context.Context, req *BatchGetShelvesRequest) (*BatchGetShelvesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchGetShelves not implemented")
}
func (*UnimplementedShelfServiceServer) GetShelf(ctx context.Context, req *GetShelfRequest) (*GetShelfResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetShelf not implemented")
}
func (*UnimplementedShelfServiceServer) CreateShelf(ctx context.Context, req *CreateShelfRequest) (*CreateShelfResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateShelf not implemented")
}
func (*UnimplementedShelfServiceServer) UpdateShelf(ctx context.Context, req *UpdateShelfRequest) (*UpdateShelfResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateShelf not implemented")
}
func (*UnimplementedShelfServiceServer) DeleteShelf(ctx context.Context, req *DeleteShelfRequest) (*DeleteShelfResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteShelf not implemented")
}
func RegisterShelfServiceServer(s *grpc.Server, srv ShelfServiceServer) {
s.RegisterService(&_ShelfService_serviceDesc, srv)
}
func _ShelfService_ListShelves_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListShelvesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).ListShelves(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.ring.v1.ShelfService/ListShelves",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).ListShelves(ctx, req.(*ListShelvesRequest))
}
return interceptor(ctx, in, info, handler)
} }
func _ShelfService_BatchGetShelves_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func (*UnimplementedEthRpcServiceServer) SendRawTransaction(ctx context.Context, req *SendRawTransactionRequest) (*SendRawTransactionResponse, error) {
in := new(BatchGetShelvesRequest) return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented")
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).BatchGetShelves(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.ring.v1.ShelfService/BatchGetShelves",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).BatchGetShelves(ctx, req.(*BatchGetShelvesRequest))
}
return interceptor(ctx, in, info, handler)
} }
func (*UnimplementedEthRpcServiceServer) EstimateGas(ctx context.Context, req *EstimateGasRequest) (*EstimateGasResponse, error) {
func _ShelfService_GetShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { return nil, status.Errorf(codes.Unimplemented, "method EstimateGas not implemented")
in := new(GetShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).GetShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.ring.v1.ShelfService/GetShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).GetShelf(ctx, req.(*GetShelfRequest))
}
return interceptor(ctx, in, info, handler)
} }
func _ShelfService_CreateShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func RegisterEthRpcServiceServer(s *grpc.Server, srv EthRpcServiceServer) {
in := new(CreateShelfRequest) s.RegisterService(&_EthRpcService_serviceDesc, srv)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).CreateShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.ring.v1.ShelfService/CreateShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).CreateShelf(ctx, req.(*CreateShelfRequest))
}
return interceptor(ctx, in, info, handler)
} }
func _ShelfService_UpdateShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _EthRpcService_SendRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateShelfRequest) in := new(SendRawTransactionRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(ShelfServiceServer).UpdateShelf(ctx, in) return srv.(EthRpcServiceServer).SendRawTransaction(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/meta.ring.v1.ShelfService/UpdateShelf", FullMethod: "/meta.ring.v1.EthRpcService/SendRawTransaction",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).UpdateShelf(ctx, req.(*UpdateShelfRequest)) return srv.(EthRpcServiceServer).SendRawTransaction(ctx, req.(*SendRawTransactionRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _ShelfService_DeleteShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _EthRpcService_EstimateGas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteShelfRequest) in := new(EstimateGasRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(ShelfServiceServer).DeleteShelf(ctx, in) return srv.(EthRpcServiceServer).EstimateGas(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/meta.ring.v1.ShelfService/DeleteShelf", FullMethod: "/meta.ring.v1.EthRpcService/EstimateGas",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).DeleteShelf(ctx, req.(*DeleteShelfRequest)) return srv.(EthRpcServiceServer).EstimateGas(ctx, req.(*EstimateGasRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
var _ShelfService_serviceDesc = grpc.ServiceDesc{ var _EthRpcService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.ring.v1.ShelfService", ServiceName: "meta.ring.v1.EthRpcService",
HandlerType: (*ShelfServiceServer)(nil), HandlerType: (*EthRpcServiceServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc.MethodDesc{
{ {
MethodName: "ListShelves", MethodName: "SendRawTransaction",
Handler: _ShelfService_ListShelves_Handler, Handler: _EthRpcService_SendRawTransaction_Handler,
},
{
MethodName: "BatchGetShelves",
Handler: _ShelfService_BatchGetShelves_Handler,
},
{
MethodName: "GetShelf",
Handler: _ShelfService_GetShelf_Handler,
},
{
MethodName: "CreateShelf",
Handler: _ShelfService_CreateShelf_Handler,
},
{
MethodName: "UpdateShelf",
Handler: _ShelfService_UpdateShelf_Handler,
}, },
{ {
MethodName: "DeleteShelf", MethodName: "EstimateGas",
Handler: _ShelfService_DeleteShelf_Handler, Handler: _EthRpcService_EstimateGas_Handler,
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
......
syntax = "proto3"; syntax = "proto3";
package meta.ring.v1; package meta.ring.v1;
option go_package = "ringv1";
import "meta/ring/v1/request_response.proto"; import "meta/ring/v1/request_response.proto";
// ShelfService defines methods for managing shelves. // ShelfService defines methods for managing shelves.
service ShelfService { //service ShelfService {
// ListShelves retrieves a list of shelf resources from the server.
rpc ListShelves(ListShelvesRequest) returns (ListShelvesResponse) {} service EthRpcService{
// BatchGetShelves retrieves multiple shelf resources from the server. rpc SendRawTransaction(SendRawTransactionRequest) returns (SendRawTransactionResponse) {}
rpc BatchGetShelves(BatchGetShelvesRequest) returns (BatchGetShelvesResponse) {} rpc EstimateGas(EstimateGasRequest) returns (EstimateGasResponse) {}
// 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) {}
} }
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