{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testprotos\n\n## Types\n\n```go\ntype ContextlessMsg struct {\n\tOpaqueField          []byte   `protobuf:\"bytes,1,opt,name=opaque_field,json=opaqueField,proto3\" json:\"opaque_field,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nContextlessMsg 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\n\n```go\nfunc (*ContextlessMsg) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ContextlessMsg) GetOpaqueField() []byte\n```\n\n```go\nfunc (*ContextlessMsg) ProtoMessage()\n```\n\n```go\nfunc (m *ContextlessMsg) Reset()\n```\n\n```go\nfunc (m *ContextlessMsg) String() string\n```\n\n```go\nfunc (cm *ContextlessMsg) VariablyOpaqueFields() []string\n```\n\n```go\nfunc (m *ContextlessMsg) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ContextlessMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ContextlessMsg) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ContextlessMsg) XXX_Size() int\n```\n\n```go\nfunc (m *ContextlessMsg) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype DynamicMessageWrapper struct {\n\t*ContextlessMsg\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (dmw *DynamicMessageWrapper) Underlying() proto.Message\n```\n\n```go\nfunc (dmw *DynamicMessageWrapper) VariablyOpaqueFieldProto(name string) (proto.Message, error)\n```\n\n```go\ntype DynamicMsg struct {\n\tDynamicType          string                     `protobuf:\"bytes,1,opt,name=dynamic_type,json=dynamicType,proto3\" json:\"dynamic_type,omitempty\"`\n\tPlainDynamicField    *ContextlessMsg            `protobuf:\"bytes,2,opt,name=plain_dynamic_field,json=plainDynamicField,proto3\" json:\"plain_dynamic_field,omitempty\"`\n\tMapDynamicField      map[string]*ContextlessMsg `protobuf:\"bytes,3,rep,name=map_dynamic_field,json=mapDynamicField,proto3\" json:\"map_dynamic_field,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\tSliceDynamicField    []*ContextlessMsg          `protobuf:\"bytes,4,rep,name=slice_dynamic_field,json=sliceDynamicField,proto3\" json:\"slice_dynamic_field,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}                   `json:\"-\"`\n\tXXX_unrecognized     []byte                     `json:\"-\"`\n\tXXX_sizecache        int32                      `json:\"-\"`\n}\n```\nDynamicMsg is designed to test the dynamic message component The dynamic wrapper applied to ContextlessMsg is determined by dynamic\\_type\n\n```go\nfunc (*DynamicMsg) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (vom *DynamicMsg) DynamicFieldProto(name string, underlying proto.Message) (proto.Message, error)\n```\n\n```go\nfunc (vom *DynamicMsg) DynamicFields() []string\n```\n\n```go\nfunc (vom *DynamicMsg) DynamicMapFieldProto(name string, key string, underlying proto.Message) (proto.Message, error)\n```\n\n```go\nfunc (vom *DynamicMsg) DynamicMapFields() []string\n```\n\n```go\nfunc (vom *DynamicMsg) DynamicSliceFieldProto(name string, index int, underlying proto.Message) (proto.Message, error)\n```\n\n```go\nfunc (vom *DynamicMsg) DynamicSliceFields() []string\n```\n\n```go\nfunc (m *DynamicMsg) GetDynamicType() string\n```\n\n```go\nfunc (m *DynamicMsg) GetMapDynamicField() map[string]*ContextlessMsg\n```\n\n```go\nfunc (m *DynamicMsg) GetPlainDynamicField() *ContextlessMsg\n```\n\n```go\nfunc (m *DynamicMsg) GetSliceDynamicField() []*ContextlessMsg\n```\n\n```go\nfunc (*DynamicMsg) ProtoMessage()\n```\n\n```go\nfunc (m *DynamicMsg) Reset()\n```\n\n```go\nfunc (m *DynamicMsg) String() string\n```\n\n```go\nfunc (m *DynamicMsg) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *DynamicMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *DynamicMsg) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *DynamicMsg) XXX_Size() int\n```\n\n```go\nfunc (m *DynamicMsg) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype NestedMsg struct {\n\tPlainNestedField     *SimpleMsg            `protobuf:\"bytes,1,opt,name=plain_nested_field,json=plainNestedField,proto3\" json:\"plain_nested_field,omitempty\"`\n\tMapNestedField       map[string]*SimpleMsg `protobuf:\"bytes,2,rep,name=map_nested_field,json=mapNestedField,proto3\" json:\"map_nested_field,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\tSliceNestedField     []*SimpleMsg          `protobuf:\"bytes,3,rep,name=slice_nested_field,json=sliceNestedField,proto3\" json:\"slice_nested_field,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}              `json:\"-\"`\n\tXXX_unrecognized     []byte                `json:\"-\"`\n\tXXX_sizecache        int32                 `json:\"-\"`\n}\n```\nNestedMsg is designed to test the nested message component\n\n```go\nfunc (*NestedMsg) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *NestedMsg) GetMapNestedField() map[string]*SimpleMsg\n```\n\n```go\nfunc (m *NestedMsg) GetPlainNestedField() *SimpleMsg\n```\n\n```go\nfunc (m *NestedMsg) GetSliceNestedField() []*SimpleMsg\n```\n\n```go\nfunc (*NestedMsg) ProtoMessage()\n```\n\n```go\nfunc (m *NestedMsg) Reset()\n```\n\n```go\nfunc (m *NestedMsg) String() string\n```\n\n```go\nfunc (m *NestedMsg) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *NestedMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *NestedMsg) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *NestedMsg) XXX_Size() int\n```\n\n```go\nfunc (m *NestedMsg) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SimpleMsg struct {\n\tPlainField           string            `protobuf:\"bytes,1,opt,name=plain_field,json=plainField,proto3\" json:\"plain_field,omitempty\"`\n\tMapField             map[string]string `protobuf:\"bytes,2,rep,name=map_field,json=mapField,proto3\" json:\"map_field,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\tSliceField           []string          `protobuf:\"bytes,3,rep,name=slice_field,json=sliceField,proto3\" json:\"slice_field,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}          `json:\"-\"`\n\tXXX_unrecognized     []byte            `json:\"-\"`\n\tXXX_sizecache        int32             `json:\"-\"`\n}\n```\nSimpleMsg is designed to test that all three types of message fields, plain, map, and slice are handled by the protolator tool\n\n```go\nfunc (*SimpleMsg) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SimpleMsg) GetMapField() map[string]string\n```\n\n```go\nfunc (m *SimpleMsg) GetPlainField() string\n```\n\n```go\nfunc (m *SimpleMsg) GetSliceField() []string\n```\n\n```go\nfunc (*SimpleMsg) ProtoMessage()\n```\n\n```go\nfunc (m *SimpleMsg) Reset()\n```\n\n```go\nfunc (m *SimpleMsg) String() string\n```\n\n```go\nfunc (m *SimpleMsg) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SimpleMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *SimpleMsg) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SimpleMsg) XXX_Size() int\n```\n\n```go\nfunc (m *SimpleMsg) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype StaticallyOpaqueMsg struct {\n\tPlainOpaqueField     []byte            `protobuf:\"bytes,1,opt,name=plain_opaque_field,json=plainOpaqueField,proto3\" json:\"plain_opaque_field,omitempty\"`\n\tMapOpaqueField       map[string][]byte `protobuf:\"bytes,2,rep,name=map_opaque_field,json=mapOpaqueField,proto3\" json:\"map_opaque_field,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\tSliceOpaqueField     [][]byte          `protobuf:\"bytes,3,rep,name=slice_opaque_field,json=sliceOpaqueField,proto3\" json:\"slice_opaque_field,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}          `json:\"-\"`\n\tXXX_unrecognized     []byte            `json:\"-\"`\n\tXXX_sizecache        int32             `json:\"-\"`\n}\n```\nStaticallyOpaqueMsg is designed to test the statically opaque message component All fields are statically marshaled to the NestedMsg type\n\n```go\nfunc (*StaticallyOpaqueMsg) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) GetMapOpaqueField() map[string][]byte\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) GetPlainOpaqueField() []byte\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) GetSliceOpaqueField() [][]byte\n```\n\n```go\nfunc (*StaticallyOpaqueMsg) ProtoMessage()\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) Reset()\n```\n\n```go\nfunc (som *StaticallyOpaqueMsg) StaticallyOpaqueFieldProto(name string) (proto.Message, error)\n```\n\n```go\nfunc (som *StaticallyOpaqueMsg) StaticallyOpaqueFields() []string\n```\n\n```go\nfunc (som *StaticallyOpaqueMsg) StaticallyOpaqueMapFieldProto(name string, key string) (proto.Message, error)\n```\n\n```go\nfunc (som *StaticallyOpaqueMsg) StaticallyOpaqueMapFields() []string\n```\n\n```go\nfunc (som *StaticallyOpaqueMsg) StaticallyOpaqueSliceFieldProto(name string, index int) (proto.Message, error)\n```\n\n```go\nfunc (som *StaticallyOpaqueMsg) StaticallyOpaqueSliceFields() []string\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) String() string\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *StaticallyOpaqueMsg) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) XXX_Size() int\n```\n\n```go\nfunc (m *StaticallyOpaqueMsg) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype UnmarshalableDeepFields struct {\n\tPlainOpaqueField     []byte            `protobuf:\"bytes,1,opt,name=plain_opaque_field,json=plainOpaqueField,proto3\" json:\"plain_opaque_field,omitempty\"`\n\tMapOpaqueField       map[string][]byte `protobuf:\"bytes,2,rep,name=map_opaque_field,json=mapOpaqueField,proto3\" json:\"map_opaque_field,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\tSliceOpaqueField     [][]byte          `protobuf:\"bytes,3,rep,name=slice_opaque_field,json=sliceOpaqueField,proto3\" json:\"slice_opaque_field,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}          `json:\"-\"`\n\tXXX_unrecognized     []byte            `json:\"-\"`\n\tXXX_sizecache        int32             `json:\"-\"`\n}\n```\nUnmarshalableDeepFields contains fields which are defined to be opaque, but will return an error if they are asked to be deserialized.\n\n```go\nfunc (*UnmarshalableDeepFields) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) GetMapOpaqueField() map[string][]byte\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) GetPlainOpaqueField() []byte\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) GetSliceOpaqueField() [][]byte\n```\n\n```go\nfunc (*UnmarshalableDeepFields) ProtoMessage()\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) Reset()\n```\n\n```go\nfunc (udf *UnmarshalableDeepFields) StaticallyOpaqueFieldProto(name string) (proto.Message, error)\n```\n\n```go\nfunc (udf *UnmarshalableDeepFields) StaticallyOpaqueFields() []string\n```\n\n```go\nfunc (udf *UnmarshalableDeepFields) StaticallyOpaqueMapFieldProto(name, key string) (proto.Message, error)\n```\n\n```go\nfunc (udf *UnmarshalableDeepFields) StaticallyOpaqueMapFields() []string\n```\n\n```go\nfunc (udf *UnmarshalableDeepFields) StaticallyOpaqueSliceFieldProto(name string, index int) (proto.Message, error)\n```\n\n```go\nfunc (udf *UnmarshalableDeepFields) StaticallyOpaqueSliceFields() []string\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) String() string\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *UnmarshalableDeepFields) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) XXX_Size() int\n```\n\n```go\nfunc (m *UnmarshalableDeepFields) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype VariablyOpaqueMsg struct {\n\tOpaqueType           string            `protobuf:\"bytes,1,opt,name=opaque_type,json=opaqueType,proto3\" json:\"opaque_type,omitempty\"`\n\tPlainOpaqueField     []byte            `protobuf:\"bytes,2,opt,name=plain_opaque_field,json=plainOpaqueField,proto3\" json:\"plain_opaque_field,omitempty\"`\n\tMapOpaqueField       map[string][]byte `protobuf:\"bytes,3,rep,name=map_opaque_field,json=mapOpaqueField,proto3\" json:\"map_opaque_field,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\tSliceOpaqueField     [][]byte          `protobuf:\"bytes,4,rep,name=slice_opaque_field,json=sliceOpaqueField,proto3\" json:\"slice_opaque_field,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}          `json:\"-\"`\n\tXXX_unrecognized     []byte            `json:\"-\"`\n\tXXX_sizecache        int32             `json:\"-\"`\n}\n```\nVariablyOpaqueMsg is designed to test the staticaly opaque message component The opaque type is determined by opaque\\_type\n\n```go\nfunc (*VariablyOpaqueMsg) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) GetMapOpaqueField() map[string][]byte\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) GetOpaqueType() string\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) GetPlainOpaqueField() []byte\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) GetSliceOpaqueField() [][]byte\n```\n\n```go\nfunc (*VariablyOpaqueMsg) ProtoMessage()\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) Reset()\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) String() string\n```\n\n```go\nfunc (vom *VariablyOpaqueMsg) VariablyOpaqueFieldProto(name string) (proto.Message, error)\n```\n\n```go\nfunc (vom *VariablyOpaqueMsg) VariablyOpaqueFields() []string\n```\n\n```go\nfunc (vom *VariablyOpaqueMsg) VariablyOpaqueMapFieldProto(name string, key string) (proto.Message, error)\n```\n\n```go\nfunc (vom *VariablyOpaqueMsg) VariablyOpaqueMapFields() []string\n```\n\n```go\nfunc (vom *VariablyOpaqueMsg) VariablyOpaqueSliceFieldProto(name string, index int) (proto.Message, error)\n```\n\n```go\nfunc (vom *VariablyOpaqueMsg) VariablyOpaqueSliceFields() []string\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *VariablyOpaqueMsg) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) XXX_Size() int\n```\n\n```go\nfunc (m *VariablyOpaqueMsg) XXX_Unmarshal(b []byte) error\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/common/tools/protolator/testprotos","name":"testprotos","synopsis":"","isRedistributable":true}
