63 Star 183 Fork 3

Gitee 极速下载/hyperledger-fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hyperledger/fabric
克隆/下载
sample.pb.go 12.49 KB
一键复制 编辑 原始数据 按行查看 历史
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: sample.proto
/*
Package testprotos is a generated protocol buffer package.
It is generated from these files:
sample.proto
It has these top-level messages:
SimpleMsg
NestedMsg
StaticallyOpaqueMsg
VariablyOpaqueMsg
DynamicMsg
ContextlessMsg
*/
package testprotos
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
// SimpleMsg is designed to test that all three types of message fields, plain, map,
// and slice are handled by the protolator tool
type SimpleMsg struct {
PlainField string `protobuf:"bytes,1,opt,name=plain_field,json=plainField" json:"plain_field,omitempty"`
MapField map[string]string `protobuf:"bytes,2,rep,name=map_field,json=mapField" json:"map_field,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
SliceField []string `protobuf:"bytes,3,rep,name=slice_field,json=sliceField" json:"slice_field,omitempty"`
}
func (m *SimpleMsg) Reset() { *m = SimpleMsg{} }
func (m *SimpleMsg) String() string { return proto.CompactTextString(m) }
func (*SimpleMsg) ProtoMessage() {}
func (*SimpleMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *SimpleMsg) GetPlainField() string {
if m != nil {
return m.PlainField
}
return ""
}
func (m *SimpleMsg) GetMapField() map[string]string {
if m != nil {
return m.MapField
}
return nil
}
func (m *SimpleMsg) GetSliceField() []string {
if m != nil {
return m.SliceField
}
return nil
}
// NestedMsg is designed to test the nested message component
type NestedMsg struct {
PlainNestedField *SimpleMsg `protobuf:"bytes,1,opt,name=plain_nested_field,json=plainNestedField" json:"plain_nested_field,omitempty"`
MapNestedField map[string]*SimpleMsg `protobuf:"bytes,2,rep,name=map_nested_field,json=mapNestedField" json:"map_nested_field,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
SliceNestedField []*SimpleMsg `protobuf:"bytes,3,rep,name=slice_nested_field,json=sliceNestedField" json:"slice_nested_field,omitempty"`
}
func (m *NestedMsg) Reset() { *m = NestedMsg{} }
func (m *NestedMsg) String() string { return proto.CompactTextString(m) }
func (*NestedMsg) ProtoMessage() {}
func (*NestedMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *NestedMsg) GetPlainNestedField() *SimpleMsg {
if m != nil {
return m.PlainNestedField
}
return nil
}
func (m *NestedMsg) GetMapNestedField() map[string]*SimpleMsg {
if m != nil {
return m.MapNestedField
}
return nil
}
func (m *NestedMsg) GetSliceNestedField() []*SimpleMsg {
if m != nil {
return m.SliceNestedField
}
return nil
}
// StaticallyOpaqueMsg is designed to test the statically opaque message component
// All fields are statically marshaled to the NestedMsg type
type StaticallyOpaqueMsg struct {
PlainOpaqueField []byte `protobuf:"bytes,1,opt,name=plain_opaque_field,json=plainOpaqueField,proto3" json:"plain_opaque_field,omitempty"`
MapOpaqueField map[string][]byte `protobuf:"bytes,2,rep,name=map_opaque_field,json=mapOpaqueField" json:"map_opaque_field,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"`
SliceOpaqueField [][]byte `protobuf:"bytes,3,rep,name=slice_opaque_field,json=sliceOpaqueField,proto3" json:"slice_opaque_field,omitempty"`
}
func (m *StaticallyOpaqueMsg) Reset() { *m = StaticallyOpaqueMsg{} }
func (m *StaticallyOpaqueMsg) String() string { return proto.CompactTextString(m) }
func (*StaticallyOpaqueMsg) ProtoMessage() {}
func (*StaticallyOpaqueMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *StaticallyOpaqueMsg) GetPlainOpaqueField() []byte {
if m != nil {
return m.PlainOpaqueField
}
return nil
}
func (m *StaticallyOpaqueMsg) GetMapOpaqueField() map[string][]byte {
if m != nil {
return m.MapOpaqueField
}
return nil
}
func (m *StaticallyOpaqueMsg) GetSliceOpaqueField() [][]byte {
if m != nil {
return m.SliceOpaqueField
}
return nil
}
// VariablyOpaqueMsg is designed to test the staticaly opaque message component
// The opaque type is determined by opaque_type
type VariablyOpaqueMsg struct {
OpaqueType string `protobuf:"bytes,1,opt,name=opaque_type,json=opaqueType" json:"opaque_type,omitempty"`
PlainOpaqueField []byte `protobuf:"bytes,2,opt,name=plain_opaque_field,json=plainOpaqueField,proto3" json:"plain_opaque_field,omitempty"`
MapOpaqueField map[string][]byte `protobuf:"bytes,3,rep,name=map_opaque_field,json=mapOpaqueField" json:"map_opaque_field,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"`
SliceOpaqueField [][]byte `protobuf:"bytes,4,rep,name=slice_opaque_field,json=sliceOpaqueField,proto3" json:"slice_opaque_field,omitempty"`
}
func (m *VariablyOpaqueMsg) Reset() { *m = VariablyOpaqueMsg{} }
func (m *VariablyOpaqueMsg) String() string { return proto.CompactTextString(m) }
func (*VariablyOpaqueMsg) ProtoMessage() {}
func (*VariablyOpaqueMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *VariablyOpaqueMsg) GetOpaqueType() string {
if m != nil {
return m.OpaqueType
}
return ""
}
func (m *VariablyOpaqueMsg) GetPlainOpaqueField() []byte {
if m != nil {
return m.PlainOpaqueField
}
return nil
}
func (m *VariablyOpaqueMsg) GetMapOpaqueField() map[string][]byte {
if m != nil {
return m.MapOpaqueField
}
return nil
}
func (m *VariablyOpaqueMsg) GetSliceOpaqueField() [][]byte {
if m != nil {
return m.SliceOpaqueField
}
return nil
}
// DynamicMsg is designed to test the dynamic message component
// The dynamic wrapper applied to ContextlessMsg is determined by
// dynamic_type
type DynamicMsg struct {
DynamicType string `protobuf:"bytes,1,opt,name=dynamic_type,json=dynamicType" json:"dynamic_type,omitempty"`
PlainDynamicField *ContextlessMsg `protobuf:"bytes,2,opt,name=plain_dynamic_field,json=plainDynamicField" json:"plain_dynamic_field,omitempty"`
MapDynamicField map[string]*ContextlessMsg `protobuf:"bytes,3,rep,name=map_dynamic_field,json=mapDynamicField" json:"map_dynamic_field,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
SliceDynamicField []*ContextlessMsg `protobuf:"bytes,4,rep,name=slice_dynamic_field,json=sliceDynamicField" json:"slice_dynamic_field,omitempty"`
}
func (m *DynamicMsg) Reset() { *m = DynamicMsg{} }
func (m *DynamicMsg) String() string { return proto.CompactTextString(m) }
func (*DynamicMsg) ProtoMessage() {}
func (*DynamicMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *DynamicMsg) GetDynamicType() string {
if m != nil {
return m.DynamicType
}
return ""
}
func (m *DynamicMsg) GetPlainDynamicField() *ContextlessMsg {
if m != nil {
return m.PlainDynamicField
}
return nil
}
func (m *DynamicMsg) GetMapDynamicField() map[string]*ContextlessMsg {
if m != nil {
return m.MapDynamicField
}
return nil
}
func (m *DynamicMsg) GetSliceDynamicField() []*ContextlessMsg {
if m != nil {
return m.SliceDynamicField
}
return nil
}
// ContextlessMsg is designed to carry a message of completely arbitrary type
// Because there is no context for the type embedded in the message, the opaque
// type must be dynamically added at runtime
type ContextlessMsg struct {
OpaqueField []byte `protobuf:"bytes,1,opt,name=opaque_field,json=opaqueField,proto3" json:"opaque_field,omitempty"`
}
func (m *ContextlessMsg) Reset() { *m = ContextlessMsg{} }
func (m *ContextlessMsg) String() string { return proto.CompactTextString(m) }
func (*ContextlessMsg) ProtoMessage() {}
func (*ContextlessMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ContextlessMsg) GetOpaqueField() []byte {
if m != nil {
return m.OpaqueField
}
return nil
}
func init() {
proto.RegisterType((*SimpleMsg)(nil), "testprotos.SimpleMsg")
proto.RegisterType((*NestedMsg)(nil), "testprotos.NestedMsg")
proto.RegisterType((*StaticallyOpaqueMsg)(nil), "testprotos.StaticallyOpaqueMsg")
proto.RegisterType((*VariablyOpaqueMsg)(nil), "testprotos.VariablyOpaqueMsg")
proto.RegisterType((*DynamicMsg)(nil), "testprotos.DynamicMsg")
proto.RegisterType((*ContextlessMsg)(nil), "testprotos.ContextlessMsg")
}
func init() { proto.RegisterFile("sample.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 577 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x93, 0x41, 0x6f, 0xd3, 0x30,
0x14, 0xc7, 0xd5, 0x64, 0x20, 0xfa, 0x12, 0x46, 0x9b, 0x0e, 0x69, 0xca, 0x65, 0x65, 0x5c, 0x86,
0x36, 0x25, 0xd0, 0x5e, 0x10, 0x5c, 0xc6, 0x06, 0x1c, 0x90, 0x06, 0x52, 0x8b, 0x00, 0x81, 0x00,
0xb9, 0xa9, 0xd7, 0x45, 0x38, 0x71, 0x48, 0x5c, 0x44, 0x6e, 0x7c, 0x07, 0xbe, 0x08, 0x1f, 0x82,
0x23, 0x1f, 0x0a, 0xf9, 0xd9, 0x5d, 0x6c, 0x96, 0x8e, 0x03, 0xe2, 0xd4, 0xfa, 0xd9, 0xef, 0xff,
0xff, 0xbf, 0x5f, 0x6c, 0xf0, 0x2b, 0x92, 0x15, 0x8c, 0x46, 0x45, 0xc9, 0x05, 0x0f, 0x40, 0xd0,
0x4a, 0xe0, 0xdf, 0x6a, 0xf7, 0x57, 0x07, 0xba, 0xd3, 0x54, 0x6e, 0x9e, 0x54, 0x8b, 0x60, 0x07,
0xbc, 0x82, 0x91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xf8, 0x01, 0xb6, 0xda, 0x4c, 0x5b, 0x30, 0xdf, 0xb5,
0x9f, 0xf1, 0x65, 0x3e, 0xc6, 0x27, 0x18, 0xc3, 0xa6, 0xbd, 0x29, 0xbf, 0x42, 0xcb, 0xfb, 0xd5,
0xb7, 0x18, 0x13, 0x1c, 0x1d, 0xbd, 0x3d, 0x5c, 0xa4, 0xe2, 0x6c, 0x39, 0x8b, 0x12, 0x9e, 0xc5,
0x67, 0x75, 0x41, 0x4b, 0x46, 0xe7, 0x0b, 0x5a, 0xc6, 0xa7, 0x64, 0x56, 0xa6, 0x49, 0x9c, 0xf0,
0x2c, 0xe3, 0x79, 0x2c, 0x38, 0x67, 0x55, 0x8c, 0x19, 0x18, 0x11, 0xbc, 0x8c, 0x9b, 0x48, 0xb3,
0xab, 0xf8, 0x3b, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x56, 0x77, 0x65, 0x7d, 0x06, 0x00,
0x00,
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/hyperledger-fabric.git
git@gitee.com:mirrors/hyperledger-fabric.git
mirrors
hyperledger-fabric
hyperledger-fabric
v1.0.5

搜索帮助