Commit e4392844 authored by vicotor's avatar vicotor

add sentry service interface.

parent 79393410
.idea .idea
.vscode .vscode
protocol protocol
.go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/base/v1/request_response.proto
package basev1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The standard List request definition.
type ListShelvesRequest struct {
// 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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListShelvesRequest) Reset() { *m = ListShelvesRequest{} }
func (m *ListShelvesRequest) String() string { return proto.CompactTextString(m) }
func (*ListShelvesRequest) ProtoMessage() {}
func (*ListShelvesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b8e6116e9deff5a9, []int{0}
}
func (m *ListShelvesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesRequest.Unmarshal(m, b)
}
func (m *ListShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesRequest.Marshal(b, m, deterministic)
}
func (m *ListShelvesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesRequest.Merge(m, src)
}
func (m *ListShelvesRequest) XXX_Size() int {
return xxx_messageInfo_ListShelvesRequest.Size(m)
}
func (m *ListShelvesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListShelvesRequest proto.InternalMessageInfo
func (m *ListShelvesRequest) GetAfterTime() *timestamp.Timestamp {
if m != nil {
return m.AfterTime
}
return nil
}
func (m *ListShelvesRequest) GetBeforeTime() *timestamp.Timestamp {
if m != nil {
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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListShelvesResponse) Reset() { *m = ListShelvesResponse{} }
func (m *ListShelvesResponse) String() string { return proto.CompactTextString(m) }
func (*ListShelvesResponse) ProtoMessage() {}
func (*ListShelvesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b8e6116e9deff5a9, []int{1}
}
func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesResponse.Unmarshal(m, b)
}
func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesResponse.Marshal(b, m, deterministic)
}
func (m *ListShelvesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesResponse.Merge(m, src)
}
func (m *ListShelvesResponse) XXX_Size() int {
return xxx_messageInfo_ListShelvesResponse.Size(m)
}
func (m *ListShelvesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListShelvesResponse proto.InternalMessageInfo
func (m *ListShelvesResponse) GetShelves() []*Shelf {
if m != nil {
return m.Shelves
}
return nil
}
func (m *ListShelvesResponse) GetNext() bool {
if m != nil {
return m.Next
}
return false
}
// 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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetShelvesRequest) Reset() { *m = BatchGetShelvesRequest{} }
func (m *BatchGetShelvesRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetShelvesRequest) ProtoMessage() {}
func (*BatchGetShelvesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b8e6116e9deff5a9, []int{2}
}
func (m *BatchGetShelvesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetShelvesRequest.Unmarshal(m, b)
}
func (m *BatchGetShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetShelvesRequest.Marshal(b, m, deterministic)
}
func (m *BatchGetShelvesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetShelvesRequest.Merge(m, src)
}
func (m *BatchGetShelvesRequest) XXX_Size() int {
return xxx_messageInfo_BatchGetShelvesRequest.Size(m)
}
func (m *BatchGetShelvesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetShelvesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetShelvesRequest proto.InternalMessageInfo
func (m *BatchGetShelvesRequest) GetIds() []string {
if m != nil {
return m.Ids
}
return nil
}
// The standard BatchGet response definition.
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_b8e6116e9deff5a9, []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 {
return m.Shelves
}
return nil
}
// The standard Get request definition.
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_b8e6116e9deff5a9, []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 {
return m.Id
}
return ""
}
// The standard Get response definition.
type GetShelfResponse struct {
// The retrieved 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 *GetShelfResponse) Reset() { *m = GetShelfResponse{} }
func (m *GetShelfResponse) String() string { return proto.CompactTextString(m) }
func (*GetShelfResponse) ProtoMessage() {}
func (*GetShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b8e6116e9deff5a9, []int{5}
}
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 *GetShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Create request definition.
type CreateShelfRequest struct {
// The shelf to create.
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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateShelfRequest) Reset() { *m = CreateShelfRequest{} }
func (m *CreateShelfRequest) String() string { return proto.CompactTextString(m) }
func (*CreateShelfRequest) ProtoMessage() {}
func (*CreateShelfRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b8e6116e9deff5a9, []int{6}
}
func (m *CreateShelfRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfRequest.Unmarshal(m, b)
}
func (m *CreateShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfRequest.Marshal(b, m, deterministic)
}
func (m *CreateShelfRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfRequest.Merge(m, src)
}
func (m *CreateShelfRequest) XXX_Size() int {
return xxx_messageInfo_CreateShelfRequest.Size(m)
}
func (m *CreateShelfRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateShelfRequest proto.InternalMessageInfo
func (m *CreateShelfRequest) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
func (m *CreateShelfRequest) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
// The standard Create response definition.
type CreateShelfResponse struct {
// The created 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 *CreateShelfResponse) Reset() { *m = CreateShelfResponse{} }
func (m *CreateShelfResponse) String() string { return proto.CompactTextString(m) }
func (*CreateShelfResponse) ProtoMessage() {}
func (*CreateShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b8e6116e9deff5a9, []int{7}
}
func (m *CreateShelfResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfResponse.Unmarshal(m, b)
}
func (m *CreateShelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfResponse.Marshal(b, m, deterministic)
}
func (m *CreateShelfResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfResponse.Merge(m, src)
}
func (m *CreateShelfResponse) XXX_Size() int {
return xxx_messageInfo_CreateShelfResponse.Size(m)
}
func (m *CreateShelfResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateShelfResponse proto.InternalMessageInfo
func (m *CreateShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Update request definition.
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_b8e6116e9deff5a9, []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 {
return m.Shelf
}
return nil
}
func (m *UpdateShelfRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// 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_b8e6116e9deff5a9, []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 *UpdateShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Delete request definition.
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_b8e6116e9deff5a9, []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 {
return m.Id
}
return ""
}
// 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_b8e6116e9deff5a9, []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 *DeleteShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
func init() {
proto.RegisterType((*ListShelvesRequest)(nil), "meta.base.v1.ListShelvesRequest")
proto.RegisterType((*ListShelvesResponse)(nil), "meta.base.v1.ListShelvesResponse")
proto.RegisterType((*BatchGetShelvesRequest)(nil), "meta.base.v1.BatchGetShelvesRequest")
proto.RegisterType((*BatchGetShelvesResponse)(nil), "meta.base.v1.BatchGetShelvesResponse")
proto.RegisterType((*GetShelfRequest)(nil), "meta.base.v1.GetShelfRequest")
proto.RegisterType((*GetShelfResponse)(nil), "meta.base.v1.GetShelfResponse")
proto.RegisterType((*CreateShelfRequest)(nil), "meta.base.v1.CreateShelfRequest")
proto.RegisterType((*CreateShelfResponse)(nil), "meta.base.v1.CreateShelfResponse")
proto.RegisterType((*UpdateShelfRequest)(nil), "meta.base.v1.UpdateShelfRequest")
proto.RegisterType((*UpdateShelfResponse)(nil), "meta.base.v1.UpdateShelfResponse")
proto.RegisterType((*DeleteShelfRequest)(nil), "meta.base.v1.DeleteShelfRequest")
proto.RegisterType((*DeleteShelfResponse)(nil), "meta.base.v1.DeleteShelfResponse")
}
func init() {
proto.RegisterFile("meta/base/v1/request_response.proto", fileDescriptor_b8e6116e9deff5a9)
}
var fileDescriptor_b8e6116e9deff5a9 = []byte{
// 469 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xdd, 0x6e, 0xd3, 0x30,
0x14, 0xc7, 0x95, 0xb4, 0xdd, 0x9a, 0x53, 0x04, 0x93, 0x8b, 0x20, 0x14, 0x21, 0x42, 0xe0, 0xa2,
0x20, 0xe1, 0xa8, 0xe3, 0x0a, 0x4d, 0x48, 0x68, 0x20, 0x3e, 0x24, 0xb8, 0xf1, 0x40, 0x42, 0x5c,
0x10, 0xb9, 0xcb, 0xc9, 0x66, 0x2d, 0x59, 0x82, 0xed, 0x56, 0xd5, 0x9e, 0x81, 0x47, 0xe4, 0x61,
0x90, 0xed, 0x54, 0x23, 0x61, 0xa2, 0x94, 0x3b, 0x7f, 0xfc, 0xce, 0xff, 0x7f, 0x3e, 0x6c, 0x78,
0x58, 0xa2, 0xe6, 0xc9, 0x9c, 0x2b, 0x4c, 0x96, 0xb3, 0x44, 0xe2, 0xf7, 0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, 0x00, 0xff, 0xff, 0x04, 0x6b, 0x9c,
0x97, 0x91, 0x04, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/base/v1/resource.proto
package basev1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// 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_65113dfb5be99422, []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.base.v1.Shelf")
}
func init() { proto.RegisterFile("meta/base/v1/resource.proto", fileDescriptor_65113dfb5be99422) }
var fileDescriptor_65113dfb5be99422 = []byte{
// 225 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0xc3, 0x30,
0x10, 0x85, 0x95, 0x40, 0x2b, 0x7a, 0xa9, 0x18, 0x32, 0x59, 0x45, 0x88, 0xc2, 0xd4, 0xc9, 0x56,
0x60, 0x64, 0x63, 0x63, 0x61, 0x28, 0x4c, 0x2c, 0xd1, 0xa5, 0xbe, 0x16, 0x4b, 0x36, 0xb6, 0x6c,
0x27, 0x82, 0xdf, 0xc9, 0x1f, 0x42, 0xb6, 0x5b, 0x56, 0xd6, 0xf7, 0xbe, 0xef, 0xd9, 0x3a, 0xb8,
0x32, 0x14, 0x51, 0x0c, 0x18, 0x48, 0x4c, 0x9d, 0xf0, 0x14, 0xec, 0xe8, 0x77, 0xc4, 0x9d, 0xb7,
0xd1, 0xb6, 0xcb, 0x54, 0xf2, 0x54, 0xf2, 0xa9, 0x5b, 0xdd, 0x1c, 0xac, 0x3d, 0x68, 0x12, 0xb9,
0x1b, 0xc6, 0xbd, 0x88, 0xca, 0x50, 0x88, 0x68, 0x5c, 0xc1, 0xef, 0x7e, 0x2a, 0x98, 0xbd, 0x7e,
0x90, 0xde, 0xb7, 0x97, 0x50, 0x2b, 0xc9, 0xaa, 0x75, 0xb5, 0x59, 0x6c, 0x6b, 0x25, 0xdb, 0x47,
0x68, 0x76, 0x9e, 0x30, 0x52, 0x9f, 0x1c, 0x56, 0xaf, 0xab, 0x4d, 0x73, 0xbf, 0xe2, 0x65, 0x90,
0x9f, 0x06, 0xf9, 0xdb, 0x69, 0x70, 0x0b, 0x05, 0x4f, 0x41, 0x92, 0x47, 0x27, 0xff, 0xe4, 0xb3,
0xff, 0xe5, 0x82, 0x67, 0xf9, 0x1a, 0x80, 0xbe, 0xd0, 0x38, 0x4d, 0xbd, 0x92, 0xec, 0x3c, 0xff,
0x68, 0x71, 0x4c, 0x9e, 0x65, 0x7b, 0x0b, 0x4b, 0xa9, 0x82, 0xd3, 0xf8, 0xdd, 0x7f, 0xa2, 0x21,
0x36, 0xcb, 0x40, 0x73, 0xcc, 0x5e, 0xd0, 0xd0, 0xd3, 0xc5, 0xfb, 0x3c, 0x5d, 0x60, 0xea, 0x86,
0x79, 0x7e, 0xeb, 0xe1, 0x37, 0x00, 0x00, 0xff, 0xff, 0xa8, 0xac, 0x35, 0x96, 0x34, 0x01, 0x00,
0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/base/v1/service.proto
package basev1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/base/v1/service.proto", fileDescriptor_a0c70f23a2072833) }
var fileDescriptor_a0c70f23a2072833 = []byte{
// 238 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0xd2, 0x4f, 0x6b, 0x83, 0x30,
0x18, 0x06, 0xf0, 0x1d, 0x86, 0x48, 0x14, 0x06, 0x39, 0x0a, 0x1b, 0xfb, 0x7b, 0x8d, 0xb8, 0x7d,
0x03, 0x37, 0xd8, 0x61, 0x3b, 0x4d, 0x77, 0xd9, 0x65, 0x8d, 0xf6, 0x15, 0x05, 0x5b, 0x6d, 0x92,
0xe6, 0x9b, 0xf4, 0xfb, 0x96, 0x34, 0x46, 0x12, 0x21, 0xed, 0xf5, 0x7d, 0x9e, 0xf7, 0x17, 0x78,
0x09, 0x4a, 0x36, 0x20, 0x68, 0x5a, 0x51, 0x0e, 0xa9, 0xcc, 0x52, 0x0e, 0x4c, 0x76, 0x35, 0x90,
0x91, 0x0d, 0x62, 0xc0, 0xb1, 0xca, 0x88, 0xca, 0x88, 0xcc, 0x92, 0x27, 0xa7, 0xc9, 0x60, 0xb7,
0x07, 0x2e, 0xfe, 0x19, 0xf0, 0x71, 0xd8, 0xf2, 0x69, 0xe5, 0xf5, 0x70, 0x8d, 0xe2, 0xa2, 0x85,
0xbe, 0x29, 0xb4, 0x84, 0x4b, 0x14, 0x7d, 0x77, 0x5c, 0xa8, 0x99, 0x04, 0x8e, 0xef, 0x89, 0x6d,
0x12, 0x2b, 0xfa, 0xd1, 0x60, 0xf2, 0x70, 0xa6, 0xa1, 0x9f, 0x7a, 0xbc, 0xc2, 0x2b, 0x74, 0x93,
0x53, 0x51, 0xb7, 0x9f, 0x30, 0xcb, 0xcf, 0xee, 0xde, 0x22, 0x36, 0xfa, 0xcb, 0x85, 0xd6, 0xfc,
0xc2, 0x17, 0x0a, 0xa7, 0x79, 0x83, 0x6f, 0xdd, 0x25, 0x33, 0x37, 0xe6, 0x9d, 0x2f, 0x9e, 0xb1,
0x12, 0x45, 0xef, 0x0c, 0xa8, 0x00, 0xed, 0x2d, 0x8e, 0x60, 0x45, 0x9e, 0x23, 0x38, 0x0d, 0x5b,
0xfd, 0x1d, 0xd7, 0x3e, 0xd5, 0x8a, 0x3c, 0xaa, 0xd3, 0xb0, 0xd5, 0x0f, 0xe8, 0xc1, 0xa3, 0x5a,
0x91, 0x47, 0x75, 0x1a, 0x46, 0xcd, 0xc3, 0xbf, 0x40, 0x15, 0x64, 0x56, 0x05, 0xa7, 0x8f, 0xf2,
0x76, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x77, 0x62, 0xaa, 0x74, 0x79, 0x02, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ShelfServiceClient is the client API for ShelfService service.
//
// 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 {
// ListShelves retrieves a list of shelf resources from the server.
ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, 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 {
cc *grpc.ClientConn
}
func NewShelfServiceClient(cc *grpc.ClientConn) ShelfServiceClient {
return &shelfServiceClient{cc}
}
func (c *shelfServiceClient) ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error) {
out := new(ListShelvesResponse)
err := c.cc.Invoke(ctx, "/meta.base.v1.ShelfService/ListShelves", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) BatchGetShelves(ctx context.Context, in *BatchGetShelvesRequest, opts ...grpc.CallOption) (*BatchGetShelvesResponse, error) {
out := new(BatchGetShelvesResponse)
err := c.cc.Invoke(ctx, "/meta.base.v1.ShelfService/BatchGetShelves", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*GetShelfResponse, error) {
out := new(GetShelfResponse)
err := c.cc.Invoke(ctx, "/meta.base.v1.ShelfService/GetShelf", in, out, opts...)
if err != nil {
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.base.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.base.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.base.v1.ShelfService/DeleteShelf", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ShelfServiceServer is the server API for ShelfService service.
type ShelfServiceServer interface {
// 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.base.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) {
in := new(BatchGetShelvesRequest)
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.base.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 _ShelfService_GetShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
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.base.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) {
in := new(CreateShelfRequest)
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.base.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) {
in := new(UpdateShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).UpdateShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.base.v1.ShelfService/UpdateShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).UpdateShelf(ctx, req.(*UpdateShelfRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ShelfService_DeleteShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).DeleteShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.base.v1.ShelfService/DeleteShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).DeleteShelf(ctx, req.(*DeleteShelfRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ShelfService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.base.v1.ShelfService",
HandlerType: (*ShelfServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListShelves",
Handler: _ShelfService_ListShelves_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",
Handler: _ShelfService_DeleteShelf_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "meta/base/v1/service.proto",
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/crypter/v1/request_response.proto
package crypterv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type SignRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Privk []byte `protobuf:"bytes,2,opt,name=privk,proto3" json:"privk,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
CryptType CryptType `protobuf:"varint,4,opt,name=crypt_type,json=cryptType,proto3,enum=meta.crypter.v1.CryptType" json:"crypt_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignRequest) Reset() { *m = SignRequest{} }
func (m *SignRequest) String() string { return proto.CompactTextString(m) }
func (*SignRequest) ProtoMessage() {}
func (*SignRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{0}
}
func (m *SignRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignRequest.Unmarshal(m, b)
}
func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignRequest.Marshal(b, m, deterministic)
}
func (m *SignRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignRequest.Merge(m, src)
}
func (m *SignRequest) XXX_Size() int {
return xxx_messageInfo_SignRequest.Size(m)
}
func (m *SignRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SignRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SignRequest proto.InternalMessageInfo
func (m *SignRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *SignRequest) GetPrivk() []byte {
if m != nil {
return m.Privk
}
return nil
}
func (m *SignRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *SignRequest) GetCryptType() CryptType {
if m != nil {
return m.CryptType
}
return CryptType_CRYPT_TYPE_INVALID
}
type SignResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignResponse) Reset() { *m = SignResponse{} }
func (m *SignResponse) String() string { return proto.CompactTextString(m) }
func (*SignResponse) ProtoMessage() {}
func (*SignResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{1}
}
func (m *SignResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignResponse.Unmarshal(m, b)
}
func (m *SignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignResponse.Marshal(b, m, deterministic)
}
func (m *SignResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignResponse.Merge(m, src)
}
func (m *SignResponse) XXX_Size() int {
return xxx_messageInfo_SignResponse.Size(m)
}
func (m *SignResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SignResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SignResponse proto.InternalMessageInfo
func (m *SignResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *SignResponse) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
type VerifyRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
CryptType CryptType `protobuf:"varint,4,opt,name=crypt_type,json=cryptType,proto3,enum=meta.crypter.v1.CryptType" json:"crypt_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VerifyRequest) Reset() { *m = VerifyRequest{} }
func (m *VerifyRequest) String() string { return proto.CompactTextString(m) }
func (*VerifyRequest) ProtoMessage() {}
func (*VerifyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{2}
}
func (m *VerifyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VerifyRequest.Unmarshal(m, b)
}
func (m *VerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VerifyRequest.Marshal(b, m, deterministic)
}
func (m *VerifyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_VerifyRequest.Merge(m, src)
}
func (m *VerifyRequest) XXX_Size() int {
return xxx_messageInfo_VerifyRequest.Size(m)
}
func (m *VerifyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_VerifyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_VerifyRequest proto.InternalMessageInfo
func (m *VerifyRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *VerifyRequest) GetPubkey() []byte {
if m != nil {
return m.Pubkey
}
return nil
}
func (m *VerifyRequest) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *VerifyRequest) GetCryptType() CryptType {
if m != nil {
return m.CryptType
}
return CryptType_CRYPT_TYPE_INVALID
}
type VerifyResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Verified bool `protobuf:"varint,2,opt,name=verified,proto3" json:"verified,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VerifyResponse) Reset() { *m = VerifyResponse{} }
func (m *VerifyResponse) String() string { return proto.CompactTextString(m) }
func (*VerifyResponse) ProtoMessage() {}
func (*VerifyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{3}
}
func (m *VerifyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VerifyResponse.Unmarshal(m, b)
}
func (m *VerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VerifyResponse.Marshal(b, m, deterministic)
}
func (m *VerifyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_VerifyResponse.Merge(m, src)
}
func (m *VerifyResponse) XXX_Size() int {
return xxx_messageInfo_VerifyResponse.Size(m)
}
func (m *VerifyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_VerifyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_VerifyResponse proto.InternalMessageInfo
func (m *VerifyResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *VerifyResponse) GetVerified() bool {
if m != nil {
return m.Verified
}
return false
}
type RecoverRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
CryptType CryptType `protobuf:"varint,4,opt,name=crypt_type,json=cryptType,proto3,enum=meta.crypter.v1.CryptType" json:"crypt_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RecoverRequest) Reset() { *m = RecoverRequest{} }
func (m *RecoverRequest) String() string { return proto.CompactTextString(m) }
func (*RecoverRequest) ProtoMessage() {}
func (*RecoverRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{4}
}
func (m *RecoverRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RecoverRequest.Unmarshal(m, b)
}
func (m *RecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RecoverRequest.Marshal(b, m, deterministic)
}
func (m *RecoverRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RecoverRequest.Merge(m, src)
}
func (m *RecoverRequest) XXX_Size() int {
return xxx_messageInfo_RecoverRequest.Size(m)
}
func (m *RecoverRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RecoverRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RecoverRequest proto.InternalMessageInfo
func (m *RecoverRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *RecoverRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *RecoverRequest) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *RecoverRequest) GetCryptType() CryptType {
if m != nil {
return m.CryptType
}
return CryptType_CRYPT_TYPE_INVALID
}
type RecoverResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RecoverResponse) Reset() { *m = RecoverResponse{} }
func (m *RecoverResponse) String() string { return proto.CompactTextString(m) }
func (*RecoverResponse) ProtoMessage() {}
func (*RecoverResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{5}
}
func (m *RecoverResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RecoverResponse.Unmarshal(m, b)
}
func (m *RecoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RecoverResponse.Marshal(b, m, deterministic)
}
func (m *RecoverResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RecoverResponse.Merge(m, src)
}
func (m *RecoverResponse) XXX_Size() int {
return xxx_messageInfo_RecoverResponse.Size(m)
}
func (m *RecoverResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RecoverResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RecoverResponse proto.InternalMessageInfo
func (m *RecoverResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *RecoverResponse) GetPubkey() []byte {
if m != nil {
return m.Pubkey
}
return nil
}
type BatchSignRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Privk [][]byte `protobuf:"bytes,2,rep,name=privk,proto3" json:"privk,omitempty"`
Data [][]byte `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
CryptType CryptType `protobuf:"varint,4,opt,name=crypt_type,json=cryptType,proto3,enum=meta.crypter.v1.CryptType" json:"crypt_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchSignRequest) Reset() { *m = BatchSignRequest{} }
func (m *BatchSignRequest) String() string { return proto.CompactTextString(m) }
func (*BatchSignRequest) ProtoMessage() {}
func (*BatchSignRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{6}
}
func (m *BatchSignRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchSignRequest.Unmarshal(m, b)
}
func (m *BatchSignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchSignRequest.Marshal(b, m, deterministic)
}
func (m *BatchSignRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchSignRequest.Merge(m, src)
}
func (m *BatchSignRequest) XXX_Size() int {
return xxx_messageInfo_BatchSignRequest.Size(m)
}
func (m *BatchSignRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchSignRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchSignRequest proto.InternalMessageInfo
func (m *BatchSignRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *BatchSignRequest) GetPrivk() [][]byte {
if m != nil {
return m.Privk
}
return nil
}
func (m *BatchSignRequest) GetData() [][]byte {
if m != nil {
return m.Data
}
return nil
}
func (m *BatchSignRequest) GetCryptType() CryptType {
if m != nil {
return m.CryptType
}
return CryptType_CRYPT_TYPE_INVALID
}
type BatchSignResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Signature [][]byte `protobuf:"bytes,2,rep,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchSignResponse) Reset() { *m = BatchSignResponse{} }
func (m *BatchSignResponse) String() string { return proto.CompactTextString(m) }
func (*BatchSignResponse) ProtoMessage() {}
func (*BatchSignResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{7}
}
func (m *BatchSignResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchSignResponse.Unmarshal(m, b)
}
func (m *BatchSignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchSignResponse.Marshal(b, m, deterministic)
}
func (m *BatchSignResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchSignResponse.Merge(m, src)
}
func (m *BatchSignResponse) XXX_Size() int {
return xxx_messageInfo_BatchSignResponse.Size(m)
}
func (m *BatchSignResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchSignResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchSignResponse proto.InternalMessageInfo
func (m *BatchSignResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *BatchSignResponse) GetSignature() [][]byte {
if m != nil {
return m.Signature
}
return nil
}
type BatchVerifyRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Pubkey [][]byte `protobuf:"bytes,2,rep,name=pubkey,proto3" json:"pubkey,omitempty"`
Signature [][]byte `protobuf:"bytes,3,rep,name=signature,proto3" json:"signature,omitempty"`
CryptType CryptType `protobuf:"varint,4,opt,name=crypt_type,json=cryptType,proto3,enum=meta.crypter.v1.CryptType" json:"crypt_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchVerifyRequest) Reset() { *m = BatchVerifyRequest{} }
func (m *BatchVerifyRequest) String() string { return proto.CompactTextString(m) }
func (*BatchVerifyRequest) ProtoMessage() {}
func (*BatchVerifyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{8}
}
func (m *BatchVerifyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchVerifyRequest.Unmarshal(m, b)
}
func (m *BatchVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchVerifyRequest.Marshal(b, m, deterministic)
}
func (m *BatchVerifyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchVerifyRequest.Merge(m, src)
}
func (m *BatchVerifyRequest) XXX_Size() int {
return xxx_messageInfo_BatchVerifyRequest.Size(m)
}
func (m *BatchVerifyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchVerifyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchVerifyRequest proto.InternalMessageInfo
func (m *BatchVerifyRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *BatchVerifyRequest) GetPubkey() [][]byte {
if m != nil {
return m.Pubkey
}
return nil
}
func (m *BatchVerifyRequest) GetSignature() [][]byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *BatchVerifyRequest) GetCryptType() CryptType {
if m != nil {
return m.CryptType
}
return CryptType_CRYPT_TYPE_INVALID
}
type BatchVerifyResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Verified []bool `protobuf:"varint,2,rep,packed,name=verified,proto3" json:"verified,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchVerifyResponse) Reset() { *m = BatchVerifyResponse{} }
func (m *BatchVerifyResponse) String() string { return proto.CompactTextString(m) }
func (*BatchVerifyResponse) ProtoMessage() {}
func (*BatchVerifyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{9}
}
func (m *BatchVerifyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchVerifyResponse.Unmarshal(m, b)
}
func (m *BatchVerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchVerifyResponse.Marshal(b, m, deterministic)
}
func (m *BatchVerifyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchVerifyResponse.Merge(m, src)
}
func (m *BatchVerifyResponse) XXX_Size() int {
return xxx_messageInfo_BatchVerifyResponse.Size(m)
}
func (m *BatchVerifyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchVerifyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchVerifyResponse proto.InternalMessageInfo
func (m *BatchVerifyResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *BatchVerifyResponse) GetVerified() []bool {
if m != nil {
return m.Verified
}
return nil
}
type BatchRecoverRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Data [][]byte `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
Signature [][]byte `protobuf:"bytes,3,rep,name=signature,proto3" json:"signature,omitempty"`
CryptType CryptType `protobuf:"varint,4,opt,name=crypt_type,json=cryptType,proto3,enum=meta.crypter.v1.CryptType" json:"crypt_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchRecoverRequest) Reset() { *m = BatchRecoverRequest{} }
func (m *BatchRecoverRequest) String() string { return proto.CompactTextString(m) }
func (*BatchRecoverRequest) ProtoMessage() {}
func (*BatchRecoverRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{10}
}
func (m *BatchRecoverRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchRecoverRequest.Unmarshal(m, b)
}
func (m *BatchRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchRecoverRequest.Marshal(b, m, deterministic)
}
func (m *BatchRecoverRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchRecoverRequest.Merge(m, src)
}
func (m *BatchRecoverRequest) XXX_Size() int {
return xxx_messageInfo_BatchRecoverRequest.Size(m)
}
func (m *BatchRecoverRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchRecoverRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchRecoverRequest proto.InternalMessageInfo
func (m *BatchRecoverRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *BatchRecoverRequest) GetData() [][]byte {
if m != nil {
return m.Data
}
return nil
}
func (m *BatchRecoverRequest) GetSignature() [][]byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *BatchRecoverRequest) GetCryptType() CryptType {
if m != nil {
return m.CryptType
}
return CryptType_CRYPT_TYPE_INVALID
}
type BatchRecoverResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Pubkey [][]byte `protobuf:"bytes,2,rep,name=pubkey,proto3" json:"pubkey,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchRecoverResponse) Reset() { *m = BatchRecoverResponse{} }
func (m *BatchRecoverResponse) String() string { return proto.CompactTextString(m) }
func (*BatchRecoverResponse) ProtoMessage() {}
func (*BatchRecoverResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7c5a8fed3f673bd, []int{11}
}
func (m *BatchRecoverResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchRecoverResponse.Unmarshal(m, b)
}
func (m *BatchRecoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchRecoverResponse.Marshal(b, m, deterministic)
}
func (m *BatchRecoverResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchRecoverResponse.Merge(m, src)
}
func (m *BatchRecoverResponse) XXX_Size() int {
return xxx_messageInfo_BatchRecoverResponse.Size(m)
}
func (m *BatchRecoverResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchRecoverResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchRecoverResponse proto.InternalMessageInfo
func (m *BatchRecoverResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *BatchRecoverResponse) GetPubkey() [][]byte {
if m != nil {
return m.Pubkey
}
return nil
}
func init() {
proto.RegisterType((*SignRequest)(nil), "meta.crypter.v1.SignRequest")
proto.RegisterType((*SignResponse)(nil), "meta.crypter.v1.SignResponse")
proto.RegisterType((*VerifyRequest)(nil), "meta.crypter.v1.VerifyRequest")
proto.RegisterType((*VerifyResponse)(nil), "meta.crypter.v1.VerifyResponse")
proto.RegisterType((*RecoverRequest)(nil), "meta.crypter.v1.RecoverRequest")
proto.RegisterType((*RecoverResponse)(nil), "meta.crypter.v1.RecoverResponse")
proto.RegisterType((*BatchSignRequest)(nil), "meta.crypter.v1.BatchSignRequest")
proto.RegisterType((*BatchSignResponse)(nil), "meta.crypter.v1.BatchSignResponse")
proto.RegisterType((*BatchVerifyRequest)(nil), "meta.crypter.v1.BatchVerifyRequest")
proto.RegisterType((*BatchVerifyResponse)(nil), "meta.crypter.v1.BatchVerifyResponse")
proto.RegisterType((*BatchRecoverRequest)(nil), "meta.crypter.v1.BatchRecoverRequest")
proto.RegisterType((*BatchRecoverResponse)(nil), "meta.crypter.v1.BatchRecoverResponse")
}
func init() {
proto.RegisterFile("meta/crypter/v1/request_response.proto", fileDescriptor_d7c5a8fed3f673bd)
}
var fileDescriptor_d7c5a8fed3f673bd = []byte{
// 419 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x41, 0xcb, 0xd3, 0x40,
0x10, 0x86, 0xd9, 0xec, 0xe7, 0x47, 0x33, 0xad, 0xa9, 0xc6, 0x22, 0x21, 0x88, 0x86, 0x1c, 0xa4,
0xa7, 0x84, 0xea, 0xa9, 0x20, 0x42, 0xeb, 0x3f, 0x88, 0xe2, 0xc1, 0x4b, 0x49, 0x93, 0x69, 0x5c,
0xda, 0x34, 0xeb, 0x66, 0x13, 0xc8, 0xd5, 0x8b, 0x27, 0x41, 0x04, 0xff, 0xaf, 0x34, 0xd9, 0xd6,
0xa6, 0x35, 0x10, 0xb0, 0xde, 0x76, 0x36, 0xb3, 0x33, 0xef, 0x3b, 0xf3, 0x10, 0x78, 0x99, 0xa2,
0x0c, 0xfd, 0x48, 0x54, 0x5c, 0xa2, 0xf0, 0xcb, 0x99, 0x2f, 0xf0, 0x4b, 0x81, 0xb9, 0x5c, 0x09,
0xcc, 0x79, 0xb6, 0xcf, 0xd1, 0xe3, 0x22, 0x93, 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0x5c, 0x8b, 0x1a, 0x04, 0xa7, 0xd8, 0xfd, 0x4e, 0xc0, 0x08, 0x30, 0xca, 0x4a, 0x14, 0x5d,
0x8e, 0x8e, 0x0b, 0xd0, 0xce, 0x16, 0xf0, 0xdf, 0xdc, 0xcc, 0x61, 0x7c, 0x92, 0xd3, 0x61, 0xa7,
0x63, 0xc2, 0xee, 0x37, 0x02, 0x8f, 0x96, 0xa1, 0x8c, 0x3e, 0xf7, 0x64, 0x8c, 0xfe, 0x8d, 0x31,
0x7a, 0x0b, 0xc6, 0x16, 0xf0, 0xf8, 0x4c, 0x48, 0x3f, 0xd0, 0x68, 0x1b, 0xb4, 0x5f, 0x04, 0xcc,
0xba, 0x46, 0x7f, 0xda, 0x68, 0x37, 0x6d, 0xf4, 0x66, 0xfb, 0x59, 0xc0, 0x93, 0x96, 0xac, 0x5e,
0xc8, 0xd1, 0x16, 0x72, 0x3f, 0x89, 0xaa, 0xd1, 0x9b, 0x3b, 0xda, 0xc5, 0xdd, 0xed, 0x7c, 0xbd,
0x85, 0x49, 0x5b, 0x53, 0x0f, 0xf8, 0xce, 0x06, 0xbe, 0x1c, 0x7e, 0xd2, 0x55, 0x8b, 0x72, 0xb6,
0xbe, 0xaf, 0xff, 0x77, 0xaf, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x46, 0x33, 0xb7, 0xba, 0x8d,
0x05, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/crypter/v1/resource.proto
package crypterv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type CryptType int32
const (
CryptType_CRYPT_TYPE_INVALID CryptType = 0
CryptType_CRYPT_TYPE_SECP256K1 CryptType = 1
)
var CryptType_name = map[int32]string{
0: "CRYPT_TYPE_INVALID",
1: "CRYPT_TYPE_SECP256K1",
}
var CryptType_value = map[string]int32{
"CRYPT_TYPE_INVALID": 0,
"CRYPT_TYPE_SECP256K1": 1,
}
func (x CryptType) String() string {
return proto.EnumName(CryptType_name, int32(x))
}
func (CryptType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_01f1bddfec97ea3e, []int{0}
}
func init() {
proto.RegisterEnum("meta.crypter.v1.CryptType", CryptType_name, CryptType_value)
}
func init() { proto.RegisterFile("meta/crypter/v1/resource.proto", fileDescriptor_01f1bddfec97ea3e) }
var fileDescriptor_01f1bddfec97ea3e = []byte{
// 157 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0x4d, 0x2d, 0x49,
0xd4, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce,
0x2f, 0x2d, 0x4a, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x07, 0xc9, 0xeb, 0x41,
0xe5, 0xf5, 0xca, 0x0c, 0xa5, 0xe4, 0xd3, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0xc1, 0xd2, 0x49,
0xa5, 0x69, 0xfa, 0x25, 0x99, 0xb9, 0xa9, 0xc5, 0x25, 0x89, 0xb9, 0x05, 0x10, 0x1d, 0x5a, 0xb6,
0x5c, 0x9c, 0xce, 0x20, 0xe5, 0x21, 0x95, 0x05, 0xa9, 0x42, 0x62, 0x5c, 0x42, 0xce, 0x41, 0x91,
0x01, 0x21, 0xf1, 0x21, 0x91, 0x01, 0xae, 0xf1, 0x9e, 0x7e, 0x61, 0x8e, 0x3e, 0x9e, 0x2e, 0x02,
0x0c, 0x42, 0x12, 0x5c, 0x22, 0x48, 0xe2, 0xc1, 0xae, 0xce, 0x01, 0x46, 0xa6, 0x66, 0xde, 0x86,
0x02, 0x8c, 0x4e, 0xdc, 0x51, 0x9c, 0x50, 0xdb, 0xca, 0x0c, 0x93, 0xd8, 0xc0, 0x46, 0x1a, 0x03,
0x02, 0x00, 0x00, 0xff, 0xff, 0x54, 0x54, 0x92, 0x6c, 0xa6, 0x00, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/crypter/v1/service.proto
package crypterv1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/crypter/v1/service.proto", fileDescriptor_0bcfc3d2961e80ff) }
var fileDescriptor_0bcfc3d2961e80ff = []byte{
// 242 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0x4d, 0x2d, 0x49,
0xd4, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x4e, 0x2d, 0x2a,
0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x07, 0x49, 0xeb, 0x41, 0xa5,
0xf5, 0xca, 0x0c, 0xa5, 0xd4, 0xd0, 0xd5, 0x17, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0xc4, 0x17,
0xa5, 0x16, 0x17, 0xe4, 0xe7, 0x15, 0x43, 0x35, 0x1a, 0xb5, 0xb2, 0x70, 0xf1, 0x39, 0x43, 0x54,
0x05, 0x43, 0x4c, 0x14, 0x72, 0xe5, 0x62, 0x09, 0xce, 0x4c, 0xcf, 0x13, 0x92, 0xd1, 0x43, 0x33,
0x54, 0x0f, 0x24, 0x1c, 0x04, 0x31, 0x47, 0x4a, 0x16, 0x87, 0x2c, 0xc4, 0x74, 0x25, 0x06, 0x21,
0x6f, 0x2e, 0xb6, 0xb0, 0xd4, 0xa2, 0xcc, 0xb4, 0x4a, 0x21, 0x39, 0x0c, 0xa5, 0x10, 0x09, 0x98,
0x51, 0xf2, 0x38, 0xe5, 0xe1, 0x86, 0xf9, 0x71, 0xb1, 0x07, 0xa5, 0x26, 0xe7, 0x97, 0xa5, 0x16,
0x09, 0x61, 0xaa, 0x86, 0xca, 0xc0, 0x8c, 0x53, 0xc0, 0xad, 0x00, 0x6e, 0x5e, 0x08, 0x17, 0xa7,
0x53, 0x62, 0x49, 0x72, 0x06, 0xd8, 0xa3, 0x8a, 0x18, 0x1a, 0xe0, 0x72, 0x30, 0x33, 0x95, 0xf0,
0x29, 0x81, 0x9b, 0x1a, 0xc5, 0xc5, 0x0d, 0x16, 0x86, 0xfa, 0x5b, 0x19, 0xbb, 0x26, 0x54, 0xcf,
0xab, 0xe0, 0x57, 0x04, 0x37, 0x3b, 0x96, 0x8b, 0x07, 0x2c, 0x01, 0x0b, 0x06, 0x1c, 0xfa, 0xd0,
0xc2, 0x42, 0x95, 0x80, 0x2a, 0x98, 0xf1, 0x4e, 0xdc, 0x51, 0x9c, 0x50, 0x45, 0x65, 0x86, 0x49,
0x6c, 0xe0, 0xb4, 0x61, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xc9, 0xf3, 0xc6, 0x75, 0x02,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// CrypterServiceClient is the client API for CrypterService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CrypterServiceClient interface {
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error)
Recover(ctx context.Context, in *RecoverRequest, opts ...grpc.CallOption) (*RecoverResponse, error)
BatchSign(ctx context.Context, in *BatchSignRequest, opts ...grpc.CallOption) (*BatchSignResponse, error)
BatchVerify(ctx context.Context, in *BatchVerifyRequest, opts ...grpc.CallOption) (*BatchVerifyResponse, error)
BatchRecover(ctx context.Context, in *BatchRecoverRequest, opts ...grpc.CallOption) (*BatchRecoverResponse, error)
}
type crypterServiceClient struct {
cc *grpc.ClientConn
}
func NewCrypterServiceClient(cc *grpc.ClientConn) CrypterServiceClient {
return &crypterServiceClient{cc}
}
func (c *crypterServiceClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) {
out := new(SignResponse)
err := c.cc.Invoke(ctx, "/meta.crypter.v1.CrypterService/Sign", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *crypterServiceClient) Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) {
out := new(VerifyResponse)
err := c.cc.Invoke(ctx, "/meta.crypter.v1.CrypterService/Verify", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *crypterServiceClient) Recover(ctx context.Context, in *RecoverRequest, opts ...grpc.CallOption) (*RecoverResponse, error) {
out := new(RecoverResponse)
err := c.cc.Invoke(ctx, "/meta.crypter.v1.CrypterService/Recover", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *crypterServiceClient) BatchSign(ctx context.Context, in *BatchSignRequest, opts ...grpc.CallOption) (*BatchSignResponse, error) {
out := new(BatchSignResponse)
err := c.cc.Invoke(ctx, "/meta.crypter.v1.CrypterService/BatchSign", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *crypterServiceClient) BatchVerify(ctx context.Context, in *BatchVerifyRequest, opts ...grpc.CallOption) (*BatchVerifyResponse, error) {
out := new(BatchVerifyResponse)
err := c.cc.Invoke(ctx, "/meta.crypter.v1.CrypterService/BatchVerify", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *crypterServiceClient) BatchRecover(ctx context.Context, in *BatchRecoverRequest, opts ...grpc.CallOption) (*BatchRecoverResponse, error) {
out := new(BatchRecoverResponse)
err := c.cc.Invoke(ctx, "/meta.crypter.v1.CrypterService/BatchRecover", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CrypterServiceServer is the server API for CrypterService service.
type CrypterServiceServer interface {
Sign(context.Context, *SignRequest) (*SignResponse, error)
Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
Recover(context.Context, *RecoverRequest) (*RecoverResponse, error)
BatchSign(context.Context, *BatchSignRequest) (*BatchSignResponse, error)
BatchVerify(context.Context, *BatchVerifyRequest) (*BatchVerifyResponse, error)
BatchRecover(context.Context, *BatchRecoverRequest) (*BatchRecoverResponse, error)
}
// UnimplementedCrypterServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCrypterServiceServer struct {
}
func (*UnimplementedCrypterServiceServer) Sign(ctx context.Context, req *SignRequest) (*SignResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Sign not implemented")
}
func (*UnimplementedCrypterServiceServer) Verify(ctx context.Context, req *VerifyRequest) (*VerifyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Verify not implemented")
}
func (*UnimplementedCrypterServiceServer) Recover(ctx context.Context, req *RecoverRequest) (*RecoverResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Recover not implemented")
}
func (*UnimplementedCrypterServiceServer) BatchSign(ctx context.Context, req *BatchSignRequest) (*BatchSignResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchSign not implemented")
}
func (*UnimplementedCrypterServiceServer) BatchVerify(ctx context.Context, req *BatchVerifyRequest) (*BatchVerifyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchVerify not implemented")
}
func (*UnimplementedCrypterServiceServer) BatchRecover(ctx context.Context, req *BatchRecoverRequest) (*BatchRecoverResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchRecover not implemented")
}
func RegisterCrypterServiceServer(s *grpc.Server, srv CrypterServiceServer) {
s.RegisterService(&_CrypterService_serviceDesc, srv)
}
func _CrypterService_Sign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SignRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CrypterServiceServer).Sign(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.crypter.v1.CrypterService/Sign",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CrypterServiceServer).Sign(ctx, req.(*SignRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CrypterService_Verify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CrypterServiceServer).Verify(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.crypter.v1.CrypterService/Verify",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CrypterServiceServer).Verify(ctx, req.(*VerifyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CrypterService_Recover_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RecoverRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CrypterServiceServer).Recover(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.crypter.v1.CrypterService/Recover",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CrypterServiceServer).Recover(ctx, req.(*RecoverRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CrypterService_BatchSign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchSignRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CrypterServiceServer).BatchSign(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.crypter.v1.CrypterService/BatchSign",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CrypterServiceServer).BatchSign(ctx, req.(*BatchSignRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CrypterService_BatchVerify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchVerifyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CrypterServiceServer).BatchVerify(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.crypter.v1.CrypterService/BatchVerify",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CrypterServiceServer).BatchVerify(ctx, req.(*BatchVerifyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CrypterService_BatchRecover_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchRecoverRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CrypterServiceServer).BatchRecover(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.crypter.v1.CrypterService/BatchRecover",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CrypterServiceServer).BatchRecover(ctx, req.(*BatchRecoverRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CrypterService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.crypter.v1.CrypterService",
HandlerType: (*CrypterServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Sign",
Handler: _CrypterService_Sign_Handler,
},
{
MethodName: "Verify",
Handler: _CrypterService_Verify_Handler,
},
{
MethodName: "Recover",
Handler: _CrypterService_Recover_Handler,
},
{
MethodName: "BatchSign",
Handler: _CrypterService_BatchSign_Handler,
},
{
MethodName: "BatchVerify",
Handler: _CrypterService_BatchVerify_Handler,
},
{
MethodName: "BatchRecover",
Handler: _CrypterService_BatchRecover_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "meta/crypter/v1/service.proto",
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/nebula/v1/request_response.proto
package nebulav1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The standard List request definition.
type ListShelvesRequest struct {
// 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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListShelvesRequest) Reset() { *m = ListShelvesRequest{} }
func (m *ListShelvesRequest) String() string { return proto.CompactTextString(m) }
func (*ListShelvesRequest) ProtoMessage() {}
func (*ListShelvesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6ea4ed8af6438e32, []int{0}
}
func (m *ListShelvesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesRequest.Unmarshal(m, b)
}
func (m *ListShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesRequest.Marshal(b, m, deterministic)
}
func (m *ListShelvesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesRequest.Merge(m, src)
}
func (m *ListShelvesRequest) XXX_Size() int {
return xxx_messageInfo_ListShelvesRequest.Size(m)
}
func (m *ListShelvesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListShelvesRequest proto.InternalMessageInfo
func (m *ListShelvesRequest) GetAfterTime() *timestamp.Timestamp {
if m != nil {
return m.AfterTime
}
return nil
}
func (m *ListShelvesRequest) GetBeforeTime() *timestamp.Timestamp {
if m != nil {
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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListShelvesResponse) Reset() { *m = ListShelvesResponse{} }
func (m *ListShelvesResponse) String() string { return proto.CompactTextString(m) }
func (*ListShelvesResponse) ProtoMessage() {}
func (*ListShelvesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6ea4ed8af6438e32, []int{1}
}
func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesResponse.Unmarshal(m, b)
}
func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesResponse.Marshal(b, m, deterministic)
}
func (m *ListShelvesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesResponse.Merge(m, src)
}
func (m *ListShelvesResponse) XXX_Size() int {
return xxx_messageInfo_ListShelvesResponse.Size(m)
}
func (m *ListShelvesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListShelvesResponse proto.InternalMessageInfo
func (m *ListShelvesResponse) GetShelves() []*Shelf {
if m != nil {
return m.Shelves
}
return nil
}
func (m *ListShelvesResponse) GetNext() bool {
if m != nil {
return m.Next
}
return false
}
// 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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetShelvesRequest) Reset() { *m = BatchGetShelvesRequest{} }
func (m *BatchGetShelvesRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetShelvesRequest) ProtoMessage() {}
func (*BatchGetShelvesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6ea4ed8af6438e32, []int{2}
}
func (m *BatchGetShelvesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetShelvesRequest.Unmarshal(m, b)
}
func (m *BatchGetShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetShelvesRequest.Marshal(b, m, deterministic)
}
func (m *BatchGetShelvesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetShelvesRequest.Merge(m, src)
}
func (m *BatchGetShelvesRequest) XXX_Size() int {
return xxx_messageInfo_BatchGetShelvesRequest.Size(m)
}
func (m *BatchGetShelvesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetShelvesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetShelvesRequest proto.InternalMessageInfo
func (m *BatchGetShelvesRequest) GetIds() []string {
if m != nil {
return m.Ids
}
return nil
}
// The standard BatchGet response definition.
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_6ea4ed8af6438e32, []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 {
return m.Shelves
}
return nil
}
// The standard Get request definition.
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_6ea4ed8af6438e32, []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 {
return m.Id
}
return ""
}
// The standard Get response definition.
type GetShelfResponse struct {
// The retrieved 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 *GetShelfResponse) Reset() { *m = GetShelfResponse{} }
func (m *GetShelfResponse) String() string { return proto.CompactTextString(m) }
func (*GetShelfResponse) ProtoMessage() {}
func (*GetShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6ea4ed8af6438e32, []int{5}
}
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 *GetShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Create request definition.
type CreateShelfRequest struct {
// The shelf to create.
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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateShelfRequest) Reset() { *m = CreateShelfRequest{} }
func (m *CreateShelfRequest) String() string { return proto.CompactTextString(m) }
func (*CreateShelfRequest) ProtoMessage() {}
func (*CreateShelfRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6ea4ed8af6438e32, []int{6}
}
func (m *CreateShelfRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfRequest.Unmarshal(m, b)
}
func (m *CreateShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfRequest.Marshal(b, m, deterministic)
}
func (m *CreateShelfRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfRequest.Merge(m, src)
}
func (m *CreateShelfRequest) XXX_Size() int {
return xxx_messageInfo_CreateShelfRequest.Size(m)
}
func (m *CreateShelfRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateShelfRequest proto.InternalMessageInfo
func (m *CreateShelfRequest) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
func (m *CreateShelfRequest) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
// The standard Create response definition.
type CreateShelfResponse struct {
// The created 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 *CreateShelfResponse) Reset() { *m = CreateShelfResponse{} }
func (m *CreateShelfResponse) String() string { return proto.CompactTextString(m) }
func (*CreateShelfResponse) ProtoMessage() {}
func (*CreateShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6ea4ed8af6438e32, []int{7}
}
func (m *CreateShelfResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfResponse.Unmarshal(m, b)
}
func (m *CreateShelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfResponse.Marshal(b, m, deterministic)
}
func (m *CreateShelfResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfResponse.Merge(m, src)
}
func (m *CreateShelfResponse) XXX_Size() int {
return xxx_messageInfo_CreateShelfResponse.Size(m)
}
func (m *CreateShelfResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateShelfResponse proto.InternalMessageInfo
func (m *CreateShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Update request definition.
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_6ea4ed8af6438e32, []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 {
return m.Shelf
}
return nil
}
func (m *UpdateShelfRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// 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_6ea4ed8af6438e32, []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 *UpdateShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Delete request definition.
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_6ea4ed8af6438e32, []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 {
return m.Id
}
return ""
}
// 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_6ea4ed8af6438e32, []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 *DeleteShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
func init() {
proto.RegisterType((*ListShelvesRequest)(nil), "meta.nebula.v1.ListShelvesRequest")
proto.RegisterType((*ListShelvesResponse)(nil), "meta.nebula.v1.ListShelvesResponse")
proto.RegisterType((*BatchGetShelvesRequest)(nil), "meta.nebula.v1.BatchGetShelvesRequest")
proto.RegisterType((*BatchGetShelvesResponse)(nil), "meta.nebula.v1.BatchGetShelvesResponse")
proto.RegisterType((*GetShelfRequest)(nil), "meta.nebula.v1.GetShelfRequest")
proto.RegisterType((*GetShelfResponse)(nil), "meta.nebula.v1.GetShelfResponse")
proto.RegisterType((*CreateShelfRequest)(nil), "meta.nebula.v1.CreateShelfRequest")
proto.RegisterType((*CreateShelfResponse)(nil), "meta.nebula.v1.CreateShelfResponse")
proto.RegisterType((*UpdateShelfRequest)(nil), "meta.nebula.v1.UpdateShelfRequest")
proto.RegisterType((*UpdateShelfResponse)(nil), "meta.nebula.v1.UpdateShelfResponse")
proto.RegisterType((*DeleteShelfRequest)(nil), "meta.nebula.v1.DeleteShelfRequest")
proto.RegisterType((*DeleteShelfResponse)(nil), "meta.nebula.v1.DeleteShelfResponse")
}
func init() {
proto.RegisterFile("meta/nebula/v1/request_response.proto", fileDescriptor_6ea4ed8af6438e32)
}
var fileDescriptor_6ea4ed8af6438e32 = []byte{
// 469 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x5b, 0x6f, 0xd3, 0x30,
0x14, 0xc7, 0x95, 0xb4, 0x65, 0xcd, 0xa9, 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2, 0x6e, 0x9a, 0x9d, 0x6e, 0xdc, 0x78, 0xba, 0xff, 0x91,
0xf6, 0x09, 0x4c, 0x6a, 0x63, 0x69, 0x7e, 0x99, 0x79, 0x87, 0xbf, 0x7b, 0xbe, 0xef, 0xf4, 0x47,
0xfc, 0xcc, 0xe4, 0x15, 0x05, 0x2b, 0xd7, 0x6b, 0x5d, 0x54, 0x2b, 0x9f, 0x3e, 0x45, 0x3d, 0x05,
0xf2, 0x16, 0x73, 0xfc, 0x7b, 0x4d, 0x9a, 0xd4, 0x52, 0xf5, 0x20, 0x2d, 0xe0, 0x6c, 0x6c, 0x6f,
0xd6, 0xf3, 0xe5, 0x1d, 0x53, 0xd9, 0xcb, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc6, 0xef, 0x09,
0x9d, 0xa9, 0x04, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/nebula/v1/resource.proto
package nebulav1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// 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_ff711f70efaef7a0, []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.nebula.v1.Shelf")
}
func init() { proto.RegisterFile("meta/nebula/v1/resource.proto", fileDescriptor_ff711f70efaef7a0) }
var fileDescriptor_ff711f70efaef7a0 = []byte{
// 227 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0xc3, 0x30,
0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 0x86, 0x9e, 0xe1, 0xe3, 0xba, 0xdc, 0x60, 0xea,
0x86, 0xab, 0xfc, 0xda, 0xe3, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x29, 0x9c, 0xd0, 0x23, 0x3a,
0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/nebula/v1/service.proto
package nebulav1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/nebula/v1/service.proto", fileDescriptor_a0b4e7ad13c0f391) }
var fileDescriptor_a0b4e7ad13c0f391 = []byte{
// 239 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x51, 0x4b, 0x85, 0x30,
0x14, 0x80, 0x7b, 0x88, 0x90, 0x19, 0x05, 0x7b, 0x94, 0xa0, 0x30, 0xaa, 0xb7, 0x89, 0xf5, 0x0f,
0x2c, 0xe8, 0x25, 0x08, 0x92, 0x40, 0x7a, 0x89, 0xa9, 0x47, 0x14, 0x4c, 0x6d, 0x9b, 0xfb, 0x57,
0xfd, 0xc7, 0xf0, 0xce, 0xc9, 0xb6, 0xcb, 0xee, 0x7d, 0xdd, 0xf7, 0x9d, 0xef, 0xc0, 0x61, 0xe8,
0xea, 0x07, 0x04, 0x4d, 0x06, 0x28, 0xe7, 0x9e, 0x26, 0x32, 0x4d, 0x38, 0x30, 0xd9, 0x55, 0x40,
0x26, 0x36, 0x8a, 0x11, 0x5f, 0x2c, 0x94, 0x28, 0x4a, 0x64, 0x1a, 0xdd, 0x39, 0x36, 0x83, 0xdf,
0x19, 0xb8, 0xf8, 0x66, 0xc0, 0xa7, 0x71, 0xe0, 0xeb, 0xd8, 0xe3, 0xdf, 0x29, 0x3a, 0xcf, 0x5b,
0xe8, 0x9b, 0x5c, 0xd5, 0x70, 0x81, 0xc2, 0xb7, 0x8e, 0x8b, 0xe5, 0x4d, 0x02, 0xc7, 0x31, 0xb1,
0xbb, 0xc4, 0x80, 0x1f, 0x2a, 0x19, 0xdd, 0x1e, 0x74, 0xd4, 0xba, 0xf8, 0x04, 0xd7, 0xe8, 0x32,
0xa3, 0xa2, 0x6a, 0x5f, 0x61, 0xab, 0xdf, 0xbb, 0x93, 0x8e, 0xa0, 0x37, 0x3c, 0x1c, 0xf5, 0xb6,
0x2d, 0xef, 0x28, 0x58, 0xdf, 0x1b, 0x7c, 0xed, 0x8e, 0x69, 0xa2, 0xbb, 0x37, 0x7e, 0x61, 0x0b,
0x16, 0x28, 0x7c, 0x66, 0x40, 0x05, 0xa8, 0xe6, 0xde, 0x41, 0x0c, 0xe8, 0x3d, 0x88, 0xe5, 0x98,
0xe5, 0xcf, 0xa9, 0xf6, 0x97, 0x0d, 0xe8, 0x2d, 0x5b, 0x8e, 0x59, 0x7e, 0x81, 0x1e, 0xbc, 0x65,
0x03, 0x7a, 0xcb, 0x96, 0xa3, 0xcb, 0x19, 0xfa, 0x0a, 0x94, 0x22, 0xd3, 0xf2, 0x6c, 0xf7, 0x85,
0x9e, 0xfe, 0x03, 0x00, 0x00, 0xff, 0xff, 0x1b, 0xe0, 0x43, 0x76, 0x99, 0x02, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ShelfServiceClient is the client API for ShelfService service.
//
// 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 {
// ListShelves retrieves a list of shelf resources from the server.
ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, 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 {
cc *grpc.ClientConn
}
func NewShelfServiceClient(cc *grpc.ClientConn) ShelfServiceClient {
return &shelfServiceClient{cc}
}
func (c *shelfServiceClient) ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error) {
out := new(ListShelvesResponse)
err := c.cc.Invoke(ctx, "/meta.nebula.v1.ShelfService/ListShelves", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) BatchGetShelves(ctx context.Context, in *BatchGetShelvesRequest, opts ...grpc.CallOption) (*BatchGetShelvesResponse, error) {
out := new(BatchGetShelvesResponse)
err := c.cc.Invoke(ctx, "/meta.nebula.v1.ShelfService/BatchGetShelves", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*GetShelfResponse, error) {
out := new(GetShelfResponse)
err := c.cc.Invoke(ctx, "/meta.nebula.v1.ShelfService/GetShelf", in, out, opts...)
if err != nil {
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.nebula.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.nebula.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.nebula.v1.ShelfService/DeleteShelf", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ShelfServiceServer is the server API for ShelfService service.
type ShelfServiceServer interface {
// 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.nebula.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) {
in := new(BatchGetShelvesRequest)
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.nebula.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 _ShelfService_GetShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
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.nebula.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) {
in := new(CreateShelfRequest)
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.nebula.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) {
in := new(UpdateShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).UpdateShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.nebula.v1.ShelfService/UpdateShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).UpdateShelf(ctx, req.(*UpdateShelfRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ShelfService_DeleteShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).DeleteShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.nebula.v1.ShelfService/DeleteShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).DeleteShelf(ctx, req.(*DeleteShelfRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ShelfService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.nebula.v1.ShelfService",
HandlerType: (*ShelfServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListShelves",
Handler: _ShelfService_ListShelves_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",
Handler: _ShelfService_DeleteShelf_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "meta/nebula/v1/service.proto",
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/p2p/v1/request_response.proto
package p2pv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type BroadCastRequest struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BroadCastRequest) Reset() { *m = BroadCastRequest{} }
func (m *BroadCastRequest) String() string { return proto.CompactTextString(m) }
func (*BroadCastRequest) ProtoMessage() {}
func (*BroadCastRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_62ba155e45d4ded8, []int{0}
}
func (m *BroadCastRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BroadCastRequest.Unmarshal(m, b)
}
func (m *BroadCastRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BroadCastRequest.Marshal(b, m, deterministic)
}
func (m *BroadCastRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BroadCastRequest.Merge(m, src)
}
func (m *BroadCastRequest) XXX_Size() int {
return xxx_messageInfo_BroadCastRequest.Size(m)
}
func (m *BroadCastRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BroadCastRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BroadCastRequest proto.InternalMessageInfo
func (m *BroadCastRequest) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *BroadCastRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type BroadCastResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BroadCastResponse) Reset() { *m = BroadCastResponse{} }
func (m *BroadCastResponse) String() string { return proto.CompactTextString(m) }
func (*BroadCastResponse) ProtoMessage() {}
func (*BroadCastResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_62ba155e45d4ded8, []int{1}
}
func (m *BroadCastResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BroadCastResponse.Unmarshal(m, b)
}
func (m *BroadCastResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BroadCastResponse.Marshal(b, m, deterministic)
}
func (m *BroadCastResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BroadCastResponse.Merge(m, src)
}
func (m *BroadCastResponse) XXX_Size() int {
return xxx_messageInfo_BroadCastResponse.Size(m)
}
func (m *BroadCastResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BroadCastResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BroadCastResponse proto.InternalMessageInfo
func (m *BroadCastResponse) GetSuccess() bool {
if m != nil {
return m.Success
}
return false
}
type SendDataRequest struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SendDataRequest) Reset() { *m = SendDataRequest{} }
func (m *SendDataRequest) String() string { return proto.CompactTextString(m) }
func (*SendDataRequest) ProtoMessage() {}
func (*SendDataRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_62ba155e45d4ded8, []int{2}
}
func (m *SendDataRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendDataRequest.Unmarshal(m, b)
}
func (m *SendDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendDataRequest.Marshal(b, m, deterministic)
}
func (m *SendDataRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendDataRequest.Merge(m, src)
}
func (m *SendDataRequest) XXX_Size() int {
return xxx_messageInfo_SendDataRequest.Size(m)
}
func (m *SendDataRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SendDataRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SendDataRequest proto.InternalMessageInfo
func (m *SendDataRequest) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *SendDataRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type SendDataResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SendDataResponse) Reset() { *m = SendDataResponse{} }
func (m *SendDataResponse) String() string { return proto.CompactTextString(m) }
func (*SendDataResponse) ProtoMessage() {}
func (*SendDataResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_62ba155e45d4ded8, []int{3}
}
func (m *SendDataResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendDataResponse.Unmarshal(m, b)
}
func (m *SendDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendDataResponse.Marshal(b, m, deterministic)
}
func (m *SendDataResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendDataResponse.Merge(m, src)
}
func (m *SendDataResponse) XXX_Size() int {
return xxx_messageInfo_SendDataResponse.Size(m)
}
func (m *SendDataResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SendDataResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SendDataResponse proto.InternalMessageInfo
func (m *SendDataResponse) GetSuccess() bool {
if m != nil {
return m.Success
}
return false
}
type SubscribeMsgRequest struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
MsgTypes []P2PMsgType `protobuf:"varint,2,rep,packed,name=msg_types,json=msgTypes,proto3,enum=meta.p2p.v1.P2PMsgType" json:"msg_types,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SubscribeMsgRequest) Reset() { *m = SubscribeMsgRequest{} }
func (m *SubscribeMsgRequest) String() string { return proto.CompactTextString(m) }
func (*SubscribeMsgRequest) ProtoMessage() {}
func (*SubscribeMsgRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_62ba155e45d4ded8, []int{4}
}
func (m *SubscribeMsgRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubscribeMsgRequest.Unmarshal(m, b)
}
func (m *SubscribeMsgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubscribeMsgRequest.Marshal(b, m, deterministic)
}
func (m *SubscribeMsgRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubscribeMsgRequest.Merge(m, src)
}
func (m *SubscribeMsgRequest) XXX_Size() int {
return xxx_messageInfo_SubscribeMsgRequest.Size(m)
}
func (m *SubscribeMsgRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SubscribeMsgRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SubscribeMsgRequest proto.InternalMessageInfo
func (m *SubscribeMsgRequest) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *SubscribeMsgRequest) GetMsgTypes() []P2PMsgType {
if m != nil {
return m.MsgTypes
}
return nil
}
type SubscribeMsgResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SubscribeMsgResponse) Reset() { *m = SubscribeMsgResponse{} }
func (m *SubscribeMsgResponse) String() string { return proto.CompactTextString(m) }
func (*SubscribeMsgResponse) ProtoMessage() {}
func (*SubscribeMsgResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_62ba155e45d4ded8, []int{5}
}
func (m *SubscribeMsgResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubscribeMsgResponse.Unmarshal(m, b)
}
func (m *SubscribeMsgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubscribeMsgResponse.Marshal(b, m, deterministic)
}
func (m *SubscribeMsgResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubscribeMsgResponse.Merge(m, src)
}
func (m *SubscribeMsgResponse) XXX_Size() int {
return xxx_messageInfo_SubscribeMsgResponse.Size(m)
}
func (m *SubscribeMsgResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SubscribeMsgResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SubscribeMsgResponse proto.InternalMessageInfo
func (m *SubscribeMsgResponse) GetSuccess() bool {
if m != nil {
return m.Success
}
return false
}
func init() {
proto.RegisterType((*BroadCastRequest)(nil), "meta.p2p.v1.BroadCastRequest")
proto.RegisterType((*BroadCastResponse)(nil), "meta.p2p.v1.BroadCastResponse")
proto.RegisterType((*SendDataRequest)(nil), "meta.p2p.v1.SendDataRequest")
proto.RegisterType((*SendDataResponse)(nil), "meta.p2p.v1.SendDataResponse")
proto.RegisterType((*SubscribeMsgRequest)(nil), "meta.p2p.v1.SubscribeMsgRequest")
proto.RegisterType((*SubscribeMsgResponse)(nil), "meta.p2p.v1.SubscribeMsgResponse")
}
func init() {
proto.RegisterFile("meta/p2p/v1/request_response.proto", fileDescriptor_62ba155e45d4ded8)
}
var fileDescriptor_62ba155e45d4ded8 = []byte{
// 303 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x91, 0x31, 0x4f, 0xf3, 0x30,
0x10, 0x86, 0xd5, 0x7e, 0x1f, 0x6d, 0x71, 0x11, 0x94, 0x80, 0x44, 0x94, 0x85, 0x28, 0x53, 0x07,
0x48, 0x88, 0xe1, 0x17, 0x14, 0x06, 0x96, 0x48, 0x55, 0xca, 0x42, 0x97, 0xc8, 0x49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, 0x45, 0x99, 0x62, 0xa6, 0x8b, 0x14, 0x22, 0xe4, 0xbf,
0x91, 0xb9, 0x23, 0x87, 0x02, 0x79, 0x62, 0xb6, 0x0a, 0xd0, 0xee, 0xbb, 0xff, 0xa6, 0xc7, 0xf4,
0xa2, 0xf3, 0x6c, 0x4e, 0xe7, 0x11, 0xf2, 0xa7, 0xad, 0x82, 0x78, 0x24, 0x9a, 0x01, 0xbd, 0x1b,
0x72, 0xde, 0x15, 0xd8, 0xa7, 0x3c, 0x1b, 0x2e, 0x0f, 0x14, 0x55, 0x55, 0x98, 0x0e, 0xea, 0xb5,
0xde, 0x7e, 0x04, 0x00, 0x00, 0xff, 0xff, 0xc5, 0xea, 0xcb, 0xa7, 0x68, 0x02, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/p2p/v1/resource.proto
package p2pv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type P2PMsgType int32
const (
P2PMsgType_P2P_MSG_TYPE_INVALID P2PMsgType = 0
P2PMsgType_P2P_MSG_TYPE_PING P2PMsgType = 1
P2PMsgType_P2P_MSG_TYPE_PONG P2PMsgType = 2
)
var P2PMsgType_name = map[int32]string{
0: "P2P_MSG_TYPE_INVALID",
1: "P2P_MSG_TYPE_PING",
2: "P2P_MSG_TYPE_PONG",
}
var P2PMsgType_value = map[string]int32{
"P2P_MSG_TYPE_INVALID": 0,
"P2P_MSG_TYPE_PING": 1,
"P2P_MSG_TYPE_PONG": 2,
}
func (x P2PMsgType) String() string {
return proto.EnumName(P2PMsgType_name, int32(x))
}
func (P2PMsgType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{0}
}
// shared between all p2p package
type MessageHeader struct {
// client protocol version
ClientVersion string `protobuf:"bytes,1,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
// client type
ClientType int32 `protobuf:"varint,2,opt,name=client_type,json=clientType,proto3" json:"client_type,omitempty"`
// allows requesters to use request data when processing a response
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
// package create time.
CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// id of node that created the message (not the peer that may have sent it). =base58(multihash(nodePubKey))
NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Gossip bool `protobuf:"varint,6,opt,name=gossip,proto3" json:"gossip,omitempty"`
// Authoring node Secp256k1 public key (32bytes) - protobufs serielized
NodePubkey []byte `protobuf:"bytes,7,opt,name=node_pubkey,json=nodePubkey,proto3" json:"node_pubkey,omitempty"`
// signature of full message data.
Sign []byte `protobuf:"bytes,8,opt,name=sign,proto3" json:"sign,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessageHeader) Reset() { *m = MessageHeader{} }
func (m *MessageHeader) String() string { return proto.CompactTextString(m) }
func (*MessageHeader) ProtoMessage() {}
func (*MessageHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{0}
}
func (m *MessageHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessageHeader.Unmarshal(m, b)
}
func (m *MessageHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessageHeader.Marshal(b, m, deterministic)
}
func (m *MessageHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessageHeader.Merge(m, src)
}
func (m *MessageHeader) XXX_Size() int {
return xxx_messageInfo_MessageHeader.Size(m)
}
func (m *MessageHeader) XXX_DiscardUnknown() {
xxx_messageInfo_MessageHeader.DiscardUnknown(m)
}
var xxx_messageInfo_MessageHeader proto.InternalMessageInfo
func (m *MessageHeader) GetClientVersion() string {
if m != nil {
return m.ClientVersion
}
return ""
}
func (m *MessageHeader) GetClientType() int32 {
if m != nil {
return m.ClientType
}
return 0
}
func (m *MessageHeader) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *MessageHeader) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *MessageHeader) GetNodeId() string {
if m != nil {
return m.NodeId
}
return ""
}
func (m *MessageHeader) GetGossip() bool {
if m != nil {
return m.Gossip
}
return false
}
func (m *MessageHeader) GetNodePubkey() []byte {
if m != nil {
return m.NodePubkey
}
return nil
}
func (m *MessageHeader) GetSign() []byte {
if m != nil {
return m.Sign
}
return nil
}
// HandShake used for check info when peer connect
type HandShakeRequest struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandShakeRequest) Reset() { *m = HandShakeRequest{} }
func (m *HandShakeRequest) String() string { return proto.CompactTextString(m) }
func (*HandShakeRequest) ProtoMessage() {}
func (*HandShakeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{1}
}
func (m *HandShakeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandShakeRequest.Unmarshal(m, b)
}
func (m *HandShakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandShakeRequest.Marshal(b, m, deterministic)
}
func (m *HandShakeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandShakeRequest.Merge(m, src)
}
func (m *HandShakeRequest) XXX_Size() int {
return xxx_messageInfo_HandShakeRequest.Size(m)
}
func (m *HandShakeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HandShakeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HandShakeRequest proto.InternalMessageInfo
func (m *HandShakeRequest) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *HandShakeRequest) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
type HandShakeResponse struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HandShakeResponse) Reset() { *m = HandShakeResponse{} }
func (m *HandShakeResponse) String() string { return proto.CompactTextString(m) }
func (*HandShakeResponse) ProtoMessage() {}
func (*HandShakeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{2}
}
func (m *HandShakeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HandShakeResponse.Unmarshal(m, b)
}
func (m *HandShakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HandShakeResponse.Marshal(b, m, deterministic)
}
func (m *HandShakeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_HandShakeResponse.Merge(m, src)
}
func (m *HandShakeResponse) XXX_Size() int {
return xxx_messageInfo_HandShakeResponse.Size(m)
}
func (m *HandShakeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_HandShakeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_HandShakeResponse proto.InternalMessageInfo
func (m *HandShakeResponse) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *HandShakeResponse) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
// PingRequest used for peer keep alive.
type PingRequest struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PingRequest) Reset() { *m = PingRequest{} }
func (m *PingRequest) String() string { return proto.CompactTextString(m) }
func (*PingRequest) ProtoMessage() {}
func (*PingRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{3}
}
func (m *PingRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PingRequest.Unmarshal(m, b)
}
func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic)
}
func (m *PingRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PingRequest.Merge(m, src)
}
func (m *PingRequest) XXX_Size() int {
return xxx_messageInfo_PingRequest.Size(m)
}
func (m *PingRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PingRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PingRequest proto.InternalMessageInfo
func (m *PingRequest) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *PingRequest) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
type PongResponse struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PongResponse) Reset() { *m = PongResponse{} }
func (m *PongResponse) String() string { return proto.CompactTextString(m) }
func (*PongResponse) ProtoMessage() {}
func (*PongResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{4}
}
func (m *PongResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PongResponse.Unmarshal(m, b)
}
func (m *PongResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PongResponse.Marshal(b, m, deterministic)
}
func (m *PongResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PongResponse.Merge(m, src)
}
func (m *PongResponse) XXX_Size() int {
return xxx_messageInfo_PongResponse.Size(m)
}
func (m *PongResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PongResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PongResponse proto.InternalMessageInfo
func (m *PongResponse) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *PongResponse) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
// Disconnect used for disconnect a peer and give a reason.
type DisconnectRequest struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DisconnectRequest) Reset() { *m = DisconnectRequest{} }
func (m *DisconnectRequest) String() string { return proto.CompactTextString(m) }
func (*DisconnectRequest) ProtoMessage() {}
func (*DisconnectRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{5}
}
func (m *DisconnectRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DisconnectRequest.Unmarshal(m, b)
}
func (m *DisconnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DisconnectRequest.Marshal(b, m, deterministic)
}
func (m *DisconnectRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DisconnectRequest.Merge(m, src)
}
func (m *DisconnectRequest) XXX_Size() int {
return xxx_messageInfo_DisconnectRequest.Size(m)
}
func (m *DisconnectRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DisconnectRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DisconnectRequest proto.InternalMessageInfo
func (m *DisconnectRequest) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *DisconnectRequest) GetReason() string {
if m != nil {
return m.Reason
}
return ""
}
type MessageRequest struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
MessageType int32 `protobuf:"varint,2,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
MessageData []byte `protobuf:"bytes,3,opt,name=message_data,json=messageData,proto3" json:"message_data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessageRequest) Reset() { *m = MessageRequest{} }
func (m *MessageRequest) String() string { return proto.CompactTextString(m) }
func (*MessageRequest) ProtoMessage() {}
func (*MessageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{6}
}
func (m *MessageRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessageRequest.Unmarshal(m, b)
}
func (m *MessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessageRequest.Marshal(b, m, deterministic)
}
func (m *MessageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessageRequest.Merge(m, src)
}
func (m *MessageRequest) XXX_Size() int {
return xxx_messageInfo_MessageRequest.Size(m)
}
func (m *MessageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MessageRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MessageRequest proto.InternalMessageInfo
func (m *MessageRequest) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *MessageRequest) GetMessageType() int32 {
if m != nil {
return m.MessageType
}
return 0
}
func (m *MessageRequest) GetMessageData() []byte {
if m != nil {
return m.MessageData
}
return nil
}
type MessageResponse struct {
Header *MessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
MessageType int32 `protobuf:"varint,2,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
MessageData []byte `protobuf:"bytes,3,opt,name=message_data,json=messageData,proto3" json:"message_data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessageResponse) Reset() { *m = MessageResponse{} }
func (m *MessageResponse) String() string { return proto.CompactTextString(m) }
func (*MessageResponse) ProtoMessage() {}
func (*MessageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6d4e04ddec946f90, []int{7}
}
func (m *MessageResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessageResponse.Unmarshal(m, b)
}
func (m *MessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessageResponse.Marshal(b, m, deterministic)
}
func (m *MessageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessageResponse.Merge(m, src)
}
func (m *MessageResponse) XXX_Size() int {
return xxx_messageInfo_MessageResponse.Size(m)
}
func (m *MessageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MessageResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MessageResponse proto.InternalMessageInfo
func (m *MessageResponse) GetHeader() *MessageHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *MessageResponse) GetMessageType() int32 {
if m != nil {
return m.MessageType
}
return 0
}
func (m *MessageResponse) GetMessageData() []byte {
if m != nil {
return m.MessageData
}
return nil
}
func init() {
proto.RegisterEnum("meta.p2p.v1.P2PMsgType", P2PMsgType_name, P2PMsgType_value)
proto.RegisterType((*MessageHeader)(nil), "meta.p2p.v1.MessageHeader")
proto.RegisterType((*HandShakeRequest)(nil), "meta.p2p.v1.HandShakeRequest")
proto.RegisterType((*HandShakeResponse)(nil), "meta.p2p.v1.HandShakeResponse")
proto.RegisterType((*PingRequest)(nil), "meta.p2p.v1.PingRequest")
proto.RegisterType((*PongResponse)(nil), "meta.p2p.v1.PongResponse")
proto.RegisterType((*DisconnectRequest)(nil), "meta.p2p.v1.DisconnectRequest")
proto.RegisterType((*MessageRequest)(nil), "meta.p2p.v1.MessageRequest")
proto.RegisterType((*MessageResponse)(nil), "meta.p2p.v1.MessageResponse")
}
func init() { proto.RegisterFile("meta/p2p/v1/resource.proto", fileDescriptor_6d4e04ddec946f90) }
var fileDescriptor_6d4e04ddec946f90 = []byte{
// 483 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0x5f, 0x6f, 0xda, 0x30,
0x14, 0xc5, 0x17, 0x56, 0x42, 0x7b, 0x43, 0x19, 0x58, 0x5b, 0x67, 0xf1, 0x52, 0x86, 0x34, 0x09,
0xed, 0x21, 0x88, 0xec, 0x71, 0x4f, 0x9b, 0x98, 0x28, 0xd2, 0x60, 0x51, 0x8a, 0x2a, 0xed, 0x8f,
0x94, 0x99, 0xe4, 0x2e, 0xb5, 0x5a, 0x6c, 0x2f, 0x36, 0x48, 0x7c, 0x85, 0xee, 0x4b, 0x4f, 0x71,
0x42, 0x45, 0xb5, 0x47, 0xda, 0xb7, 0xdc, 0x73, 0xcf, 0xf5, 0xfd, 0xe5, 0xc8, 0x86, 0xee, 0x0a,
0x0d, 0x1b, 0xaa, 0x40, 0x0d, 0x37, 0xa3, 0x61, 0x8e, 0x5a, 0xae, 0xf3, 0x04, 0x7d, 0x95, 0x4b,
0x23, 0x89, 0x57, 0xf4, 0x7c, 0x15, 0x28, 0x7f, 0x33, 0xea, 0x9e, 0x67, 0x52, 0x66, 0xb7, 0x38,
0xb4, 0xad, 0xe5, 0xfa, 0xf7, 0xd0, 0xf0, 0x15, 0x6a, 0xc3, 0x56, 0xaa, 0x74, 0xf7, 0xef, 0x6a,
0x70, 0x3a, 0x43, 0xad, 0x59, 0x86, 0x17, 0xc8, 0x52, 0xcc, 0xc9, 0x5b, 0x68, 0x25, 0xb7, 0x1c,
0x85, 0x89, 0x37, 0x98, 0x6b, 0x2e, 0x05, 0x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0x94, 0xc5, 0xe1, 0x4f, 0x82, 0x1e, 0x43, 0x67, 0xcc, 0x75, 0x22, 0x85, 0xc0,
0xc4, 0x1c, 0xf2, 0x03, 0x67, 0xe0, 0xe6, 0xc8, 0xb4, 0x14, 0xd5, 0x86, 0xaa, 0xea, 0xdf, 0x39,
0xd0, 0xaa, 0x26, 0x0e, 0x39, 0xfe, 0x0d, 0x34, 0x2b, 0xe4, 0xfd, 0xcb, 0xef, 0x55, 0x9a, 0xbd,
0xfd, 0x7b, 0x96, 0x94, 0x19, 0x66, 0xdf, 0x41, 0xf3, 0xde, 0x32, 0x66, 0x86, 0xf5, 0xff, 0x3a,
0xf0, 0xe2, 0x1e, 0xe6, 0x80, 0x3c, 0x1f, 0x85, 0xe6, 0xdd, 0x02, 0x20, 0x0c, 0xc2, 0x99, 0xce,
0xec, 0x00, 0x85, 0x97, 0x61, 0x10, 0xc6, 0xb3, 0xcb, 0x49, 0xbc, 0xf8, 0x16, 0x7e, 0x8e, 0xa7,
0xf3, 0xab, 0x8f, 0x5f, 0xa6, 0xe3, 0xf6, 0x33, 0xf2, 0x0a, 0x3a, 0x0f, 0x3a, 0xe1, 0x74, 0x3e,
0x69, 0x3b, 0xff, 0xcb, 0x5f, 0xe7, 0x93, 0x76, 0xed, 0x53, 0xe3, 0x7b, 0x5d, 0x05, 0x6a, 0x33,
0x5a, 0xba, 0xf6, 0x81, 0xbf, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x64, 0x95, 0x75, 0x6d, 0xba,
0x04, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/p2p/v1/service.proto
package p2pv1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/p2p/v1/service.proto", fileDescriptor_97b8545d889c3217) }
var fileDescriptor_97b8545d889c3217 = []byte{
// 196 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0x4d, 0x2d, 0x49,
0xd4, 0x2f, 0x30, 0x2a, 0xd0, 0x2f, 0x33, 0xd4, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5,
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x06, 0x49, 0xe9, 0x15, 0x18, 0x15, 0xe8, 0x95, 0x19,
0x4a, 0x29, 0x21, 0xab, 0x2b, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x89, 0x2f, 0x4a, 0x2d, 0x2e,
0xc8, 0xcf, 0x2b, 0x86, 0x6a, 0x30, 0xfa, 0xcf, 0xc8, 0xc5, 0x15, 0x60, 0x14, 0x10, 0x0c, 0x31,
0x45, 0xc8, 0x9f, 0x8b, 0xc7, 0xa9, 0x28, 0x3f, 0x31, 0xc5, 0x39, 0xb1, 0xb8, 0xc4, 0xb7, 0x38,
0x5d, 0x48, 0x56, 0x0f, 0xc9, 0x40, 0x3d, 0xb8, 0x54, 0x10, 0xc4, 0x30, 0x29, 0x39, 0x5c, 0xd2,
0x10, 0x3b, 0x94, 0x18, 0x84, 0x3c, 0xb9, 0x38, 0x82, 0x53, 0xf3, 0x52, 0x5c, 0x12, 0x4b, 0x12,
0x85, 0x64, 0x50, 0x54, 0xc3, 0x84, 0x61, 0x66, 0xc9, 0xe2, 0x90, 0x85, 0x1b, 0x15, 0xca, 0xc5,
0x13, 0x5c, 0x9a, 0x54, 0x9c, 0x5c, 0x94, 0x99, 0x94, 0x0a, 0x72, 0x9b, 0x02, 0xaa, 0x06, 0x24,
0x29, 0x98, 0x91, 0x8a, 0x78, 0x54, 0xc0, 0x8c, 0x75, 0x62, 0x8f, 0x62, 0x2d, 0x30, 0x2a, 0x28,
0x33, 0x4c, 0x62, 0x03, 0x87, 0x88, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x7b, 0xc3, 0xd9,
0x5f, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// P2PServiceClient is the client API for P2PService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type P2PServiceClient interface {
BroadCastMsg(ctx context.Context, in *BroadCastRequest, opts ...grpc.CallOption) (*BroadCastResponse, error)
SendData(ctx context.Context, in *SendDataRequest, opts ...grpc.CallOption) (*SendDataResponse, error)
SubscribeMsg(ctx context.Context, in *SubscribeMsgRequest, opts ...grpc.CallOption) (*SubscribeMsgResponse, error)
}
type p2PServiceClient struct {
cc *grpc.ClientConn
}
func NewP2PServiceClient(cc *grpc.ClientConn) P2PServiceClient {
return &p2PServiceClient{cc}
}
func (c *p2PServiceClient) BroadCastMsg(ctx context.Context, in *BroadCastRequest, opts ...grpc.CallOption) (*BroadCastResponse, error) {
out := new(BroadCastResponse)
err := c.cc.Invoke(ctx, "/meta.p2p.v1.P2PService/BroadCastMsg", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *p2PServiceClient) SendData(ctx context.Context, in *SendDataRequest, opts ...grpc.CallOption) (*SendDataResponse, error) {
out := new(SendDataResponse)
err := c.cc.Invoke(ctx, "/meta.p2p.v1.P2PService/SendData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *p2PServiceClient) SubscribeMsg(ctx context.Context, in *SubscribeMsgRequest, opts ...grpc.CallOption) (*SubscribeMsgResponse, error) {
out := new(SubscribeMsgResponse)
err := c.cc.Invoke(ctx, "/meta.p2p.v1.P2PService/SubscribeMsg", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// P2PServiceServer is the server API for P2PService service.
type P2PServiceServer interface {
BroadCastMsg(context.Context, *BroadCastRequest) (*BroadCastResponse, error)
SendData(context.Context, *SendDataRequest) (*SendDataResponse, error)
SubscribeMsg(context.Context, *SubscribeMsgRequest) (*SubscribeMsgResponse, error)
}
// UnimplementedP2PServiceServer can be embedded to have forward compatible implementations.
type UnimplementedP2PServiceServer struct {
}
func (*UnimplementedP2PServiceServer) BroadCastMsg(ctx context.Context, req *BroadCastRequest) (*BroadCastResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BroadCastMsg not implemented")
}
func (*UnimplementedP2PServiceServer) SendData(ctx context.Context, req *SendDataRequest) (*SendDataResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendData not implemented")
}
func (*UnimplementedP2PServiceServer) SubscribeMsg(ctx context.Context, req *SubscribeMsgRequest) (*SubscribeMsgResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubscribeMsg not implemented")
}
func RegisterP2PServiceServer(s *grpc.Server, srv P2PServiceServer) {
s.RegisterService(&_P2PService_serviceDesc, srv)
}
func _P2PService_BroadCastMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BroadCastRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(P2PServiceServer).BroadCastMsg(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.p2p.v1.P2PService/BroadCastMsg",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(P2PServiceServer).BroadCastMsg(ctx, req.(*BroadCastRequest))
}
return interceptor(ctx, in, info, handler)
}
func _P2PService_SendData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendDataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(P2PServiceServer).SendData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.p2p.v1.P2PService/SendData",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(P2PServiceServer).SendData(ctx, req.(*SendDataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _P2PService_SubscribeMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SubscribeMsgRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(P2PServiceServer).SubscribeMsg(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.p2p.v1.P2PService/SubscribeMsg",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(P2PServiceServer).SubscribeMsg(ctx, req.(*SubscribeMsgRequest))
}
return interceptor(ctx, in, info, handler)
}
var _P2PService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.p2p.v1.P2PService",
HandlerType: (*P2PServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "BroadCastMsg",
Handler: _P2PService_BroadCastMsg_Handler,
},
{
MethodName: "SendData",
Handler: _P2PService_SendData_Handler,
},
{
MethodName: "SubscribeMsg",
Handler: _P2PService_SubscribeMsg_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "meta/p2p/v1/service.proto",
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/ring/v1/request_response.proto
package meta_ring_v1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type SendRawTransactionRequest struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SendRawTransactionRequest) Reset() { *m = SendRawTransactionRequest{} }
func (m *SendRawTransactionRequest) String() string { return proto.CompactTextString(m) }
func (*SendRawTransactionRequest) ProtoMessage() {}
func (*SendRawTransactionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{0}
}
func (m *SendRawTransactionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendRawTransactionRequest.Unmarshal(m, b)
}
func (m *SendRawTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendRawTransactionRequest.Marshal(b, m, deterministic)
}
func (m *SendRawTransactionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendRawTransactionRequest.Merge(m, src)
}
func (m *SendRawTransactionRequest) XXX_Size() int {
return xxx_messageInfo_SendRawTransactionRequest.Size(m)
}
func (m *SendRawTransactionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SendRawTransactionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SendRawTransactionRequest proto.InternalMessageInfo
func (m *SendRawTransactionRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type SendRawTransactionResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SendRawTransactionResponse) Reset() { *m = SendRawTransactionResponse{} }
func (m *SendRawTransactionResponse) String() string { return proto.CompactTextString(m) }
func (*SendRawTransactionResponse) ProtoMessage() {}
func (*SendRawTransactionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{1}
}
func (m *SendRawTransactionResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendRawTransactionResponse.Unmarshal(m, b)
}
func (m *SendRawTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendRawTransactionResponse.Marshal(b, m, deterministic)
}
func (m *SendRawTransactionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendRawTransactionResponse.Merge(m, src)
}
func (m *SendRawTransactionResponse) XXX_Size() int {
return xxx_messageInfo_SendRawTransactionResponse.Size(m)
}
func (m *SendRawTransactionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SendRawTransactionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SendRawTransactionResponse proto.InternalMessageInfo
func (m *SendRawTransactionResponse) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type EstimateGasRequest struct {
From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To []byte `protobuf:"bytes,2,opt,name=to,proto3" json:"to,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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EstimateGasRequest) Reset() { *m = EstimateGasRequest{} }
func (m *EstimateGasRequest) String() string { return proto.CompactTextString(m) }
func (*EstimateGasRequest) ProtoMessage() {}
func (*EstimateGasRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{2}
}
func (m *EstimateGasRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EstimateGasRequest.Unmarshal(m, b)
}
func (m *EstimateGasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EstimateGasRequest.Marshal(b, m, deterministic)
}
func (m *EstimateGasRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_EstimateGasRequest.Merge(m, src)
}
func (m *EstimateGasRequest) XXX_Size() int {
return xxx_messageInfo_EstimateGasRequest.Size(m)
}
func (m *EstimateGasRequest) XXX_DiscardUnknown() {
xxx_messageInfo_EstimateGasRequest.DiscardUnknown(m)
}
var xxx_messageInfo_EstimateGasRequest proto.InternalMessageInfo
func (m *EstimateGasRequest) GetFrom() []byte {
if m != nil {
return m.From
}
return nil
}
func (m *EstimateGasRequest) GetTo() []byte {
if m != nil {
return m.To
}
return nil
}
func (m *EstimateGasRequest) GetGas() int64 {
if m != nil {
return m.Gas
}
return 0
}
func (m *EstimateGasRequest) GetGasPrice() []byte {
if m != nil {
return m.GasPrice
}
return nil
}
func (m *EstimateGasRequest) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func (m *EstimateGasRequest) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type EstimateGasResponse struct {
Gas uint64 `protobuf:"varint,1,opt,name=gas,proto3" json:"gas,omitempty"`
Err []byte `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EstimateGasResponse) Reset() { *m = EstimateGasResponse{} }
func (m *EstimateGasResponse) String() string { return proto.CompactTextString(m) }
func (*EstimateGasResponse) ProtoMessage() {}
func (*EstimateGasResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{3}
}
func (m *EstimateGasResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EstimateGasResponse.Unmarshal(m, b)
}
func (m *EstimateGasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EstimateGasResponse.Marshal(b, m, deterministic)
}
func (m *EstimateGasResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_EstimateGasResponse.Merge(m, src)
}
func (m *EstimateGasResponse) XXX_Size() int {
return xxx_messageInfo_EstimateGasResponse.Size(m)
}
func (m *EstimateGasResponse) XXX_DiscardUnknown() {
xxx_messageInfo_EstimateGasResponse.DiscardUnknown(m)
}
var xxx_messageInfo_EstimateGasResponse proto.InternalMessageInfo
func (m *EstimateGasResponse) GetGas() uint64 {
if m != nil {
return m.Gas
}
return 0
}
func (m *EstimateGasResponse) GetErr() []byte {
if m != nil {
return m.Err
}
return nil
}
type CallArgs struct {
From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To []byte `protobuf:"bytes,2,opt,name=to,proto3" json:"to,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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CallArgs) Reset() { *m = CallArgs{} }
func (m *CallArgs) String() string { return proto.CompactTextString(m) }
func (*CallArgs) ProtoMessage() {}
func (*CallArgs) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce663d43ac67a3b, []int{4}
}
func (m *CallArgs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CallArgs.Unmarshal(m, b)
}
func (m *CallArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CallArgs.Marshal(b, m, deterministic)
}
func (m *CallArgs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CallArgs.Merge(m, src)
}
func (m *CallArgs) XXX_Size() int {
return xxx_messageInfo_CallArgs.Size(m)
}
func (m *CallArgs) XXX_DiscardUnknown() {
xxx_messageInfo_CallArgs.DiscardUnknown(m)
}
var xxx_messageInfo_CallArgs proto.InternalMessageInfo
func (m *CallArgs) GetFrom() []byte {
if m != nil {
return m.From
}
return nil
}
func (m *CallArgs) GetTo() []byte {
if m != nil {
return m.To
}
return nil
}
func (m *CallArgs) GetGas() int64 {
if m != nil {
return m.Gas
}
return 0
}
func (m *CallArgs) GetGasPrice() []byte {
if m != nil {
return m.GasPrice
}
return nil
}
func (m *CallArgs) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func (m *CallArgs) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*SendRawTransactionRequest)(nil), "meta.ring.v1.SendRawTransactionRequest")
proto.RegisterType((*SendRawTransactionResponse)(nil), "meta.ring.v1.SendRawTransactionResponse")
proto.RegisterType((*EstimateGasRequest)(nil), "meta.ring.v1.EstimateGasRequest")
proto.RegisterType((*EstimateGasResponse)(nil), "meta.ring.v1.EstimateGasResponse")
proto.RegisterType((*CallArgs)(nil), "meta.ring.v1.CallArgs")
}
func init() {
proto.RegisterFile("meta/ring/v1/request_response.proto", fileDescriptor_5ce663d43ac67a3b)
}
var fileDescriptor_5ce663d43ac67a3b = []byte{
// 261 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x91, 0xbf, 0x4f, 0xfb, 0x30,
0x10, 0xc5, 0x95, 0x1f, 0xad, 0xfa, 0x3d, 0x55, 0x5f, 0x55, 0x86, 0x21, 0xc0, 0x52, 0x85, 0xa5,
0x53, 0x42, 0xc5, 0xc4, 0x88, 0x10, 0x62, 0x45, 0x81, 0xbd, 0x3a, 0xda, 0xc3, 0x8a, 0x94, 0xd8,
0xe1, 0xce, 0x0d, 0x7f, 0x02, 0x33, 0xff, 0x31, 0xb2, 0x13, 0x50, 0x91, 0xba, 0xb3, 0xbd, 0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, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x70, 0x99,
0xb6, 0xf7, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/ring/v1/resource.proto
package meta_ring_v1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/ring/v1/resource.proto", fileDescriptor_92ae7458bb171b6e) }
var fileDescriptor_92ae7458bb171b6e = []byte{
// 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,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/ring/v1/service.proto
package meta_ring_v1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/ring/v1/service.proto", fileDescriptor_e770cde54344f3d9) }
var fileDescriptor_e770cde54344f3d9 = []byte{
// 173 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xca, 0x4d, 0x2d, 0x49,
0xd4, 0x2f, 0xca, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0xd4, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e,
0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0xc9, 0xe9, 0x81, 0xe4, 0xf4, 0xca, 0x0c,
0xa5, 0x94, 0x51, 0x54, 0x16, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0xc4, 0x17, 0xa5, 0x16, 0x17,
0xe4, 0xe7, 0x15, 0x43, 0xb5, 0x18, 0x5d, 0x60, 0xe4, 0xe2, 0x75, 0x2d, 0xc9, 0x08, 0x2a, 0x48,
0x0e, 0x86, 0x18, 0x25, 0x94, 0xc9, 0x25, 0x14, 0x9c, 0x9a, 0x97, 0x12, 0x94, 0x58, 0x1e, 0x52,
0x94, 0x98, 0x57, 0x9c, 0x98, 0x5c, 0x92, 0x99, 0x9f, 0x27, 0xa4, 0xae, 0x87, 0x6c, 0xb6, 0x1e,
0xa6, 0x8a, 0x20, 0x88, 0xf9, 0x52, 0x1a, 0x84, 0x15, 0x42, 0x1c, 0xa0, 0xc4, 0x20, 0x14, 0xc2,
0xc5, 0xed, 0x5a, 0x5c, 0x92, 0x99, 0x9b, 0x58, 0x92, 0xea, 0x9e, 0x58, 0x2c, 0xa4, 0x80, 0xaa,
0x15, 0x49, 0x0a, 0x66, 0xb8, 0x22, 0x1e, 0x15, 0x30, 0x53, 0x93, 0xd8, 0xc0, 0x3e, 0x33, 0x06,
0x04, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xa8, 0x28, 0x74, 0x2a, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// 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.
type EthRpcServiceClient interface {
SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error)
EstimateGas(ctx context.Context, in *EstimateGasRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error)
}
type ethRpcServiceClient struct {
cc *grpc.ClientConn
}
func NewEthRpcServiceClient(cc *grpc.ClientConn) EthRpcServiceClient {
return &ethRpcServiceClient{cc}
}
func (c *ethRpcServiceClient) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) {
out := new(SendRawTransactionResponse)
err := c.cc.Invoke(ctx, "/meta.ring.v1.EthRpcService/SendRawTransaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ethRpcServiceClient) EstimateGas(ctx context.Context, in *EstimateGasRequest, opts ...grpc.CallOption) (*EstimateGasResponse, error) {
out := new(EstimateGasResponse)
err := c.cc.Invoke(ctx, "/meta.ring.v1.EthRpcService/EstimateGas", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// EthRpcServiceServer is the server API for EthRpcService service.
type EthRpcServiceServer interface {
SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error)
EstimateGas(context.Context, *EstimateGasRequest) (*EstimateGasResponse, error)
}
// UnimplementedEthRpcServiceServer can be embedded to have forward compatible implementations.
type UnimplementedEthRpcServiceServer struct {
}
func (*UnimplementedEthRpcServiceServer) SendRawTransaction(ctx context.Context, req *SendRawTransactionRequest) (*SendRawTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented")
}
func (*UnimplementedEthRpcServiceServer) EstimateGas(ctx context.Context, req *EstimateGasRequest) (*EstimateGasResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method EstimateGas not implemented")
}
func RegisterEthRpcServiceServer(s *grpc.Server, srv EthRpcServiceServer) {
s.RegisterService(&_EthRpcService_serviceDesc, srv)
}
func _EthRpcService_SendRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendRawTransactionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EthRpcServiceServer).SendRawTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.ring.v1.EthRpcService/SendRawTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EthRpcServiceServer).SendRawTransaction(ctx, req.(*SendRawTransactionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _EthRpcService_EstimateGas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EstimateGasRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EthRpcServiceServer).EstimateGas(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.ring.v1.EthRpcService/EstimateGas",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EthRpcServiceServer).EstimateGas(ctx, req.(*EstimateGasRequest))
}
return interceptor(ctx, in, info, handler)
}
var _EthRpcService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.ring.v1.EthRpcService",
HandlerType: (*EthRpcServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SendRawTransaction",
Handler: _EthRpcService_SendRawTransaction_Handler,
},
{
MethodName: "EstimateGas",
Handler: _EthRpcService_EstimateGas_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "meta/ring/v1/service.proto",
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/sentry/v1/request_response.proto
package sentryv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The standard List request definition.
type ListShelvesRequest struct {
// 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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListShelvesRequest) Reset() { *m = ListShelvesRequest{} }
func (m *ListShelvesRequest) String() string { return proto.CompactTextString(m) }
func (*ListShelvesRequest) ProtoMessage() {}
func (*ListShelvesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9e5761bd645ac20, []int{0}
}
func (m *ListShelvesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesRequest.Unmarshal(m, b)
}
func (m *ListShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesRequest.Marshal(b, m, deterministic)
}
func (m *ListShelvesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesRequest.Merge(m, src)
}
func (m *ListShelvesRequest) XXX_Size() int {
return xxx_messageInfo_ListShelvesRequest.Size(m)
}
func (m *ListShelvesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListShelvesRequest proto.InternalMessageInfo
func (m *ListShelvesRequest) GetAfterTime() *timestamp.Timestamp {
if m != nil {
return m.AfterTime
}
return nil
}
func (m *ListShelvesRequest) GetBeforeTime() *timestamp.Timestamp {
if m != nil {
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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListShelvesResponse) Reset() { *m = ListShelvesResponse{} }
func (m *ListShelvesResponse) String() string { return proto.CompactTextString(m) }
func (*ListShelvesResponse) ProtoMessage() {}
func (*ListShelvesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c9e5761bd645ac20, []int{1}
}
func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesResponse.Unmarshal(m, b)
}
func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesResponse.Marshal(b, m, deterministic)
}
func (m *ListShelvesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesResponse.Merge(m, src)
}
func (m *ListShelvesResponse) XXX_Size() int {
return xxx_messageInfo_ListShelvesResponse.Size(m)
}
func (m *ListShelvesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListShelvesResponse proto.InternalMessageInfo
func (m *ListShelvesResponse) GetShelves() []*Shelf {
if m != nil {
return m.Shelves
}
return nil
}
func (m *ListShelvesResponse) GetNext() bool {
if m != nil {
return m.Next
}
return false
}
// 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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetShelvesRequest) Reset() { *m = BatchGetShelvesRequest{} }
func (m *BatchGetShelvesRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetShelvesRequest) ProtoMessage() {}
func (*BatchGetShelvesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9e5761bd645ac20, []int{2}
}
func (m *BatchGetShelvesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetShelvesRequest.Unmarshal(m, b)
}
func (m *BatchGetShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetShelvesRequest.Marshal(b, m, deterministic)
}
func (m *BatchGetShelvesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetShelvesRequest.Merge(m, src)
}
func (m *BatchGetShelvesRequest) XXX_Size() int {
return xxx_messageInfo_BatchGetShelvesRequest.Size(m)
}
func (m *BatchGetShelvesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetShelvesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetShelvesRequest proto.InternalMessageInfo
func (m *BatchGetShelvesRequest) GetIds() []string {
if m != nil {
return m.Ids
}
return nil
}
// The standard BatchGet response definition.
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_c9e5761bd645ac20, []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 {
return m.Shelves
}
return nil
}
// The standard Get request definition.
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_c9e5761bd645ac20, []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 {
return m.Id
}
return ""
}
// The standard Get response definition.
type GetShelfResponse struct {
// The retrieved 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 *GetShelfResponse) Reset() { *m = GetShelfResponse{} }
func (m *GetShelfResponse) String() string { return proto.CompactTextString(m) }
func (*GetShelfResponse) ProtoMessage() {}
func (*GetShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c9e5761bd645ac20, []int{5}
}
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 *GetShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Create request definition.
type CreateShelfRequest struct {
// The shelf to create.
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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateShelfRequest) Reset() { *m = CreateShelfRequest{} }
func (m *CreateShelfRequest) String() string { return proto.CompactTextString(m) }
func (*CreateShelfRequest) ProtoMessage() {}
func (*CreateShelfRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9e5761bd645ac20, []int{6}
}
func (m *CreateShelfRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfRequest.Unmarshal(m, b)
}
func (m *CreateShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfRequest.Marshal(b, m, deterministic)
}
func (m *CreateShelfRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfRequest.Merge(m, src)
}
func (m *CreateShelfRequest) XXX_Size() int {
return xxx_messageInfo_CreateShelfRequest.Size(m)
}
func (m *CreateShelfRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateShelfRequest proto.InternalMessageInfo
func (m *CreateShelfRequest) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
func (m *CreateShelfRequest) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
// The standard Create response definition.
type CreateShelfResponse struct {
// The created 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 *CreateShelfResponse) Reset() { *m = CreateShelfResponse{} }
func (m *CreateShelfResponse) String() string { return proto.CompactTextString(m) }
func (*CreateShelfResponse) ProtoMessage() {}
func (*CreateShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c9e5761bd645ac20, []int{7}
}
func (m *CreateShelfResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfResponse.Unmarshal(m, b)
}
func (m *CreateShelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfResponse.Marshal(b, m, deterministic)
}
func (m *CreateShelfResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfResponse.Merge(m, src)
}
func (m *CreateShelfResponse) XXX_Size() int {
return xxx_messageInfo_CreateShelfResponse.Size(m)
}
func (m *CreateShelfResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateShelfResponse proto.InternalMessageInfo
func (m *CreateShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Update request definition.
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_c9e5761bd645ac20, []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 {
return m.Shelf
}
return nil
}
func (m *UpdateShelfRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// 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_c9e5761bd645ac20, []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 *UpdateShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Delete request definition.
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_c9e5761bd645ac20, []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 {
return m.Id
}
return ""
}
// 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_c9e5761bd645ac20, []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 *DeleteShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
func init() {
proto.RegisterType((*ListShelvesRequest)(nil), "meta.sentry.v1.ListShelvesRequest")
proto.RegisterType((*ListShelvesResponse)(nil), "meta.sentry.v1.ListShelvesResponse")
proto.RegisterType((*BatchGetShelvesRequest)(nil), "meta.sentry.v1.BatchGetShelvesRequest")
proto.RegisterType((*BatchGetShelvesResponse)(nil), "meta.sentry.v1.BatchGetShelvesResponse")
proto.RegisterType((*GetShelfRequest)(nil), "meta.sentry.v1.GetShelfRequest")
proto.RegisterType((*GetShelfResponse)(nil), "meta.sentry.v1.GetShelfResponse")
proto.RegisterType((*CreateShelfRequest)(nil), "meta.sentry.v1.CreateShelfRequest")
proto.RegisterType((*CreateShelfResponse)(nil), "meta.sentry.v1.CreateShelfResponse")
proto.RegisterType((*UpdateShelfRequest)(nil), "meta.sentry.v1.UpdateShelfRequest")
proto.RegisterType((*UpdateShelfResponse)(nil), "meta.sentry.v1.UpdateShelfResponse")
proto.RegisterType((*DeleteShelfRequest)(nil), "meta.sentry.v1.DeleteShelfRequest")
proto.RegisterType((*DeleteShelfResponse)(nil), "meta.sentry.v1.DeleteShelfResponse")
}
func init() {
proto.RegisterFile("meta/sentry/v1/request_response.proto", fileDescriptor_c9e5761bd645ac20)
}
var fileDescriptor_c9e5761bd645ac20 = []byte{
// 468 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x5b, 0x6f, 0xd3, 0x30,
0x14, 0xc7, 0x95, 0xb4, 0x65, 0xcd, 0xa9, 0x34, 0x26, 0x8f, 0x4b, 0xa8, 0x34, 0x11, 0x22, 0x90,
0x2a, 0x90, 0x1c, 0x75, 0x3c, 0xa1, 0x3d, 0x20, 0x15, 0x04, 0x02, 0xc1, 0x8b, 0x07, 0x2f, 0x7b,
0x09, 0xee, 0x72, 0xb2, 0x59, 0x4b, 0x9a, 0x60, 0xbb, 0x55, 0xd9, 0x87, 0xe0, 0x13, 0xf2, 0x61,
0x90, 0xed, 0x54, 0x53, 0x52, 0xae, 0x7d, 0xf3, 0xe5, 0x7f, 0xfe, 0xbf, 0x73, 0xb1, 0xe1, 0x49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 0xcd,
0x6a, 0x3a, 0xbf, 0x65, 0x2b, 0x7b, 0xfe, 0x33, 0x00, 0x00, 0xff, 0xff, 0xa0, 0xbc, 0x25, 0x59,
0xa9, 0x04, 0x00, 0x00,
}
...@@ -21,76 +21,64 @@ message ListShelvesRequest { ...@@ -21,76 +21,64 @@ message ListShelvesRequest {
string example_id = 5; string example_id = 5;
} }
// The standard List response definition. message LimitInfoRequest {
message ListShelvesResponse { // block height to get limit info from contract.
// The retrieved list of shelves. uint32 height = 1;
repeated Shelf shelves = 1;
// True if more shelves are available.
bool next = 2;
} }
// The standard BatchGet request definition. message LimitInfoResponse {
message BatchGetShelvesRequest { // tx count in one batchTx.
// The ids of the requested shelves. uint32 batch_tx_count = 1;
repeated string ids = 1; // batchTx count in one block.
uint32 block_batch_count = 2;
} }
// The standard BatchGet response definition. message CommitBatchTxRequest {
message BatchGetShelvesResponse { bytes txdata = 1;
// The retrieved shelves.
repeated Shelf shelves = 1;
} }
// The standard Get request definition. message CommitBatchTxResponse {
message GetShelfRequest { string txhash = 1;
// The id of the requested shelf. string err_msg = 2;
string id = 1;
} }
// The standard Get response definition. message GetReceiptRequest {
message GetShelfResponse { string txhash = 1;
// The retrieved shelf.
Shelf shelf = 1;
} }
// The standard Create request definition. message GetReceiptResponse {
message CreateShelfRequest { bytes receipt_data = 1;
// The shelf to create. string err_msg = 2;
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 GetNewBlockRequest {
message CreateShelfResponse { uint32 last_block = 1;
// The created shelf.
Shelf shelf = 1;
} }
// The standard Update request definition. message GetNewBlockResponse {
message UpdateShelfRequest { uint32 block_num = 1;
// The id of the shelf to be updated. uint64 block_time = 2;
string id = 1; string batch_txs = 3;
// 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 CommitBlockRequest {
message UpdateShelfResponse { string validator = 1;
// The updated shelf. uint64 block_number = 2;
Shelf shelf = 1; bytes block_data = 3;
} }
// The standard Delete request definition. message CommitBlockResponse {
message DeleteShelfRequest { string txhash = 1;
// The id of the shelf to be deleted. string err_msg = 2;
string id = 1;
} }
// The standard Delete response definition. message GetConsensusedBlockRequest {
message DeleteShelfResponse { uint64 block_number = 1;
// The deleted shelf.
Shelf shelf = 1;
} }
message GetConsensusedBlockResponse {
uint64 block_number = 1;
bytes block_data = 2;
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/sentry/v1/resource.proto
package sentryv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// 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_166ee547e2a0034f, []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.sentry.v1.Shelf")
}
func init() { proto.RegisterFile("meta/sentry/v1/resource.proto", fileDescriptor_166ee547e2a0034f) }
var fileDescriptor_166ee547e2a0034f = []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, 0x8d, 0xfd, 0xce, 0x74, 0x60, 0x22, 0x4d, 0x1a, 0xab, 0x53, 0x27, 0xc8,
0xe9, 0xe8, 0xe6, 0xe6, 0xe2, 0x50, 0x9d, 0x5c, 0x2e, 0xb4, 0x7c, 0xad, 0x24, 0x50, 0x08, 0x70,
0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= "sentryv1"; ...@@ -5,7 +5,7 @@ option go_package = "sentryv1";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
// The default Shelf resource representation. // The default Shelf resource representation.
message Shelf { message Example {
// The unique shelf id. // The unique shelf id.
string id = 1; string id = 1;
// Indicates when the shelf was created. // Indicates when the shelf was created.
......
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/sentry/v1/service.proto
package sentryv1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/sentry/v1/service.proto", fileDescriptor_a5b44e7e1bf98d0f) }
var fileDescriptor_a5b44e7e1bf98d0f = []byte{
// 241 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0x4d, 0x2d, 0x49,
0xd4, 0x2f, 0x4e, 0xcd, 0x2b, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb,
0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x03, 0xc9, 0xea, 0x41, 0x64, 0xf5,
0xca, 0x0c, 0xa5, 0x54, 0xd1, 0x54, 0x17, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0xc4, 0x17, 0xa5,
0x16, 0x17, 0xe4, 0xe7, 0x15, 0x43, 0xb5, 0x19, 0xad, 0x65, 0xe1, 0xe2, 0x09, 0xce, 0x48, 0xcd,
0x49, 0x0b, 0x86, 0x98, 0x26, 0x14, 0xc1, 0xc5, 0xed, 0x93, 0x59, 0x5c, 0x02, 0x12, 0x2b, 0x4b,
0x2d, 0x16, 0x52, 0xd2, 0x43, 0x35, 0x57, 0x0f, 0x49, 0x32, 0x08, 0x62, 0xa4, 0x94, 0x32, 0x5e,
0x35, 0x10, 0xeb, 0x94, 0x18, 0x84, 0x52, 0xb8, 0xf8, 0x9d, 0x12, 0x4b, 0x92, 0x33, 0xdc, 0x53,
0xe1, 0xa6, 0xab, 0xa1, 0xeb, 0x44, 0x53, 0x00, 0xb3, 0x41, 0x9d, 0xa0, 0x3a, 0xb8, 0x2d, 0xfe,
0x5c, 0x1c, 0x50, 0xf1, 0x34, 0x21, 0x79, 0x74, 0x6d, 0x30, 0x19, 0x98, 0xb9, 0x0a, 0xb8, 0x15,
0xc0, 0x0d, 0x8c, 0xe0, 0xe2, 0x76, 0x2e, 0x4a, 0x4d, 0x2c, 0x49, 0x85, 0x98, 0x89, 0x11, 0x20,
0x48, 0x92, 0x38, 0x03, 0x04, 0x45, 0x0d, 0xb2, 0xc9, 0xa1, 0x05, 0x29, 0xb8, 0x4d, 0x46, 0x92,
0xc4, 0x69, 0x32, 0x8a, 0x1a, 0x64, 0x93, 0x5d, 0x52, 0x73, 0x52, 0x71, 0x9a, 0x8c, 0x24, 0x89,
0xd3, 0x64, 0x14, 0x35, 0x30, 0x93, 0x9d, 0xb8, 0xa2, 0x38, 0x20, 0x4a, 0xca, 0x0c, 0x93, 0xd8,
0xc0, 0x49, 0xc8, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x4b, 0x06, 0x18, 0x99, 0x02, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ShelfServiceClient is the client API for ShelfService service.
//
// 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 {
// ListShelves retrieves a list of shelf resources from the server.
ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, 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 {
cc *grpc.ClientConn
}
func NewShelfServiceClient(cc *grpc.ClientConn) ShelfServiceClient {
return &shelfServiceClient{cc}
}
func (c *shelfServiceClient) ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error) {
out := new(ListShelvesResponse)
err := c.cc.Invoke(ctx, "/meta.sentry.v1.ShelfService/ListShelves", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) BatchGetShelves(ctx context.Context, in *BatchGetShelvesRequest, opts ...grpc.CallOption) (*BatchGetShelvesResponse, error) {
out := new(BatchGetShelvesResponse)
err := c.cc.Invoke(ctx, "/meta.sentry.v1.ShelfService/BatchGetShelves", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*GetShelfResponse, error) {
out := new(GetShelfResponse)
err := c.cc.Invoke(ctx, "/meta.sentry.v1.ShelfService/GetShelf", in, out, opts...)
if err != nil {
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.sentry.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.sentry.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.sentry.v1.ShelfService/DeleteShelf", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ShelfServiceServer is the server API for ShelfService service.
type ShelfServiceServer interface {
// 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.sentry.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) {
in := new(BatchGetShelvesRequest)
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.sentry.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 _ShelfService_GetShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
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.sentry.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) {
in := new(CreateShelfRequest)
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.sentry.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) {
in := new(UpdateShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).UpdateShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.sentry.v1.ShelfService/UpdateShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).UpdateShelf(ctx, req.(*UpdateShelfRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ShelfService_DeleteShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).DeleteShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.sentry.v1.ShelfService/DeleteShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).DeleteShelf(ctx, req.(*DeleteShelfRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ShelfService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.sentry.v1.ShelfService",
HandlerType: (*ShelfServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListShelves",
Handler: _ShelfService_ListShelves_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",
Handler: _ShelfService_DeleteShelf_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "meta/sentry/v1/service.proto",
}
...@@ -4,14 +4,18 @@ package meta.sentry.v1; ...@@ -4,14 +4,18 @@ package meta.sentry.v1;
option go_package = "sentryv1"; option go_package = "sentryv1";
import "meta/sentry/v1/request_response.proto"; import "meta/sentry/v1/request_response.proto";
// SentryService methods for other module. // SentryService methods for other module.
service SentryService { service SentryService {
// LimitInfo get latest param for make batch tx. // LimitInfo get latest param for make batch tx.
rpc LimitInfo() returns() {} rpc LimitInfo(LimitInfoRequest) returns(LimitInfoResponse) {}
rpc CommitBatchTx() returns() {} // CommitBatchTx used to commit batch tx to tx-sort-network
rpc GetReceipt() returns() {} rpc CommitBatchTx(CommitBatchTxRequest) returns(CommitBatchTxResponse) {}
rpc GetNewBlock() returns() {} // GetTxReceipt from tx-sort-network with txhash
rpc CommitBlockState() returns() {} rpc GetReceipt(GetReceiptRequest) returns(GetReceiptResponse) {}
rpc GetConsensusedBlock() returns() {} // GetNewBlock used for nebula get new virtual block info from contract with lastblock.
rpc GetNewBlock(GetNewBlockRequest) returns(GetNewBlockResponse) {}
// CommitBlock used for nebula commit new block and state info to contract.
rpc CommitBlock(CommitBlockRequest) returns(CommitBlockResponse) {}
// GetConsensusedBlock used for nebula get special block consensus result.
rpc GetConsensusedBlock(GetConsensusedBlockRequest) returns(GetConsensusedBlockResponse) {}
} }
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/txchecker/v1/request_response.proto
package txcheckerv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// The standard List request definition.
type ListShelvesRequest struct {
// 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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListShelvesRequest) Reset() { *m = ListShelvesRequest{} }
func (m *ListShelvesRequest) String() string { return proto.CompactTextString(m) }
func (*ListShelvesRequest) ProtoMessage() {}
func (*ListShelvesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_814d0aab1ee7f484, []int{0}
}
func (m *ListShelvesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesRequest.Unmarshal(m, b)
}
func (m *ListShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesRequest.Marshal(b, m, deterministic)
}
func (m *ListShelvesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesRequest.Merge(m, src)
}
func (m *ListShelvesRequest) XXX_Size() int {
return xxx_messageInfo_ListShelvesRequest.Size(m)
}
func (m *ListShelvesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListShelvesRequest proto.InternalMessageInfo
func (m *ListShelvesRequest) GetAfterTime() *timestamp.Timestamp {
if m != nil {
return m.AfterTime
}
return nil
}
func (m *ListShelvesRequest) GetBeforeTime() *timestamp.Timestamp {
if m != nil {
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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListShelvesResponse) Reset() { *m = ListShelvesResponse{} }
func (m *ListShelvesResponse) String() string { return proto.CompactTextString(m) }
func (*ListShelvesResponse) ProtoMessage() {}
func (*ListShelvesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_814d0aab1ee7f484, []int{1}
}
func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListShelvesResponse.Unmarshal(m, b)
}
func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListShelvesResponse.Marshal(b, m, deterministic)
}
func (m *ListShelvesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListShelvesResponse.Merge(m, src)
}
func (m *ListShelvesResponse) XXX_Size() int {
return xxx_messageInfo_ListShelvesResponse.Size(m)
}
func (m *ListShelvesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListShelvesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListShelvesResponse proto.InternalMessageInfo
func (m *ListShelvesResponse) GetShelves() []*Shelf {
if m != nil {
return m.Shelves
}
return nil
}
func (m *ListShelvesResponse) GetNext() bool {
if m != nil {
return m.Next
}
return false
}
// 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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetShelvesRequest) Reset() { *m = BatchGetShelvesRequest{} }
func (m *BatchGetShelvesRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetShelvesRequest) ProtoMessage() {}
func (*BatchGetShelvesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_814d0aab1ee7f484, []int{2}
}
func (m *BatchGetShelvesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetShelvesRequest.Unmarshal(m, b)
}
func (m *BatchGetShelvesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetShelvesRequest.Marshal(b, m, deterministic)
}
func (m *BatchGetShelvesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetShelvesRequest.Merge(m, src)
}
func (m *BatchGetShelvesRequest) XXX_Size() int {
return xxx_messageInfo_BatchGetShelvesRequest.Size(m)
}
func (m *BatchGetShelvesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetShelvesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetShelvesRequest proto.InternalMessageInfo
func (m *BatchGetShelvesRequest) GetIds() []string {
if m != nil {
return m.Ids
}
return nil
}
// The standard BatchGet response definition.
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_814d0aab1ee7f484, []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 {
return m.Shelves
}
return nil
}
// The standard Get request definition.
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_814d0aab1ee7f484, []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 {
return m.Id
}
return ""
}
// The standard Get response definition.
type GetShelfResponse struct {
// The retrieved 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 *GetShelfResponse) Reset() { *m = GetShelfResponse{} }
func (m *GetShelfResponse) String() string { return proto.CompactTextString(m) }
func (*GetShelfResponse) ProtoMessage() {}
func (*GetShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_814d0aab1ee7f484, []int{5}
}
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 *GetShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Create request definition.
type CreateShelfRequest struct {
// The shelf to create.
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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateShelfRequest) Reset() { *m = CreateShelfRequest{} }
func (m *CreateShelfRequest) String() string { return proto.CompactTextString(m) }
func (*CreateShelfRequest) ProtoMessage() {}
func (*CreateShelfRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_814d0aab1ee7f484, []int{6}
}
func (m *CreateShelfRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfRequest.Unmarshal(m, b)
}
func (m *CreateShelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfRequest.Marshal(b, m, deterministic)
}
func (m *CreateShelfRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfRequest.Merge(m, src)
}
func (m *CreateShelfRequest) XXX_Size() int {
return xxx_messageInfo_CreateShelfRequest.Size(m)
}
func (m *CreateShelfRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateShelfRequest proto.InternalMessageInfo
func (m *CreateShelfRequest) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
func (m *CreateShelfRequest) GetExampleId() string {
if m != nil {
return m.ExampleId
}
return ""
}
// The standard Create response definition.
type CreateShelfResponse struct {
// The created 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 *CreateShelfResponse) Reset() { *m = CreateShelfResponse{} }
func (m *CreateShelfResponse) String() string { return proto.CompactTextString(m) }
func (*CreateShelfResponse) ProtoMessage() {}
func (*CreateShelfResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_814d0aab1ee7f484, []int{7}
}
func (m *CreateShelfResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateShelfResponse.Unmarshal(m, b)
}
func (m *CreateShelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateShelfResponse.Marshal(b, m, deterministic)
}
func (m *CreateShelfResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateShelfResponse.Merge(m, src)
}
func (m *CreateShelfResponse) XXX_Size() int {
return xxx_messageInfo_CreateShelfResponse.Size(m)
}
func (m *CreateShelfResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateShelfResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateShelfResponse proto.InternalMessageInfo
func (m *CreateShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Update request definition.
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_814d0aab1ee7f484, []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 {
return m.Shelf
}
return nil
}
func (m *UpdateShelfRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// 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_814d0aab1ee7f484, []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 *UpdateShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
// The standard Delete request definition.
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_814d0aab1ee7f484, []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 {
return m.Id
}
return ""
}
// 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_814d0aab1ee7f484, []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 *DeleteShelfResponse) GetShelf() *Shelf {
if m != nil {
return m.Shelf
}
return nil
}
func init() {
proto.RegisterType((*ListShelvesRequest)(nil), "meta.txchecker.v1.ListShelvesRequest")
proto.RegisterType((*ListShelvesResponse)(nil), "meta.txchecker.v1.ListShelvesResponse")
proto.RegisterType((*BatchGetShelvesRequest)(nil), "meta.txchecker.v1.BatchGetShelvesRequest")
proto.RegisterType((*BatchGetShelvesResponse)(nil), "meta.txchecker.v1.BatchGetShelvesResponse")
proto.RegisterType((*GetShelfRequest)(nil), "meta.txchecker.v1.GetShelfRequest")
proto.RegisterType((*GetShelfResponse)(nil), "meta.txchecker.v1.GetShelfResponse")
proto.RegisterType((*CreateShelfRequest)(nil), "meta.txchecker.v1.CreateShelfRequest")
proto.RegisterType((*CreateShelfResponse)(nil), "meta.txchecker.v1.CreateShelfResponse")
proto.RegisterType((*UpdateShelfRequest)(nil), "meta.txchecker.v1.UpdateShelfRequest")
proto.RegisterType((*UpdateShelfResponse)(nil), "meta.txchecker.v1.UpdateShelfResponse")
proto.RegisterType((*DeleteShelfRequest)(nil), "meta.txchecker.v1.DeleteShelfRequest")
proto.RegisterType((*DeleteShelfResponse)(nil), "meta.txchecker.v1.DeleteShelfResponse")
}
func init() {
proto.RegisterFile("meta/txchecker/v1/request_response.proto", fileDescriptor_814d0aab1ee7f484)
}
var fileDescriptor_814d0aab1ee7f484 = []byte{
// 470 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0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64, 0xcf,
0x5c, 0x7f, 0x58, 0x40, 0xbe, 0x34, 0xf9, 0x30, 0xd9, 0x41, 0x5b, 0xae, 0x65, 0xed, 0x7f, 0x4b,
0xfe, 0x04, 0xdc, 0x8d, 0x56, 0xd5, 0x5f, 0x4f, 0xbf, 0xcc, 0xdb, 0x1e, 0xf4, 0x7b, 0xf5, 0x3b,
0x4f, 0xa9, 0x58, 0x27, 0x60, 0x70, 0xb5, 0x56, 0xa5, 0xf5, 0x52, 0xda, 0xb3, 0xb4, 0x17, 0x40,
0xde, 0x62, 0x89, 0x7f, 0xae, 0x4c, 0x99, 0xf5, 0xa8, 0xfd, 0xcc, 0x16, 0x77, 0xbf, 0xba, 0x57,
0x97, 0xdb, 0xd9, 0xf2, 0x8e, 0x2e, 0xf1, 0xd5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x02,
0x8a, 0xa4, 0xcd, 0x04, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/txchecker/v1/resource.proto
package txcheckerv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// 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_371ed34ebd68ee1a, []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.txchecker.v1.Shelf")
}
func init() { proto.RegisterFile("meta/txchecker/v1/resource.proto", fileDescriptor_371ed34ebd68ee1a) }
var fileDescriptor_371ed34ebd68ee1a = []byte{
// 229 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00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fb, 0xe6, 0x06, 0xc9, 0x22, 0x01, 0xd5, 0x69, 0x7b, 0xe3, 0x06, 0x5f, 0xae, 0x3e, 0xab, 0xf9,
0x0c, 0x63, 0xbb, 0xbd, 0x48, 0x0f, 0x3e, 0xfd, 0x05, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x04, 0x88,
0x0c, 0x43, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: meta/txchecker/v1/service.proto
package txcheckerv1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("meta/txchecker/v1/service.proto", fileDescriptor_d8d182a57e521e66) }
var fileDescriptor_d8d182a57e521e66 = []byte{
// 245 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4d, 0x2d, 0x49,
0xd4, 0x2f, 0xa9, 0x48, 0xce, 0x48, 0x4d, 0xce, 0x4e, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x4e,
0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x04, 0x29, 0xd0,
0x83, 0x2b, 0xd0, 0x2b, 0x33, 0x94, 0xd2, 0xc0, 0xd4, 0x53, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c,
0x12, 0x5f, 0x94, 0x5a, 0x5c, 0x90, 0x9f, 0x57, 0x0c, 0xd5, 0x6c, 0x74, 0x91, 0x85, 0x8b, 0x27,
0x38, 0x23, 0x35, 0x27, 0x2d, 0x18, 0x62, 0xa6, 0x50, 0x1c, 0x17, 0xb7, 0x4f, 0x66, 0x71, 0x09,
0x48, 0xac, 0x2c, 0xb5, 0x58, 0x48, 0x55, 0x0f, 0xc3, 0x74, 0x3d, 0x24, 0xf9, 0x20, 0x88, 0xa9,
0x52, 0x6a, 0x84, 0x94, 0x41, 0x2c, 0x55, 0x62, 0x10, 0xca, 0xe2, 0xe2, 0x77, 0x4a, 0x2c, 0x49,
0xce, 0x70, 0x4f, 0x85, 0xdb, 0xa1, 0x89, 0x45, 0x33, 0x9a, 0x1a, 0x98, 0x3d, 0x5a, 0xc4, 0x28,
0x85, 0xdb, 0x15, 0xca, 0xc5, 0x01, 0x15, 0x4f, 0x13, 0x52, 0xc2, 0xa2, 0x13, 0x26, 0x09, 0x33,
0x5d, 0x19, 0xaf, 0x1a, 0xb8, 0xb1, 0x71, 0x5c, 0xdc, 0xce, 0x45, 0xa9, 0x89, 0x25, 0xa9, 0x10,
0x93, 0xb1, 0x05, 0x11, 0x92, 0x3c, 0xbe, 0x20, 0x42, 0x51, 0x86, 0x6c, 0x7e, 0x68, 0x41, 0x0a,
0x5e, 0xf3, 0x91, 0xe4, 0xf1, 0x99, 0x8f, 0xa2, 0x0c, 0xd9, 0x7c, 0x97, 0xd4, 0x9c, 0x54, 0x7c,
0xe6, 0x23, 0xc9, 0xe3, 0x33, 0x1f, 0x45, 0x19, 0xcc, 0x7c, 0x27, 0xde, 0x28, 0x6e, 0xb8, 0xaa,
0x32, 0xc3, 0x24, 0x36, 0x70, 0x4a, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x53, 0x7b,
0x96, 0xc9, 0x02, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ShelfServiceClient is the client API for ShelfService service.
//
// 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 {
// ListShelves retrieves a list of shelf resources from the server.
ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, 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 {
cc *grpc.ClientConn
}
func NewShelfServiceClient(cc *grpc.ClientConn) ShelfServiceClient {
return &shelfServiceClient{cc}
}
func (c *shelfServiceClient) ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error) {
out := new(ListShelvesResponse)
err := c.cc.Invoke(ctx, "/meta.txchecker.v1.ShelfService/ListShelves", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) BatchGetShelves(ctx context.Context, in *BatchGetShelvesRequest, opts ...grpc.CallOption) (*BatchGetShelvesResponse, error) {
out := new(BatchGetShelvesResponse)
err := c.cc.Invoke(ctx, "/meta.txchecker.v1.ShelfService/BatchGetShelves", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *shelfServiceClient) GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*GetShelfResponse, error) {
out := new(GetShelfResponse)
err := c.cc.Invoke(ctx, "/meta.txchecker.v1.ShelfService/GetShelf", in, out, opts...)
if err != nil {
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.txchecker.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.txchecker.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.txchecker.v1.ShelfService/DeleteShelf", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ShelfServiceServer is the server API for ShelfService service.
type ShelfServiceServer interface {
// 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.txchecker.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) {
in := new(BatchGetShelvesRequest)
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.txchecker.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 _ShelfService_GetShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
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.txchecker.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) {
in := new(CreateShelfRequest)
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.txchecker.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) {
in := new(UpdateShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).UpdateShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.txchecker.v1.ShelfService/UpdateShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).UpdateShelf(ctx, req.(*UpdateShelfRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ShelfService_DeleteShelf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteShelfRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ShelfServiceServer).DeleteShelf(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/meta.txchecker.v1.ShelfService/DeleteShelf",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ShelfServiceServer).DeleteShelf(ctx, req.(*DeleteShelfRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ShelfService_serviceDesc = grpc.ServiceDesc{
ServiceName: "meta.txchecker.v1.ShelfService",
HandlerType: (*ShelfServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListShelves",
Handler: _ShelfService_ListShelves_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",
Handler: _ShelfService_DeleteShelf_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "meta/txchecker/v1/service.proto",
}
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