lbryschema.go/pb/claim.pb.go
2017-09-06 10:31:28 -04:00

163 lines
5.5 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: pb/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("pb/claim.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 287 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0x41, 0x4b, 0xc3, 0x30,
0x18, 0x86, 0xd7, 0xea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