// Code generated by protoc-gen-go.
// source: code.justin.tv/dta/rockpaperscissors/proto/ingest_requests.proto
// DO NOT EDIT!

package proto

import proto1 "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto1.Marshal
var _ = fmt.Errorf
var _ = math.Inf

type IngestRequest struct {
	// Types that are valid to be assigned to Request:
	//	*IngestRequest_IngestBlueprintRequest
	//	*IngestRequest_IngestGithubStatsRequest
	Request isIngestRequest_Request `protobuf_oneof:"request"`
}

func (m *IngestRequest) Reset()                    { *m = IngestRequest{} }
func (m *IngestRequest) String() string            { return proto1.CompactTextString(m) }
func (*IngestRequest) ProtoMessage()               {}
func (*IngestRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }

type isIngestRequest_Request interface {
	isIngestRequest_Request()
}

type IngestRequest_IngestBlueprintRequest struct {
	IngestBlueprintRequest *IngestBlueprintRequest `protobuf:"bytes,1,opt,name=ingest_blueprint_request,json=ingestBlueprintRequest,oneof"`
}
type IngestRequest_IngestGithubStatsRequest struct {
	IngestGithubStatsRequest *IngestGitHubStatsRequest `protobuf:"bytes,2,opt,name=ingest_github_stats_request,json=ingestGithubStatsRequest,oneof"`
}

func (*IngestRequest_IngestBlueprintRequest) isIngestRequest_Request()   {}
func (*IngestRequest_IngestGithubStatsRequest) isIngestRequest_Request() {}

func (m *IngestRequest) GetRequest() isIngestRequest_Request {
	if m != nil {
		return m.Request
	}
	return nil
}

func (m *IngestRequest) GetIngestBlueprintRequest() *IngestBlueprintRequest {
	if x, ok := m.GetRequest().(*IngestRequest_IngestBlueprintRequest); ok {
		return x.IngestBlueprintRequest
	}
	return nil
}

func (m *IngestRequest) GetIngestGithubStatsRequest() *IngestGitHubStatsRequest {
	if x, ok := m.GetRequest().(*IngestRequest_IngestGithubStatsRequest); ok {
		return x.IngestGithubStatsRequest
	}
	return nil
}

// XXX_OneofFuncs is for the internal use of the proto package.
func (*IngestRequest) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {
	return _IngestRequest_OneofMarshaler, _IngestRequest_OneofUnmarshaler, _IngestRequest_OneofSizer, []interface{}{
		(*IngestRequest_IngestBlueprintRequest)(nil),
		(*IngestRequest_IngestGithubStatsRequest)(nil),
	}
}

func _IngestRequest_OneofMarshaler(msg proto1.Message, b *proto1.Buffer) error {
	m := msg.(*IngestRequest)
	// request
	switch x := m.Request.(type) {
	case *IngestRequest_IngestBlueprintRequest:
		b.EncodeVarint(1<<3 | proto1.WireBytes)
		if err := b.EncodeMessage(x.IngestBlueprintRequest); err != nil {
			return err
		}
	case *IngestRequest_IngestGithubStatsRequest:
		b.EncodeVarint(2<<3 | proto1.WireBytes)
		if err := b.EncodeMessage(x.IngestGithubStatsRequest); err != nil {
			return err
		}
	case nil:
	default:
		return fmt.Errorf("IngestRequest.Request has unexpected type %T", x)
	}
	return nil
}

func _IngestRequest_OneofUnmarshaler(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error) {
	m := msg.(*IngestRequest)
	switch tag {
	case 1: // request.ingest_blueprint_request
		if wire != proto1.WireBytes {
			return true, proto1.ErrInternalBadWireType
		}
		msg := new(IngestBlueprintRequest)
		err := b.DecodeMessage(msg)
		m.Request = &IngestRequest_IngestBlueprintRequest{msg}
		return true, err
	case 2: // request.ingest_github_stats_request
		if wire != proto1.WireBytes {
			return true, proto1.ErrInternalBadWireType
		}
		msg := new(IngestGitHubStatsRequest)
		err := b.DecodeMessage(msg)
		m.Request = &IngestRequest_IngestGithubStatsRequest{msg}
		return true, err
	default:
		return false, nil
	}
}

func _IngestRequest_OneofSizer(msg proto1.Message) (n int) {
	m := msg.(*IngestRequest)
	// request
	switch x := m.Request.(type) {
	case *IngestRequest_IngestBlueprintRequest:
		s := proto1.Size(x.IngestBlueprintRequest)
		n += proto1.SizeVarint(1<<3 | proto1.WireBytes)
		n += proto1.SizeVarint(uint64(s))
		n += s
	case *IngestRequest_IngestGithubStatsRequest:
		s := proto1.Size(x.IngestGithubStatsRequest)
		n += proto1.SizeVarint(2<<3 | proto1.WireBytes)
		n += proto1.SizeVarint(uint64(s))
		n += s
	case nil:
	default:
		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
	}
	return n
}

type IngestGitHubStatsRequest struct {
	GithubRepository *GitHubRepository `protobuf:"bytes,1,opt,name=github_repository,json=githubRepository" json:"github_repository,omitempty"`
	CommitSha        string            `protobuf:"bytes,2,opt,name=commit_sha,json=commitSha" json:"commit_sha,omitempty"`
}

func (m *IngestGitHubStatsRequest) Reset()                    { *m = IngestGitHubStatsRequest{} }
func (m *IngestGitHubStatsRequest) String() string            { return proto1.CompactTextString(m) }
func (*IngestGitHubStatsRequest) ProtoMessage()               {}
func (*IngestGitHubStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }

func (m *IngestGitHubStatsRequest) GetGithubRepository() *GitHubRepository {
	if m != nil {
		return m.GithubRepository
	}
	return nil
}

func (m *IngestGitHubStatsRequest) GetCommitSha() string {
	if m != nil {
		return m.CommitSha
	}
	return ""
}

func init() {
	proto1.RegisterType((*IngestRequest)(nil), "rockpaperscissors.IngestRequest")
	proto1.RegisterType((*IngestGitHubStatsRequest)(nil), "rockpaperscissors.IngestGitHubStatsRequest")
}

func init() {
	proto1.RegisterFile("code.justin.tv/dta/rockpaperscissors/proto/ingest_requests.proto", fileDescriptor3)
}

var fileDescriptor3 = []byte{
	// 297 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0xc1, 0x4a, 0xc3, 0x40,
	0x10, 0x86, 0x8d, 0xa0, 0x25, 0x2b, 0x82, 0xcd, 0x41, 0x42, 0x45, 0x90, 0x7a, 0x51, 0x84, 0x04,
	0xf4, 0x05, 0x34, 0x97, 0xb6, 0x37, 0x49, 0x6f, 0x5e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