| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: go.chromium.org/luci/buildbucket/proto/common.proto |
| |
| package buildbucketpb // import "go.chromium.org/luci/buildbucket/proto" |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| // Status of a build or a step. |
| type Status int32 |
| |
| const ( |
| // Unspecified state. Meaning depends on the context. |
| Status_STATUS_UNSPECIFIED Status = 0 |
| // Build was scheduled, but did not start or end yet. |
| Status_SCHEDULED Status = 1 |
| // Build/step has started. |
| Status_STARTED Status = 2 |
| // A union of all terminal statuses. |
| // Can be used in BuildPredicate.status. |
| // A concrete build cannot have this status. |
| // Can be used as a bitmask to check that a build ended. |
| Status_ENDED_MASK Status = 4 |
| // A build/step ended successfully. |
| Status_SUCCESS Status = 12 |
| // A build/step ended unsuccessfully due to its Build.Input, |
| // e.g. tests failed, and NOT due to a build infrastructure failure. |
| Status_FAILURE Status = 20 |
| // A build/step ended unsuccessfully due to a failure independent of the input, |
| // e.g. swarming failed, or the recipe was unable to read the patch from gerrit.. |
| Status_INFRA_FAILURE Status = 36 |
| // A build was cancelled explicitly, e.g. via an RPC. |
| Status_CANCELED Status = 68 |
| ) |
| |
| var Status_name = map[int32]string{ |
| 0: "STATUS_UNSPECIFIED", |
| 1: "SCHEDULED", |
| 2: "STARTED", |
| 4: "ENDED_MASK", |
| 12: "SUCCESS", |
| 20: "FAILURE", |
| 36: "INFRA_FAILURE", |
| 68: "CANCELED", |
| } |
| var Status_value = map[string]int32{ |
| "STATUS_UNSPECIFIED": 0, |
| "SCHEDULED": 1, |
| "STARTED": 2, |
| "ENDED_MASK": 4, |
| "SUCCESS": 12, |
| "FAILURE": 20, |
| "INFRA_FAILURE": 36, |
| "CANCELED": 68, |
| } |
| |
| func (x Status) String() string { |
| return proto.EnumName(Status_name, int32(x)) |
| } |
| func (Status) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_common_f120f192eb0444fd, []int{0} |
| } |
| |
| // A boolean with an undefined value. |
| type Trinary int32 |
| |
| const ( |
| Trinary_UNSET Trinary = 0 |
| Trinary_YES Trinary = 1 |
| Trinary_NO Trinary = 2 |
| ) |
| |
| var Trinary_name = map[int32]string{ |
| 0: "UNSET", |
| 1: "YES", |
| 2: "NO", |
| } |
| var Trinary_value = map[string]int32{ |
| "UNSET": 0, |
| "YES": 1, |
| "NO": 2, |
| } |
| |
| func (x Trinary) String() string { |
| return proto.EnumName(Trinary_name, int32(x)) |
| } |
| func (Trinary) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_common_f120f192eb0444fd, []int{1} |
| } |
| |
| // A Gerrit patchset. |
| type GerritChange struct { |
| // Gerrit hostname, e.g. "chromium-review.googlesource.com". |
| Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` |
| // Gerrit project, e.g. "chromium/src". |
| Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` |
| // Change number, e.g. 12345. |
| Change int64 `protobuf:"varint,3,opt,name=change,proto3" json:"change,omitempty"` |
| // Patch set number, e.g. 1. |
| Patchset int64 `protobuf:"varint,4,opt,name=patchset,proto3" json:"patchset,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GerritChange) Reset() { *m = GerritChange{} } |
| func (m *GerritChange) String() string { return proto.CompactTextString(m) } |
| func (*GerritChange) ProtoMessage() {} |
| func (*GerritChange) Descriptor() ([]byte, []int) { |
| return fileDescriptor_common_f120f192eb0444fd, []int{0} |
| } |
| func (m *GerritChange) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GerritChange.Unmarshal(m, b) |
| } |
| func (m *GerritChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GerritChange.Marshal(b, m, deterministic) |
| } |
| func (dst *GerritChange) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GerritChange.Merge(dst, src) |
| } |
| func (m *GerritChange) XXX_Size() int { |
| return xxx_messageInfo_GerritChange.Size(m) |
| } |
| func (m *GerritChange) XXX_DiscardUnknown() { |
| xxx_messageInfo_GerritChange.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GerritChange proto.InternalMessageInfo |
| |
| func (m *GerritChange) GetHost() string { |
| if m != nil { |
| return m.Host |
| } |
| return "" |
| } |
| |
| func (m *GerritChange) GetProject() string { |
| if m != nil { |
| return m.Project |
| } |
| return "" |
| } |
| |
| func (m *GerritChange) GetChange() int64 { |
| if m != nil { |
| return m.Change |
| } |
| return 0 |
| } |
| |
| func (m *GerritChange) GetPatchset() int64 { |
| if m != nil { |
| return m.Patchset |
| } |
| return 0 |
| } |
| |
| // A landed Git commit hosted on Gitiles. |
| type GitilesCommit struct { |
| // Gitiles hostname, e.g. "chromium.googlesource.com". |
| Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` |
| // Repository name on the host, e.g. "chromium/src". |
| Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` |
| // Commit HEX SHA1. |
| Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` |
| // Commit ref, e.g. "refs/heads/master". |
| // NOT a branch name: if specified, must start with "refs/". |
| Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GitilesCommit) Reset() { *m = GitilesCommit{} } |
| func (m *GitilesCommit) String() string { return proto.CompactTextString(m) } |
| func (*GitilesCommit) ProtoMessage() {} |
| func (*GitilesCommit) Descriptor() ([]byte, []int) { |
| return fileDescriptor_common_f120f192eb0444fd, []int{1} |
| } |
| func (m *GitilesCommit) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GitilesCommit.Unmarshal(m, b) |
| } |
| func (m *GitilesCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GitilesCommit.Marshal(b, m, deterministic) |
| } |
| func (dst *GitilesCommit) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GitilesCommit.Merge(dst, src) |
| } |
| func (m *GitilesCommit) XXX_Size() int { |
| return xxx_messageInfo_GitilesCommit.Size(m) |
| } |
| func (m *GitilesCommit) XXX_DiscardUnknown() { |
| xxx_messageInfo_GitilesCommit.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GitilesCommit proto.InternalMessageInfo |
| |
| func (m *GitilesCommit) GetHost() string { |
| if m != nil { |
| return m.Host |
| } |
| return "" |
| } |
| |
| func (m *GitilesCommit) GetProject() string { |
| if m != nil { |
| return m.Project |
| } |
| return "" |
| } |
| |
| func (m *GitilesCommit) GetId() string { |
| if m != nil { |
| return m.Id |
| } |
| return "" |
| } |
| |
| func (m *GitilesCommit) GetRef() string { |
| if m != nil { |
| return m.Ref |
| } |
| return "" |
| } |
| |
| // A key-value pair of strings. |
| type StringPair struct { |
| Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *StringPair) Reset() { *m = StringPair{} } |
| func (m *StringPair) String() string { return proto.CompactTextString(m) } |
| func (*StringPair) ProtoMessage() {} |
| func (*StringPair) Descriptor() ([]byte, []int) { |
| return fileDescriptor_common_f120f192eb0444fd, []int{2} |
| } |
| func (m *StringPair) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_StringPair.Unmarshal(m, b) |
| } |
| func (m *StringPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_StringPair.Marshal(b, m, deterministic) |
| } |
| func (dst *StringPair) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_StringPair.Merge(dst, src) |
| } |
| func (m *StringPair) XXX_Size() int { |
| return xxx_messageInfo_StringPair.Size(m) |
| } |
| func (m *StringPair) XXX_DiscardUnknown() { |
| xxx_messageInfo_StringPair.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_StringPair proto.InternalMessageInfo |
| |
| func (m *StringPair) GetKey() string { |
| if m != nil { |
| return m.Key |
| } |
| return "" |
| } |
| |
| func (m *StringPair) GetValue() string { |
| if m != nil { |
| return m.Value |
| } |
| return "" |
| } |
| |
| // Half-open time range. |
| type TimeRange struct { |
| // Inclusive lower boundary. Optional. |
| StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` |
| // Exclusive upper boundary. Optional. |
| EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TimeRange) Reset() { *m = TimeRange{} } |
| func (m *TimeRange) String() string { return proto.CompactTextString(m) } |
| func (*TimeRange) ProtoMessage() {} |
| func (*TimeRange) Descriptor() ([]byte, []int) { |
| return fileDescriptor_common_f120f192eb0444fd, []int{3} |
| } |
| func (m *TimeRange) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TimeRange.Unmarshal(m, b) |
| } |
| func (m *TimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TimeRange.Marshal(b, m, deterministic) |
| } |
| func (dst *TimeRange) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TimeRange.Merge(dst, src) |
| } |
| func (m *TimeRange) XXX_Size() int { |
| return xxx_messageInfo_TimeRange.Size(m) |
| } |
| func (m *TimeRange) XXX_DiscardUnknown() { |
| xxx_messageInfo_TimeRange.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TimeRange proto.InternalMessageInfo |
| |
| func (m *TimeRange) GetStartTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.StartTime |
| } |
| return nil |
| } |
| |
| func (m *TimeRange) GetEndTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.EndTime |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*GerritChange)(nil), "buildbucket.v2.GerritChange") |
| proto.RegisterType((*GitilesCommit)(nil), "buildbucket.v2.GitilesCommit") |
| proto.RegisterType((*StringPair)(nil), "buildbucket.v2.StringPair") |
| proto.RegisterType((*TimeRange)(nil), "buildbucket.v2.TimeRange") |
| proto.RegisterEnum("buildbucket.v2.Status", Status_name, Status_value) |
| proto.RegisterEnum("buildbucket.v2.Trinary", Trinary_name, Trinary_value) |
| } |
| |
| func init() { |
| proto.RegisterFile("go.chromium.org/luci/buildbucket/proto/common.proto", fileDescriptor_common_f120f192eb0444fd) |
| } |
| |
| var fileDescriptor_common_f120f192eb0444fd = []byte{ |
| // 467 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x6f, 0x9b, 0x4c, |
| 0x10, 0xc5, 0x03, 0x76, 0x6c, 0x33, 0xb1, 0xad, 0xfd, 0x56, 0x51, 0x64, 0xf9, 0xf2, 0x45, 0x56, |
| 0x2b, 0x45, 0x39, 0x60, 0x29, 0x49, 0x2b, 0x55, 0x3d, 0x51, 0x58, 0xa7, 0x56, 0x53, 0x1a, 0xb1, |
| 0x70, 0x68, 0x2f, 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