104 lines
3.4 KiB
Go
104 lines
3.4 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: stream.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 Stream_Version int32
|
||
|
|
||
|
const (
|
||
|
Stream_UNKNOWN_VERSION Stream_Version = 0
|
||
|
Stream__0_0_1 Stream_Version = 1
|
||
|
)
|
||
|
|
||
|
var Stream_Version_name = map[int32]string{
|
||
|
0: "UNKNOWN_VERSION",
|
||
|
1: "_0_0_1",
|
||
|
}
|
||
|
var Stream_Version_value = map[string]int32{
|
||
|
"UNKNOWN_VERSION": 0,
|
||
|
"_0_0_1": 1,
|
||
|
}
|
||
|
|
||
|
func (x Stream_Version) Enum() *Stream_Version {
|
||
|
p := new(Stream_Version)
|
||
|
*p = x
|
||
|
return p
|
||
|
}
|
||
|
func (x Stream_Version) String() string {
|
||
|
return proto.EnumName(Stream_Version_name, int32(x))
|
||
|
}
|
||
|
func (x *Stream_Version) UnmarshalJSON(data []byte) error {
|
||
|
value, err := proto.UnmarshalJSONEnum(Stream_Version_value, data, "Stream_Version")
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
*x = Stream_Version(value)
|
||
|
return nil
|
||
|
}
|
||
|
func (Stream_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor6, []int{0, 0} }
|
||
|
|
||
|
type Stream struct {
|
||
|
Version *Stream_Version `protobuf:"varint,1,req,name=version,enum=pb.Stream_Version" json:"version,omitempty"`
|
||
|
Metadata *Metadata `protobuf:"bytes,2,req,name=metadata" json:"metadata,omitempty"`
|
||
|
Source *Source `protobuf:"bytes,3,req,name=source" json:"source,omitempty"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Stream) Reset() { *m = Stream{} }
|
||
|
func (m *Stream) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Stream) ProtoMessage() {}
|
||
|
func (*Stream) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
|
||
|
|
||
|
func (m *Stream) GetVersion() Stream_Version {
|
||
|
if m != nil && m.Version != nil {
|
||
|
return *m.Version
|
||
|
}
|
||
|
return Stream_UNKNOWN_VERSION
|
||
|
}
|
||
|
|
||
|
func (m *Stream) GetMetadata() *Metadata {
|
||
|
if m != nil {
|
||
|
return m.Metadata
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Stream) GetSource() *Source {
|
||
|
if m != nil {
|
||
|
return m.Source
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Stream)(nil), "pb.Stream")
|
||
|
proto.RegisterEnum("pb.Stream_Version", Stream_Version_name, Stream_Version_value)
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("stream.proto", fileDescriptor6) }
|
||
|
|
||
|
var fileDescriptor6 = []byte{
|
||
|
// 183 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x2e, 0x29, 0x4a,
|
||
|
0x4d, 0xcc, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x92, 0xe2, 0xcb, 0x4d,
|
||
|
0x2d, 0x49, 0x4c, 0x49, 0x2c, 0x49, 0x84, 0x88, 0x49, 0xf1, 0x14, 0xe7, 0x97, 0x16, 0x25, 0xa7,
|
||
|
0x42, 0x78, 0x4a, 0x1b, 0x18, 0xb9, 0xd8, 0x82, 0xc1, 0x5a, 0x84, 0x74, 0xb8, 0xd8, 0xcb, 0x52,
|
||
|
0x8b, 0x8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