| Index: milo/api/proto/buildinfo.pb.go
|
| diff --git a/milo/api/proto/buildinfo.pb.go b/milo/api/proto/buildinfo.pb.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5040a70f034da87ebd5bd9bd6763e83a499f615d
|
| --- /dev/null
|
| +++ b/milo/api/proto/buildinfo.pb.go
|
| @@ -0,0 +1,374 @@
|
| +// Code generated by protoc-gen-go.
|
| +// source: github.com/luci/luci-go/milo/api/proto/buildinfo.proto
|
| +// DO NOT EDIT!
|
| +
|
| +package milo
|
| +
|
| +import prpc "github.com/luci/luci-go/grpc/prpc"
|
| +
|
| +import proto "github.com/golang/protobuf/proto"
|
| +import fmt "fmt"
|
| +import math "math"
|
| +import milo1 "github.com/luci/luci-go/common/proto/milo"
|
| +
|
| +import (
|
| + context "golang.org/x/net/context"
|
| + grpc "google.golang.org/grpc"
|
| +)
|
| +
|
| +// Reference imports to suppress errors if they are not otherwise used.
|
| +var _ = proto.Marshal
|
| +var _ = fmt.Errorf
|
| +var _ = math.Inf
|
| +
|
| +type BuildInfoRequest struct {
|
| + // Types that are valid to be assigned to Build:
|
| + // *BuildInfoRequest_Buildbot
|
| + // *BuildInfoRequest_Swarming_
|
| + Build isBuildInfoRequest_Build `protobuf_oneof:"build"`
|
| + // Project hint is a LUCI project suggestion for this build. Some builds,
|
| + // notably older ones, may not contain enough metadata to resolve their
|
| + // project. Resolution may succeed if this hint is provided and correct.
|
| + //
|
| + // This field is optional, and its use is discouraged unless necessary.
|
| + ProjectHint string `protobuf:"bytes,11,opt,name=project_hint,json=projectHint" json:"project_hint,omitempty"`
|
| +}
|
| +
|
| +func (m *BuildInfoRequest) Reset() { *m = BuildInfoRequest{} }
|
| +func (m *BuildInfoRequest) String() string { return proto.CompactTextString(m) }
|
| +func (*BuildInfoRequest) ProtoMessage() {}
|
| +func (*BuildInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
| +
|
| +type isBuildInfoRequest_Build interface {
|
| + isBuildInfoRequest_Build()
|
| +}
|
| +
|
| +type BuildInfoRequest_Buildbot struct {
|
| + Buildbot *BuildInfoRequest_BuildBot `protobuf:"bytes,1,opt,name=buildbot,oneof"`
|
| +}
|
| +type BuildInfoRequest_Swarming_ struct {
|
| + Swarming *BuildInfoRequest_Swarming `protobuf:"bytes,2,opt,name=swarming,oneof"`
|
| +}
|
| +
|
| +func (*BuildInfoRequest_Buildbot) isBuildInfoRequest_Build() {}
|
| +func (*BuildInfoRequest_Swarming_) isBuildInfoRequest_Build() {}
|
| +
|
| +func (m *BuildInfoRequest) GetBuild() isBuildInfoRequest_Build {
|
| + if m != nil {
|
| + return m.Build
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func (m *BuildInfoRequest) GetBuildbot() *BuildInfoRequest_BuildBot {
|
| + if x, ok := m.GetBuild().(*BuildInfoRequest_Buildbot); ok {
|
| + return x.Buildbot
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func (m *BuildInfoRequest) GetSwarming() *BuildInfoRequest_Swarming {
|
| + if x, ok := m.GetBuild().(*BuildInfoRequest_Swarming_); ok {
|
| + return x.Swarming
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func (m *BuildInfoRequest) GetProjectHint() string {
|
| + if m != nil {
|
| + return m.ProjectHint
|
| + }
|
| + return ""
|
| +}
|
| +
|
| +// XXX_OneofFuncs is for the internal use of the proto package.
|
| +func (*BuildInfoRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
| + return _BuildInfoRequest_OneofMarshaler, _BuildInfoRequest_OneofUnmarshaler, _BuildInfoRequest_OneofSizer, []interface{}{
|
| + (*BuildInfoRequest_Buildbot)(nil),
|
| + (*BuildInfoRequest_Swarming_)(nil),
|
| + }
|
| +}
|
| +
|
| +func _BuildInfoRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
| + m := msg.(*BuildInfoRequest)
|
| + // build
|
| + switch x := m.Build.(type) {
|
| + case *BuildInfoRequest_Buildbot:
|
| + b.EncodeVarint(1<<3 | proto.WireBytes)
|
| + if err := b.EncodeMessage(x.Buildbot); err != nil {
|
| + return err
|
| + }
|
| + case *BuildInfoRequest_Swarming_:
|
| + b.EncodeVarint(2<<3 | proto.WireBytes)
|
| + if err := b.EncodeMessage(x.Swarming); err != nil {
|
| + return err
|
| + }
|
| + case nil:
|
| + default:
|
| + return fmt.Errorf("BuildInfoRequest.Build has unexpected type %T", x)
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func _BuildInfoRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
| + m := msg.(*BuildInfoRequest)
|
| + switch tag {
|
| + case 1: // build.buildbot
|
| + if wire != proto.WireBytes {
|
| + return true, proto.ErrInternalBadWireType
|
| + }
|
| + msg := new(BuildInfoRequest_BuildBot)
|
| + err := b.DecodeMessage(msg)
|
| + m.Build = &BuildInfoRequest_Buildbot{msg}
|
| + return true, err
|
| + case 2: // build.swarming
|
| + if wire != proto.WireBytes {
|
| + return true, proto.ErrInternalBadWireType
|
| + }
|
| + msg := new(BuildInfoRequest_Swarming)
|
| + err := b.DecodeMessage(msg)
|
| + m.Build = &BuildInfoRequest_Swarming_{msg}
|
| + return true, err
|
| + default:
|
| + return false, nil
|
| + }
|
| +}
|
| +
|
| +func _BuildInfoRequest_OneofSizer(msg proto.Message) (n int) {
|
| + m := msg.(*BuildInfoRequest)
|
| + // build
|
| + switch x := m.Build.(type) {
|
| + case *BuildInfoRequest_Buildbot:
|
| + s := proto.Size(x.Buildbot)
|
| + n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
| + n += proto.SizeVarint(uint64(s))
|
| + n += s
|
| + case *BuildInfoRequest_Swarming_:
|
| + s := proto.Size(x.Swarming)
|
| + n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
| + n += proto.SizeVarint(uint64(s))
|
| + n += s
|
| + case nil:
|
| + default:
|
| + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
| + }
|
| + return n
|
| +}
|
| +
|
| +// The request for the name of a BuildBot built.
|
| +type BuildInfoRequest_BuildBot struct {
|
| + // The master name.
|
| + MasterName string `protobuf:"bytes,1,opt,name=master_name,json=masterName" json:"master_name,omitempty"`
|
| + // The builder name server.
|
| + BuilderName string `protobuf:"bytes,2,opt,name=builder_name,json=builderName" json:"builder_name,omitempty"`
|
| + // The build number.
|
| + BuildNumber int64 `protobuf:"varint,3,opt,name=build_number,json=buildNumber" json:"build_number,omitempty"`
|
| +}
|
| +
|
| +func (m *BuildInfoRequest_BuildBot) Reset() { *m = BuildInfoRequest_BuildBot{} }
|
| +func (m *BuildInfoRequest_BuildBot) String() string { return proto.CompactTextString(m) }
|
| +func (*BuildInfoRequest_BuildBot) ProtoMessage() {}
|
| +func (*BuildInfoRequest_BuildBot) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
|
| +
|
| +func (m *BuildInfoRequest_BuildBot) GetMasterName() string {
|
| + if m != nil {
|
| + return m.MasterName
|
| + }
|
| + return ""
|
| +}
|
| +
|
| +func (m *BuildInfoRequest_BuildBot) GetBuilderName() string {
|
| + if m != nil {
|
| + return m.BuilderName
|
| + }
|
| + return ""
|
| +}
|
| +
|
| +func (m *BuildInfoRequest_BuildBot) GetBuildNumber() int64 {
|
| + if m != nil {
|
| + return m.BuildNumber
|
| + }
|
| + return 0
|
| +}
|
| +
|
| +// The request containing a Swarming task.
|
| +type BuildInfoRequest_Swarming struct {
|
| + // The Swarming task name.
|
| + Task string `protobuf:"bytes,1,opt,name=task" json:"task,omitempty"`
|
| +}
|
| +
|
| +func (m *BuildInfoRequest_Swarming) Reset() { *m = BuildInfoRequest_Swarming{} }
|
| +func (m *BuildInfoRequest_Swarming) String() string { return proto.CompactTextString(m) }
|
| +func (*BuildInfoRequest_Swarming) ProtoMessage() {}
|
| +func (*BuildInfoRequest_Swarming) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 1} }
|
| +
|
| +func (m *BuildInfoRequest_Swarming) GetTask() string {
|
| + if m != nil {
|
| + return m.Task
|
| + }
|
| + return ""
|
| +}
|
| +
|
| +// The request containing the name of the master.
|
| +type BuildInfoResponse struct {
|
| + // The LUCI project that this build belongs to.
|
| + Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
|
| + // The main build step.
|
| + Step *milo1.Step `protobuf:"bytes,2,opt,name=step" json:"step,omitempty"`
|
| + // The LogDog annotation stream for this build. The Prefix will be populated
|
| + // and can be used as the prefix for any un-prefixed LogdogStream in "step".
|
| + AnnotationStream *milo1.LogdogStream `protobuf:"bytes,3,opt,name=annotation_stream,json=annotationStream" json:"annotation_stream,omitempty"`
|
| +}
|
| +
|
| +func (m *BuildInfoResponse) Reset() { *m = BuildInfoResponse{} }
|
| +func (m *BuildInfoResponse) String() string { return proto.CompactTextString(m) }
|
| +func (*BuildInfoResponse) ProtoMessage() {}
|
| +func (*BuildInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
|
| +
|
| +func (m *BuildInfoResponse) GetProject() string {
|
| + if m != nil {
|
| + return m.Project
|
| + }
|
| + return ""
|
| +}
|
| +
|
| +func (m *BuildInfoResponse) GetStep() *milo1.Step {
|
| + if m != nil {
|
| + return m.Step
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func (m *BuildInfoResponse) GetAnnotationStream() *milo1.LogdogStream {
|
| + if m != nil {
|
| + return m.AnnotationStream
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func init() {
|
| + proto.RegisterType((*BuildInfoRequest)(nil), "milo.BuildInfoRequest")
|
| + proto.RegisterType((*BuildInfoRequest_BuildBot)(nil), "milo.BuildInfoRequest.BuildBot")
|
| + proto.RegisterType((*BuildInfoRequest_Swarming)(nil), "milo.BuildInfoRequest.Swarming")
|
| + proto.RegisterType((*BuildInfoResponse)(nil), "milo.BuildInfoResponse")
|
| +}
|
| +
|
| +// Reference imports to suppress errors if they are not otherwise used.
|
| +var _ context.Context
|
| +var _ grpc.ClientConn
|
| +
|
| +// This is a compile-time assertion to ensure that this generated file
|
| +// is compatible with the grpc package it is being compiled against.
|
| +const _ = grpc.SupportPackageIsVersion4
|
| +
|
| +// Client API for BuildInfo service
|
| +
|
| +type BuildInfoClient interface {
|
| + Get(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error)
|
| +}
|
| +type buildInfoPRPCClient struct {
|
| + client *prpc.Client
|
| +}
|
| +
|
| +func NewBuildInfoPRPCClient(client *prpc.Client) BuildInfoClient {
|
| + return &buildInfoPRPCClient{client}
|
| +}
|
| +
|
| +func (c *buildInfoPRPCClient) Get(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error) {
|
| + out := new(BuildInfoResponse)
|
| + err := c.client.Call(ctx, "milo.BuildInfo", "Get", in, out, opts...)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + return out, nil
|
| +}
|
| +
|
| +type buildInfoClient struct {
|
| + cc *grpc.ClientConn
|
| +}
|
| +
|
| +func NewBuildInfoClient(cc *grpc.ClientConn) BuildInfoClient {
|
| + return &buildInfoClient{cc}
|
| +}
|
| +
|
| +func (c *buildInfoClient) Get(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error) {
|
| + out := new(BuildInfoResponse)
|
| + err := grpc.Invoke(ctx, "/milo.BuildInfo/Get", in, out, c.cc, opts...)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + return out, nil
|
| +}
|
| +
|
| +// Server API for BuildInfo service
|
| +
|
| +type BuildInfoServer interface {
|
| + Get(context.Context, *BuildInfoRequest) (*BuildInfoResponse, error)
|
| +}
|
| +
|
| +func RegisterBuildInfoServer(s prpc.Registrar, srv BuildInfoServer) {
|
| + s.RegisterService(&_BuildInfo_serviceDesc, srv)
|
| +}
|
| +
|
| +func _BuildInfo_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
| + in := new(BuildInfoRequest)
|
| + if err := dec(in); err != nil {
|
| + return nil, err
|
| + }
|
| + if interceptor == nil {
|
| + return srv.(BuildInfoServer).Get(ctx, in)
|
| + }
|
| + info := &grpc.UnaryServerInfo{
|
| + Server: srv,
|
| + FullMethod: "/milo.BuildInfo/Get",
|
| + }
|
| + handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
| + return srv.(BuildInfoServer).Get(ctx, req.(*BuildInfoRequest))
|
| + }
|
| + return interceptor(ctx, in, info, handler)
|
| +}
|
| +
|
| +var _BuildInfo_serviceDesc = grpc.ServiceDesc{
|
| + ServiceName: "milo.BuildInfo",
|
| + HandlerType: (*BuildInfoServer)(nil),
|
| + Methods: []grpc.MethodDesc{
|
| + {
|
| + MethodName: "Get",
|
| + Handler: _BuildInfo_Get_Handler,
|
| + },
|
| + },
|
| + Streams: []grpc.StreamDesc{},
|
| + Metadata: "github.com/luci/luci-go/milo/api/proto/buildinfo.proto",
|
| +}
|
| +
|
| +func init() {
|
| + proto.RegisterFile("github.com/luci/luci-go/milo/api/proto/buildinfo.proto", fileDescriptor1)
|
| +}
|
| +
|
| +var fileDescriptor1 = []byte{
|
| + // 377 bytes of a gzipped FileDescriptorProto
|
| + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x92, 0x4d, 0xae, 0xda, 0x30,
|
| + 0x14, 0x85, 0x1b, 0xa0, 0x7d, 0x70, 0xd3, 0xc1, 0x7b, 0x1e, 0xb4, 0x51, 0x06, 0x40, 0x19, 0x31,
|
| + 0x69, 0x22, 0x51, 0x89, 0x49, 0x55, 0x55, 0xa2, 0x83, 0x52, 0xa9, 0x62, 0x10, 0x16, 0x10, 0x39,
|
| + 0xc1, 0x04, 0xb7, 0xd8, 0x37, 0xc4, 0x37, 0xea, 0x2e, 0xba, 0xb5, 0x6e, 0xa9, 0x8a, 0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