types/go/claim.pb.go

164 lines
5.5 KiB
Go
Raw Normal View History

2017-12-14 20:39:53 +01:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: claim.proto
package pb
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
type Claim_Version int32
const (
Claim_UNKNOWN_VERSION Claim_Version = 0
Claim__0_0_1 Claim_Version = 1
)
var Claim_Version_name = map[int32]string{
0: "UNKNOWN_VERSION",
1: "_0_0_1",
}
var Claim_Version_value = map[string]int32{
"UNKNOWN_VERSION": 0,
"_0_0_1": 1,
}
func (x Claim_Version) Enum() *Claim_Version {
p := new(Claim_Version)
*p = x
return p
}
func (x Claim_Version) String() string {
return proto.EnumName(Claim_Version_name, int32(x))
}
func (x *Claim_Version) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Claim_Version_value, data, "Claim_Version")
if err != nil {
return err
}
*x = Claim_Version(value)
return nil
}
func (Claim_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
type Claim_ClaimType int32
const (
Claim_UNKNOWN_CLAIM_TYPE Claim_ClaimType = 0
Claim_streamType Claim_ClaimType = 1
Claim_certificateType Claim_ClaimType = 2
)
var Claim_ClaimType_name = map[int32]string{
0: "UNKNOWN_CLAIM_TYPE",
1: "streamType",
2: "certificateType",
}
var Claim_ClaimType_value = map[string]int32{
"UNKNOWN_CLAIM_TYPE": 0,
"streamType": 1,
"certificateType": 2,
}
func (x Claim_ClaimType) Enum() *Claim_ClaimType {
p := new(Claim_ClaimType)
*p = x
return p
}
func (x Claim_ClaimType) String() string {
return proto.EnumName(Claim_ClaimType_name, int32(x))
}
func (x *Claim_ClaimType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Claim_ClaimType_value, data, "Claim_ClaimType")
if err != nil {
return err
}
*x = Claim_ClaimType(value)
return nil
}
func (Claim_ClaimType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 1} }
type Claim struct {
Version *Claim_Version `protobuf:"varint,1,req,name=version,enum=pb.Claim_Version" json:"version,omitempty"`
ClaimType *Claim_ClaimType `protobuf:"varint,2,req,name=claimType,enum=pb.Claim_ClaimType" json:"claimType,omitempty"`
Stream *Stream `protobuf:"bytes,3,opt,name=stream" json:"stream,omitempty"`
Certificate *Certificate `protobuf:"bytes,4,opt,name=certificate" json:"certificate,omitempty"`
PublisherSignature *Signature `protobuf:"bytes,5,opt,name=publisherSignature" json:"publisherSignature,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Claim) Reset() { *m = Claim{} }
func (m *Claim) String() string { return proto.CompactTextString(m) }
func (*Claim) ProtoMessage() {}
func (*Claim) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *Claim) GetVersion() Claim_Version {
if m != nil && m.Version != nil {
return *m.Version
}
return Claim_UNKNOWN_VERSION
}
func (m *Claim) GetClaimType() Claim_ClaimType {
if m != nil && m.ClaimType != nil {
return *m.ClaimType
}
return Claim_UNKNOWN_CLAIM_TYPE
}
func (m *Claim) GetStream() *Stream {
if m != nil {
return m.Stream
}
return nil
}
func (m *Claim) GetCertificate() *Certificate {
if m != nil {
return m.Certificate
}
return nil
}
func (m *Claim) GetPublisherSignature() *Signature {
if m != nil {
return m.PublisherSignature
}
return nil
}
func init() {
proto.RegisterType((*Claim)(nil), "pb.Claim")
proto.RegisterEnum("pb.Claim_Version", Claim_Version_name, Claim_Version_value)
proto.RegisterEnum("pb.Claim_ClaimType", Claim_ClaimType_name, Claim_ClaimType_value)
}
func init() { proto.RegisterFile("claim.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 283 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0xc1, 0x4a, 0xf3, 0x40,
0x14, 0x85, 0x9b, 0xfc, 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