Documentation ¶
Overview ¶
Package buildbucket is generated from Buildbucket .proto files.
It contains pRPC and mock implementations of Builds RPC service.
The package also contains helper functions for some types, e.g.
(Status) Ended() bool (*Build) RunDuration() (duration time.Duration, ok bool) (*Build) SchedulingDuration() (duration time.Duration, ok bool) (*Build) ParseTags() strpair.Map
Index ¶
- Variables
- func FileDescriptorSet() *descriptor.FileDescriptorSet
- func RegisterBuildsServer(s prpc.Registrar, srv BuildsServer)
- type BatchRequest
- func (*BatchRequest) Descriptor() ([]byte, []int)
- func (m *BatchRequest) GetRequests() []*BatchRequest_Request
- func (*BatchRequest) ProtoMessage()
- func (m *BatchRequest) Reset()
- func (m *BatchRequest) String() string
- func (m *BatchRequest) XXX_DiscardUnknown()
- func (m *BatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchRequest) XXX_Merge(src proto.Message)
- func (m *BatchRequest) XXX_Size() int
- func (m *BatchRequest) XXX_Unmarshal(b []byte) error
- type BatchRequest_Request
- func (*BatchRequest_Request) Descriptor() ([]byte, []int)
- func (m *BatchRequest_Request) GetGetBuild() *GetBuildRequest
- func (m *BatchRequest_Request) GetRequest() isBatchRequest_Request_Request
- func (m *BatchRequest_Request) GetSearchBuilds() *SearchBuildsRequest
- func (*BatchRequest_Request) ProtoMessage()
- func (m *BatchRequest_Request) Reset()
- func (m *BatchRequest_Request) String() string
- func (m *BatchRequest_Request) XXX_DiscardUnknown()
- func (m *BatchRequest_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchRequest_Request) XXX_Merge(src proto.Message)
- func (*BatchRequest_Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *BatchRequest_Request) XXX_Size() int
- func (m *BatchRequest_Request) XXX_Unmarshal(b []byte) error
- type BatchRequest_Request_GetBuild
- type BatchRequest_Request_SearchBuilds
- type BatchResponse
- func (*BatchResponse) Descriptor() ([]byte, []int)
- func (m *BatchResponse) GetResponses() []*BatchResponse_Response
- func (*BatchResponse) ProtoMessage()
- func (m *BatchResponse) Reset()
- func (m *BatchResponse) String() string
- func (m *BatchResponse) XXX_DiscardUnknown()
- func (m *BatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchResponse) XXX_Merge(src proto.Message)
- func (m *BatchResponse) XXX_Size() int
- func (m *BatchResponse) XXX_Unmarshal(b []byte) error
- type BatchResponse_Response
- func (*BatchResponse_Response) Descriptor() ([]byte, []int)
- func (m *BatchResponse_Response) GetError() *status.Status
- func (m *BatchResponse_Response) GetGetBuild() *Build
- func (m *BatchResponse_Response) GetResponse() isBatchResponse_Response_Response
- func (m *BatchResponse_Response) GetSearchBuilds() *SearchBuildsResponse
- func (*BatchResponse_Response) ProtoMessage()
- func (m *BatchResponse_Response) Reset()
- func (m *BatchResponse_Response) String() string
- func (m *BatchResponse_Response) XXX_DiscardUnknown()
- func (m *BatchResponse_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchResponse_Response) XXX_Merge(src proto.Message)
- func (*BatchResponse_Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *BatchResponse_Response) XXX_Size() int
- func (m *BatchResponse_Response) XXX_Unmarshal(b []byte) error
- type BatchResponse_Response_Error
- type BatchResponse_Response_GetBuild
- type BatchResponse_Response_SearchBuilds
- type Build
- func (*Build) Descriptor() ([]byte, []int)
- func (m *Build) GetBuilder() *BuilderID
- func (m *Build) GetCancelReason() *CancelReason
- func (m *Build) GetCreateTime() *timestamp.Timestamp
- func (m *Build) GetCreatedBy() string
- func (m *Build) GetEndTime() *timestamp.Timestamp
- func (m *Build) GetId() int64
- func (m *Build) GetInfra() *BuildInfra
- func (m *Build) GetInfraFailureReason() *InfraFailureReason
- func (m *Build) GetInput() *Build_Input
- func (m *Build) GetNumber() int32
- func (m *Build) GetOutput() *Build_Output
- func (m *Build) GetStartTime() *timestamp.Timestamp
- func (m *Build) GetStatus() Status
- func (m *Build) GetStatusReason() isBuild_StatusReason
- func (m *Build) GetSteps() []*Step
- func (m *Build) GetTags() []*StringPair
- func (m *Build) GetUpdateTime() *timestamp.Timestamp
- func (b *Build) ParseTags() strpair.Map
- func (*Build) ProtoMessage()
- func (m *Build) Reset()
- func (b *Build) RunDuration() (duration time.Duration, ok bool)
- func (b *Build) SchedulingDuration() (duration time.Duration, ok bool)
- func (m *Build) String() string
- func (m *Build) XXX_DiscardUnknown()
- func (m *Build) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Build) XXX_Merge(src proto.Message)
- func (*Build) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Build) XXX_Size() int
- func (m *Build) XXX_Unmarshal(b []byte) error
- type BuildInfra
- func (*BuildInfra) Descriptor() ([]byte, []int)
- func (m *BuildInfra) GetBuildbucket() *BuildInfra_Buildbucket
- func (m *BuildInfra) GetLogdog() *BuildInfra_LogDog
- func (m *BuildInfra) GetSwarming() *BuildInfra_Swarming
- func (*BuildInfra) ProtoMessage()
- func (m *BuildInfra) Reset()
- func (m *BuildInfra) String() string
- func (m *BuildInfra) XXX_DiscardUnknown()
- func (m *BuildInfra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildInfra) XXX_Merge(src proto.Message)
- func (m *BuildInfra) XXX_Size() int
- func (m *BuildInfra) XXX_Unmarshal(b []byte) error
- type BuildInfra_Buildbucket
- func (*BuildInfra_Buildbucket) Descriptor() ([]byte, []int)
- func (m *BuildInfra_Buildbucket) GetCanary() bool
- func (m *BuildInfra_Buildbucket) GetServiceConfigRevision() string
- func (*BuildInfra_Buildbucket) ProtoMessage()
- func (m *BuildInfra_Buildbucket) Reset()
- func (m *BuildInfra_Buildbucket) String() string
- func (m *BuildInfra_Buildbucket) XXX_DiscardUnknown()
- func (m *BuildInfra_Buildbucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildInfra_Buildbucket) XXX_Merge(src proto.Message)
- func (m *BuildInfra_Buildbucket) XXX_Size() int
- func (m *BuildInfra_Buildbucket) XXX_Unmarshal(b []byte) error
- type BuildInfra_LogDog
- func (*BuildInfra_LogDog) Descriptor() ([]byte, []int)
- func (m *BuildInfra_LogDog) GetHostname() string
- func (m *BuildInfra_LogDog) GetPrefix() string
- func (m *BuildInfra_LogDog) GetProject() string
- func (*BuildInfra_LogDog) ProtoMessage()
- func (m *BuildInfra_LogDog) Reset()
- func (m *BuildInfra_LogDog) String() string
- func (m *BuildInfra_LogDog) XXX_DiscardUnknown()
- func (m *BuildInfra_LogDog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildInfra_LogDog) XXX_Merge(src proto.Message)
- func (m *BuildInfra_LogDog) XXX_Size() int
- func (m *BuildInfra_LogDog) XXX_Unmarshal(b []byte) error
- type BuildInfra_Swarming
- func (*BuildInfra_Swarming) Descriptor() ([]byte, []int)
- func (m *BuildInfra_Swarming) GetBotDimensions() []*StringPair
- func (m *BuildInfra_Swarming) GetHostname() string
- func (m *BuildInfra_Swarming) GetPriority() int32
- func (m *BuildInfra_Swarming) GetTaskDimensions() []*StringPair
- func (m *BuildInfra_Swarming) GetTaskId() string
- func (m *BuildInfra_Swarming) GetTaskServiceAccount() string
- func (*BuildInfra_Swarming) ProtoMessage()
- func (m *BuildInfra_Swarming) Reset()
- func (m *BuildInfra_Swarming) String() string
- func (m *BuildInfra_Swarming) XXX_DiscardUnknown()
- func (m *BuildInfra_Swarming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildInfra_Swarming) XXX_Merge(src proto.Message)
- func (m *BuildInfra_Swarming) XXX_Size() int
- func (m *BuildInfra_Swarming) XXX_Unmarshal(b []byte) error
- type BuildPredicate
- func (*BuildPredicate) Descriptor() ([]byte, []int)
- func (m *BuildPredicate) GetBuild() *BuildRange
- func (m *BuildPredicate) GetBuilder() *BuilderID
- func (m *BuildPredicate) GetCreateTime() *TimeRange
- func (m *BuildPredicate) GetCreatedBy() string
- func (m *BuildPredicate) GetGerritChanges() []*GerritChange
- func (m *BuildPredicate) GetIncludeExperimental() bool
- func (m *BuildPredicate) GetOutputGitilesCommit() *GitilesCommit
- func (m *BuildPredicate) GetStatus() Status
- func (m *BuildPredicate) GetTags() []*StringPair
- func (*BuildPredicate) ProtoMessage()
- func (m *BuildPredicate) Reset()
- func (m *BuildPredicate) String() string
- func (m *BuildPredicate) XXX_DiscardUnknown()
- func (m *BuildPredicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildPredicate) XXX_Merge(src proto.Message)
- func (m *BuildPredicate) XXX_Size() int
- func (m *BuildPredicate) XXX_Unmarshal(b []byte) error
- type BuildRange
- func (*BuildRange) Descriptor() ([]byte, []int)
- func (m *BuildRange) GetEndBuildId() int64
- func (m *BuildRange) GetStartBuildId() int64
- func (*BuildRange) ProtoMessage()
- func (m *BuildRange) Reset()
- func (m *BuildRange) String() string
- func (m *BuildRange) XXX_DiscardUnknown()
- func (m *BuildRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildRange) XXX_Merge(src proto.Message)
- func (m *BuildRange) XXX_Size() int
- func (m *BuildRange) XXX_Unmarshal(b []byte) error
- type BuildSecrets
- func (*BuildSecrets) Descriptor() ([]byte, []int)
- func (m *BuildSecrets) GetBuildToken() []byte
- func (*BuildSecrets) ProtoMessage()
- func (m *BuildSecrets) Reset()
- func (m *BuildSecrets) String() string
- func (m *BuildSecrets) XXX_DiscardUnknown()
- func (m *BuildSecrets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildSecrets) XXX_Merge(src proto.Message)
- func (m *BuildSecrets) XXX_Size() int
- func (m *BuildSecrets) XXX_Unmarshal(b []byte) error
- type BuildSet
- type Build_CancelReason
- type Build_InfraFailureReason
- type Build_Input
- func (*Build_Input) Descriptor() ([]byte, []int)
- func (m *Build_Input) GetExperimental() bool
- func (m *Build_Input) GetGerritChanges() []*GerritChange
- func (m *Build_Input) GetGitilesCommit() *GitilesCommit
- func (m *Build_Input) GetProperties() *_struct.Struct
- func (*Build_Input) ProtoMessage()
- func (m *Build_Input) Reset()
- func (m *Build_Input) String() string
- func (m *Build_Input) XXX_DiscardUnknown()
- func (m *Build_Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Build_Input) XXX_Merge(src proto.Message)
- func (m *Build_Input) XXX_Size() int
- func (m *Build_Input) XXX_Unmarshal(b []byte) error
- type Build_Output
- func (*Build_Output) Descriptor() ([]byte, []int)
- func (m *Build_Output) GetGitilesCommit() *GitilesCommit
- func (m *Build_Output) GetProperties() *_struct.Struct
- func (m *Build_Output) GetSummaryMarkdown() string
- func (*Build_Output) ProtoMessage()
- func (m *Build_Output) Reset()
- func (m *Build_Output) String() string
- func (m *Build_Output) XXX_DiscardUnknown()
- func (m *Build_Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Build_Output) XXX_Merge(src proto.Message)
- func (m *Build_Output) XXX_Size() int
- func (m *Build_Output) XXX_Unmarshal(b []byte) error
- type BuilderID
- func (*BuilderID) Descriptor() ([]byte, []int)
- func (m *BuilderID) GetBucket() string
- func (m *BuilderID) GetBuilder() string
- func (m *BuilderID) GetProject() string
- func (id *BuilderID) IDString() string
- func (*BuilderID) ProtoMessage()
- func (m *BuilderID) Reset()
- func (m *BuilderID) String() string
- func (m *BuilderID) XXX_DiscardUnknown()
- func (m *BuilderID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuilderID) XXX_Merge(src proto.Message)
- func (m *BuilderID) XXX_Size() int
- func (m *BuilderID) XXX_Unmarshal(b []byte) error
- type BuildsClient
- type BuildsServer
- type CancelBuildRequest
- func (*CancelBuildRequest) Descriptor() ([]byte, []int)
- func (m *CancelBuildRequest) GetFields() *field_mask.FieldMask
- func (m *CancelBuildRequest) GetId() int64
- func (m *CancelBuildRequest) GetReason() *CancelReason
- func (*CancelBuildRequest) ProtoMessage()
- func (m *CancelBuildRequest) Reset()
- func (m *CancelBuildRequest) String() string
- func (m *CancelBuildRequest) XXX_DiscardUnknown()
- func (m *CancelBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CancelBuildRequest) XXX_Merge(src proto.Message)
- func (m *CancelBuildRequest) XXX_Size() int
- func (m *CancelBuildRequest) XXX_Unmarshal(b []byte) error
- type CancelReason
- func (*CancelReason) Descriptor() ([]byte, []int)
- func (m *CancelReason) GetCanceledBy() string
- func (m *CancelReason) GetMessage() string
- func (*CancelReason) ProtoMessage()
- func (m *CancelReason) Reset()
- func (m *CancelReason) String() string
- func (m *CancelReason) XXX_DiscardUnknown()
- func (m *CancelReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CancelReason) XXX_Merge(src proto.Message)
- func (m *CancelReason) XXX_Size() int
- func (m *CancelReason) XXX_Unmarshal(b []byte) error
- type GerritChange
- func (c *GerritChange) BuildSetString() string
- func (*GerritChange) Descriptor() ([]byte, []int)
- func (m *GerritChange) GetChange() int64
- func (m *GerritChange) GetHost() string
- func (m *GerritChange) GetPatchset() int64
- func (m *GerritChange) GetProject() string
- func (*GerritChange) ProtoMessage()
- func (m *GerritChange) Reset()
- func (m *GerritChange) String() string
- func (c *GerritChange) URL() string
- func (m *GerritChange) XXX_DiscardUnknown()
- func (m *GerritChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GerritChange) XXX_Merge(src proto.Message)
- func (m *GerritChange) XXX_Size() int
- func (m *GerritChange) XXX_Unmarshal(b []byte) error
- type GetBuildRequest
- func (*GetBuildRequest) Descriptor() ([]byte, []int)
- func (m *GetBuildRequest) GetBuildNumber() int32
- func (m *GetBuildRequest) GetBuilder() *BuilderID
- func (m *GetBuildRequest) GetFields() *field_mask.FieldMask
- func (m *GetBuildRequest) GetId() int64
- func (*GetBuildRequest) ProtoMessage()
- func (m *GetBuildRequest) Reset()
- func (m *GetBuildRequest) String() string
- func (m *GetBuildRequest) XXX_DiscardUnknown()
- func (m *GetBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBuildRequest) XXX_Merge(src proto.Message)
- func (m *GetBuildRequest) XXX_Size() int
- func (m *GetBuildRequest) XXX_Unmarshal(b []byte) error
- type GitilesCommit
- func (c *GitilesCommit) BuildSetString() string
- func (*GitilesCommit) Descriptor() ([]byte, []int)
- func (m *GitilesCommit) GetHost() string
- func (m *GitilesCommit) GetId() string
- func (m *GitilesCommit) GetPosition() uint32
- func (m *GitilesCommit) GetProject() string
- func (m *GitilesCommit) GetRef() string
- func (*GitilesCommit) ProtoMessage()
- func (c *GitilesCommit) RepoURL() string
- func (m *GitilesCommit) Reset()
- func (m *GitilesCommit) String() string
- func (c *GitilesCommit) URL() string
- func (m *GitilesCommit) XXX_DiscardUnknown()
- func (m *GitilesCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GitilesCommit) XXX_Merge(src proto.Message)
- func (m *GitilesCommit) XXX_Size() int
- func (m *GitilesCommit) XXX_Unmarshal(b []byte) error
- type InfraFailureReason
- func (*InfraFailureReason) Descriptor() ([]byte, []int)
- func (m *InfraFailureReason) GetMessage() string
- func (m *InfraFailureReason) GetResourceExhaustion() bool
- func (*InfraFailureReason) ProtoMessage()
- func (m *InfraFailureReason) Reset()
- func (m *InfraFailureReason) String() string
- func (m *InfraFailureReason) XXX_DiscardUnknown()
- func (m *InfraFailureReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfraFailureReason) XXX_Merge(src proto.Message)
- func (m *InfraFailureReason) XXX_Size() int
- func (m *InfraFailureReason) XXX_Unmarshal(b []byte) error
- type MockBuildsClient
- func (m *MockBuildsClient) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error)
- func (m *MockBuildsClient) CancelBuild(ctx context.Context, in *CancelBuildRequest, opts ...grpc.CallOption) (*Build, error)
- func (m *MockBuildsClient) EXPECT() *MockBuildsClientMockRecorder
- func (m *MockBuildsClient) GetBuild(ctx context.Context, in *GetBuildRequest, opts ...grpc.CallOption) (*Build, error)
- func (m *MockBuildsClient) ScheduleBuild(ctx context.Context, in *ScheduleBuildRequest, opts ...grpc.CallOption) (*Build, error)
- func (m *MockBuildsClient) SearchBuilds(ctx context.Context, in *SearchBuildsRequest, opts ...grpc.CallOption) (*SearchBuildsResponse, error)
- func (m *MockBuildsClient) UpdateBuild(ctx context.Context, in *UpdateBuildRequest, opts ...grpc.CallOption) (*Build, error)
- type MockBuildsClientMockRecorder
- func (mr *MockBuildsClientMockRecorder) Batch(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBuildsClientMockRecorder) CancelBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBuildsClientMockRecorder) GetBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBuildsClientMockRecorder) ScheduleBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBuildsClientMockRecorder) SearchBuilds(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockBuildsClientMockRecorder) UpdateBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockBuildsServer
- func (m *MockBuildsServer) Batch(arg0 context.Context, arg1 *BatchRequest) (*BatchResponse, error)
- func (m *MockBuildsServer) CancelBuild(arg0 context.Context, arg1 *CancelBuildRequest) (*Build, error)
- func (m *MockBuildsServer) EXPECT() *MockBuildsServerMockRecorder
- func (m *MockBuildsServer) GetBuild(arg0 context.Context, arg1 *GetBuildRequest) (*Build, error)
- func (m *MockBuildsServer) ScheduleBuild(arg0 context.Context, arg1 *ScheduleBuildRequest) (*Build, error)
- func (m *MockBuildsServer) SearchBuilds(arg0 context.Context, arg1 *SearchBuildsRequest) (*SearchBuildsResponse, error)
- func (m *MockBuildsServer) UpdateBuild(arg0 context.Context, arg1 *UpdateBuildRequest) (*Build, error)
- type MockBuildsServerMockRecorder
- func (mr *MockBuildsServerMockRecorder) Batch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBuildsServerMockRecorder) CancelBuild(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBuildsServerMockRecorder) GetBuild(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBuildsServerMockRecorder) ScheduleBuild(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBuildsServerMockRecorder) SearchBuilds(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBuildsServerMockRecorder) UpdateBuild(arg0, arg1 interface{}) *gomock.Call
- type MockisBatchRequest_Request_Request
- type MockisBatchRequest_Request_RequestMockRecorder
- type MockisBatchResponse_Response_Response
- type MockisBatchResponse_Response_ResponseMockRecorder
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)
- func (m *Notification) GetAppId() string
- func (m *Notification) GetBuildId() int64
- func (m *Notification) GetTimestamp() *timestamp.Timestamp
- func (m *Notification) GetUserData() []byte
- func (*Notification) ProtoMessage()
- func (m *Notification) Reset()
- func (m *Notification) String() string
- func (m *Notification) XXX_DiscardUnknown()
- func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Notification) XXX_Merge(src proto.Message)
- func (m *Notification) XXX_Size() int
- func (m *Notification) XXX_Unmarshal(b []byte) error
- type NotificationConfig
- func (*NotificationConfig) Descriptor() ([]byte, []int)
- func (m *NotificationConfig) GetPubsubTopic() string
- func (m *NotificationConfig) GetUserData() []byte
- func (*NotificationConfig) ProtoMessage()
- func (m *NotificationConfig) Reset()
- func (m *NotificationConfig) String() string
- func (m *NotificationConfig) XXX_DiscardUnknown()
- func (m *NotificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotificationConfig) XXX_Merge(src proto.Message)
- func (m *NotificationConfig) XXX_Size() int
- func (m *NotificationConfig) XXX_Unmarshal(b []byte) error
- type ScheduleBuildRequest
- func (*ScheduleBuildRequest) Descriptor() ([]byte, []int)
- func (m *ScheduleBuildRequest) GetBuilder() *BuilderID
- func (m *ScheduleBuildRequest) GetCanary() Trinary
- func (m *ScheduleBuildRequest) GetDimensions() []*StringPair
- func (m *ScheduleBuildRequest) GetExperimental() Trinary
- func (m *ScheduleBuildRequest) GetFields() *field_mask.FieldMask
- func (m *ScheduleBuildRequest) GetGerritChanges() []*GerritChange
- func (m *ScheduleBuildRequest) GetGitilesCommit() *GitilesCommit
- func (m *ScheduleBuildRequest) GetNotify() *NotificationConfig
- func (m *ScheduleBuildRequest) GetPriority() int32
- func (m *ScheduleBuildRequest) GetProperties() *_struct.Struct
- func (m *ScheduleBuildRequest) GetRequestId() string
- func (m *ScheduleBuildRequest) GetTags() []*StringPair
- func (m *ScheduleBuildRequest) GetTemplateBuildId() int64
- func (*ScheduleBuildRequest) ProtoMessage()
- func (m *ScheduleBuildRequest) Reset()
- func (m *ScheduleBuildRequest) String() string
- func (m *ScheduleBuildRequest) XXX_DiscardUnknown()
- func (m *ScheduleBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ScheduleBuildRequest) XXX_Merge(src proto.Message)
- func (m *ScheduleBuildRequest) XXX_Size() int
- func (m *ScheduleBuildRequest) XXX_Unmarshal(b []byte) error
- type SearchBuildsRequest
- func (*SearchBuildsRequest) Descriptor() ([]byte, []int)
- func (m *SearchBuildsRequest) GetFields() *field_mask.FieldMask
- func (m *SearchBuildsRequest) GetPageSize() int32
- func (m *SearchBuildsRequest) GetPageToken() string
- func (m *SearchBuildsRequest) GetPredicate() *BuildPredicate
- func (*SearchBuildsRequest) ProtoMessage()
- func (m *SearchBuildsRequest) Reset()
- func (m *SearchBuildsRequest) String() string
- func (m *SearchBuildsRequest) XXX_DiscardUnknown()
- func (m *SearchBuildsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchBuildsRequest) XXX_Merge(src proto.Message)
- func (m *SearchBuildsRequest) XXX_Size() int
- func (m *SearchBuildsRequest) XXX_Unmarshal(b []byte) error
- type SearchBuildsResponse
- func (*SearchBuildsResponse) Descriptor() ([]byte, []int)
- func (m *SearchBuildsResponse) GetBuilds() []*Build
- func (m *SearchBuildsResponse) GetNextPageToken() string
- func (*SearchBuildsResponse) ProtoMessage()
- func (m *SearchBuildsResponse) Reset()
- func (m *SearchBuildsResponse) String() string
- func (m *SearchBuildsResponse) XXX_DiscardUnknown()
- func (m *SearchBuildsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchBuildsResponse) XXX_Merge(src proto.Message)
- func (m *SearchBuildsResponse) XXX_Size() int
- func (m *SearchBuildsResponse) XXX_Unmarshal(b []byte) error
- type Status
- type Step
- func (*Step) Descriptor() ([]byte, []int)
- func (m *Step) GetEndTime() *timestamp.Timestamp
- func (m *Step) GetLogs() []*Step_Log
- func (m *Step) GetName() string
- func (m *Step) GetStartTime() *timestamp.Timestamp
- func (m *Step) GetStatus() Status
- func (m *Step) GetSummaryMarkdown() string
- func (*Step) ProtoMessage()
- func (m *Step) Reset()
- func (m *Step) String() string
- func (m *Step) XXX_DiscardUnknown()
- func (m *Step) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Step) XXX_Merge(src proto.Message)
- func (m *Step) XXX_Size() int
- func (m *Step) XXX_Unmarshal(b []byte) error
- type Step_Log
- func (*Step_Log) Descriptor() ([]byte, []int)
- func (m *Step_Log) GetName() string
- func (m *Step_Log) GetUrl() string
- func (m *Step_Log) GetViewUrl() string
- func (*Step_Log) ProtoMessage()
- func (m *Step_Log) Reset()
- func (m *Step_Log) String() string
- func (m *Step_Log) XXX_DiscardUnknown()
- func (m *Step_Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Step_Log) XXX_Merge(src proto.Message)
- func (m *Step_Log) XXX_Size() int
- func (m *Step_Log) XXX_Unmarshal(b []byte) error
- type StringPair
- func (*StringPair) Descriptor() ([]byte, []int)
- func (m *StringPair) GetKey() string
- func (m *StringPair) GetValue() string
- func (*StringPair) ProtoMessage()
- func (m *StringPair) Reset()
- func (m *StringPair) String() string
- func (m *StringPair) XXX_DiscardUnknown()
- func (m *StringPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringPair) XXX_Merge(src proto.Message)
- func (m *StringPair) XXX_Size() int
- func (m *StringPair) XXX_Unmarshal(b []byte) error
- type TimeRange
- func (*TimeRange) Descriptor() ([]byte, []int)
- func (m *TimeRange) GetEndTime() *timestamp.Timestamp
- func (m *TimeRange) GetStartTime() *timestamp.Timestamp
- func (*TimeRange) ProtoMessage()
- func (m *TimeRange) Reset()
- func (m *TimeRange) String() string
- func (m *TimeRange) XXX_DiscardUnknown()
- func (m *TimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimeRange) XXX_Merge(src proto.Message)
- func (m *TimeRange) XXX_Size() int
- func (m *TimeRange) XXX_Unmarshal(b []byte) error
- type Trinary
- type UpdateBuildRequest
- func (*UpdateBuildRequest) Descriptor() ([]byte, []int)
- func (m *UpdateBuildRequest) GetBuild() *Build
- func (m *UpdateBuildRequest) GetFields() *field_mask.FieldMask
- func (m *UpdateBuildRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateBuildRequest) ProtoMessage()
- func (m *UpdateBuildRequest) Reset()
- func (m *UpdateBuildRequest) String() string
- func (m *UpdateBuildRequest) XXX_DiscardUnknown()
- func (m *UpdateBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateBuildRequest) XXX_Merge(src proto.Message)
- func (m *UpdateBuildRequest) XXX_Size() int
- func (m *UpdateBuildRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
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,
}
var Trinary_name = map[int32]string{
0: "UNSET",
1: "YES",
2: "NO",
}
var Trinary_value = map[string]int32{
"UNSET": 0,
"YES": 1,
"NO": 2,
}
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet() *descriptor.FileDescriptorSet
FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.
Will not return nil.
Do NOT modify the returned descriptor.
func RegisterBuildsServer ¶
func RegisterBuildsServer(s prpc.Registrar, srv BuildsServer)
Types ¶
type BatchRequest ¶
type BatchRequest struct { // Requests to execute in a single batch. // // Requests related to same build are coupled. // Mutation requests are executed transactionally, before read-only requests. Requests []*BatchRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A request message for Batch rpc.
func (*BatchRequest) Descriptor ¶
func (*BatchRequest) Descriptor() ([]byte, []int)
func (*BatchRequest) GetRequests ¶
func (m *BatchRequest) GetRequests() []*BatchRequest_Request
func (*BatchRequest) ProtoMessage ¶
func (*BatchRequest) ProtoMessage()
func (*BatchRequest) Reset ¶
func (m *BatchRequest) Reset()
func (*BatchRequest) String ¶
func (m *BatchRequest) String() string
func (*BatchRequest) XXX_DiscardUnknown ¶
func (m *BatchRequest) XXX_DiscardUnknown()
func (*BatchRequest) XXX_Marshal ¶
func (m *BatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchRequest) XXX_Merge ¶
func (m *BatchRequest) XXX_Merge(src proto.Message)
func (*BatchRequest) XXX_Size ¶
func (m *BatchRequest) XXX_Size() int
func (*BatchRequest) XXX_Unmarshal ¶
func (m *BatchRequest) XXX_Unmarshal(b []byte) error
type BatchRequest_Request ¶
type BatchRequest_Request struct { // Types that are valid to be assigned to Request: // *BatchRequest_Request_GetBuild // *BatchRequest_Request_SearchBuilds Request isBatchRequest_Request_Request `protobuf_oneof:"request"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
One request in a batch.
func (*BatchRequest_Request) Descriptor ¶
func (*BatchRequest_Request) Descriptor() ([]byte, []int)
func (*BatchRequest_Request) GetGetBuild ¶
func (m *BatchRequest_Request) GetGetBuild() *GetBuildRequest
func (*BatchRequest_Request) GetRequest ¶
func (m *BatchRequest_Request) GetRequest() isBatchRequest_Request_Request
func (*BatchRequest_Request) GetSearchBuilds ¶
func (m *BatchRequest_Request) GetSearchBuilds() *SearchBuildsRequest
func (*BatchRequest_Request) ProtoMessage ¶
func (*BatchRequest_Request) ProtoMessage()
func (*BatchRequest_Request) Reset ¶
func (m *BatchRequest_Request) Reset()
func (*BatchRequest_Request) String ¶
func (m *BatchRequest_Request) String() string
func (*BatchRequest_Request) XXX_DiscardUnknown ¶
func (m *BatchRequest_Request) XXX_DiscardUnknown()
func (*BatchRequest_Request) XXX_Marshal ¶
func (m *BatchRequest_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchRequest_Request) XXX_Merge ¶
func (m *BatchRequest_Request) XXX_Merge(src proto.Message)
func (*BatchRequest_Request) XXX_OneofFuncs ¶
func (*BatchRequest_Request) 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{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*BatchRequest_Request) XXX_Size ¶
func (m *BatchRequest_Request) XXX_Size() int
func (*BatchRequest_Request) XXX_Unmarshal ¶
func (m *BatchRequest_Request) XXX_Unmarshal(b []byte) error
type BatchRequest_Request_GetBuild ¶
type BatchRequest_Request_GetBuild struct {
GetBuild *GetBuildRequest `protobuf:"bytes,1,opt,name=get_build,json=getBuild,proto3,oneof"`
}
type BatchRequest_Request_SearchBuilds ¶
type BatchRequest_Request_SearchBuilds struct {
SearchBuilds *SearchBuildsRequest `protobuf:"bytes,2,opt,name=search_builds,json=searchBuilds,proto3,oneof"`
}
type BatchResponse ¶
type BatchResponse struct { // Responses in the same order as BatchRequest.requests. Responses []*BatchResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A response message for Batch rpc.
func (*BatchResponse) Descriptor ¶
func (*BatchResponse) Descriptor() ([]byte, []int)
func (*BatchResponse) GetResponses ¶
func (m *BatchResponse) GetResponses() []*BatchResponse_Response
func (*BatchResponse) ProtoMessage ¶
func (*BatchResponse) ProtoMessage()
func (*BatchResponse) Reset ¶
func (m *BatchResponse) Reset()
func (*BatchResponse) String ¶
func (m *BatchResponse) String() string
func (*BatchResponse) XXX_DiscardUnknown ¶
func (m *BatchResponse) XXX_DiscardUnknown()
func (*BatchResponse) XXX_Marshal ¶
func (m *BatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchResponse) XXX_Merge ¶
func (m *BatchResponse) XXX_Merge(src proto.Message)
func (*BatchResponse) XXX_Size ¶
func (m *BatchResponse) XXX_Size() int
func (*BatchResponse) XXX_Unmarshal ¶
func (m *BatchResponse) XXX_Unmarshal(b []byte) error
type BatchResponse_Response ¶
type BatchResponse_Response struct { // Types that are valid to be assigned to Response: // *BatchResponse_Response_GetBuild // *BatchResponse_Response_SearchBuilds // *BatchResponse_Response_Error Response isBatchResponse_Response_Response `protobuf_oneof:"response"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response a BatchRequest.Response.
func (*BatchResponse_Response) Descriptor ¶
func (*BatchResponse_Response) Descriptor() ([]byte, []int)
func (*BatchResponse_Response) GetError ¶
func (m *BatchResponse_Response) GetError() *status.Status
func (*BatchResponse_Response) GetGetBuild ¶
func (m *BatchResponse_Response) GetGetBuild() *Build
func (*BatchResponse_Response) GetResponse ¶
func (m *BatchResponse_Response) GetResponse() isBatchResponse_Response_Response
func (*BatchResponse_Response) GetSearchBuilds ¶
func (m *BatchResponse_Response) GetSearchBuilds() *SearchBuildsResponse
func (*BatchResponse_Response) ProtoMessage ¶
func (*BatchResponse_Response) ProtoMessage()
func (*BatchResponse_Response) Reset ¶
func (m *BatchResponse_Response) Reset()
func (*BatchResponse_Response) String ¶
func (m *BatchResponse_Response) String() string
func (*BatchResponse_Response) XXX_DiscardUnknown ¶
func (m *BatchResponse_Response) XXX_DiscardUnknown()
func (*BatchResponse_Response) XXX_Marshal ¶
func (m *BatchResponse_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchResponse_Response) XXX_Merge ¶
func (m *BatchResponse_Response) XXX_Merge(src proto.Message)
func (*BatchResponse_Response) XXX_OneofFuncs ¶
func (*BatchResponse_Response) 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{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*BatchResponse_Response) XXX_Size ¶
func (m *BatchResponse_Response) XXX_Size() int
func (*BatchResponse_Response) XXX_Unmarshal ¶
func (m *BatchResponse_Response) XXX_Unmarshal(b []byte) error
type BatchResponse_Response_GetBuild ¶
type BatchResponse_Response_GetBuild struct {
GetBuild *Build `protobuf:"bytes,1,opt,name=get_build,json=getBuild,proto3,oneof"`
}
type BatchResponse_Response_SearchBuilds ¶
type BatchResponse_Response_SearchBuilds struct {
SearchBuilds *SearchBuildsResponse `protobuf:"bytes,2,opt,name=search_builds,json=searchBuilds,proto3,oneof"`
}
type Build ¶
type Build struct { // Identifier of the build, unique per LUCI deployment. // IDs are monotonically decreasing. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Required. The builder this build belongs to. // // Tuple (builder.project, builder.bucket) defines build ACL // which may change after build has ended. Builder *BuilderID `protobuf:"bytes,2,opt,name=builder,proto3" json:"builder,omitempty"` // Human-oriented identifier of the build with the following properties: // - unique within the builder // - a monotonically increasing number // - mostly contiguous // - much shorter than id // // Caution: populated (positive number) iff build numbers were enabled // in the builder configuration at the time of build creation. // // Caution: Build numbers are not guaranteed to be contiguous. // There may be gaps during outages. // // Caution: Build numbers, while monotonically increasing, do not // necessarily reflect source-code order. For example, force builds // or rebuilds can allocate new, higher, numbers, but build an older- // than-HEAD version of the source. Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` // Verified identity which created this build. CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // When the build was created. CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // When the build started. // Required iff status is STARTED, SUCCESS or FAILURE. StartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // When the build ended. // Present iff status is terminal. // MUST NOT be before start_time. EndTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // When the build was most recently updated. // // RPC: can be > end_time if, e.g. new tags were attached to a completed // build. UpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Status of the build. // Must be specified, i.e. not STATUS_UNSPECIFIED. // // RPC: Responses have most current status. // // BigQuery: Final status of the build. Cannot be SCHEDULED or STARTED. Status Status `protobuf:"varint,12,opt,name=status,proto3,enum=buildbucket.v2.Status" json:"status,omitempty"` // Explanation of the current status. // // Types that are valid to be assigned to StatusReason: // *Build_InfraFailureReason // *Build_CancelReason StatusReason isBuild_StatusReason `protobuf_oneof:"status_reason"` // Input to the build script / recipe. Input *Build_Input `protobuf:"bytes,15,opt,name=input,proto3" json:"input,omitempty"` // Output of the build script / recipe. // SHOULD depend only on input field and NOT other fields. // // RPC: By default, this field is excluded from responses. // Updated while the build is running and finalized when the build ends. Output *Build_Output `protobuf:"bytes,16,opt,name=output,proto3" json:"output,omitempty"` // Current list of build steps. // Updated as build runs. // // RPC: By default, this field is excluded from responses. Steps []*Step `protobuf:"bytes,17,rep,name=steps,proto3" json:"steps,omitempty"` // Build infrastructure used by the build. // // RPC: By default, this field is excluded from responses. Infra *BuildInfra `protobuf:"bytes,18,opt,name=infra,proto3" json:"infra,omitempty"` // Arbitrary annotations for the build. // One key may have multiple values, which is why this is not a map<string,string>. // Indexed by the server, see also BuildFilter.tags. Tags []*StringPair `protobuf:"bytes,19,rep,name=tags,proto3" json:"tags,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A single build, identified by an int64 id. Belongs to a builder.
RPC: see Builds service for build creation and retrieval. Some Build fields are marked as excluded from responses by default. Use build_fields request field to specify that a field must be included.
BigQuery: this message also defines schema of a BigQuery table of completed builds. A BigQuery row is inserted soon after build ends, i.e. a row represents a state of a build at completion time and does not change after that. All fields are included.
func (*Build) Descriptor ¶
func (*Build) GetBuilder ¶
func (*Build) GetCancelReason ¶
func (m *Build) GetCancelReason() *CancelReason
func (*Build) GetCreateTime ¶
func (*Build) GetCreatedBy ¶
func (*Build) GetEndTime ¶
func (*Build) GetInfra ¶
func (m *Build) GetInfra() *BuildInfra
func (*Build) GetInfraFailureReason ¶
func (m *Build) GetInfraFailureReason() *InfraFailureReason
func (*Build) GetInput ¶
func (m *Build) GetInput() *Build_Input
func (*Build) GetOutput ¶
func (m *Build) GetOutput() *Build_Output
func (*Build) GetStartTime ¶
func (*Build) GetStatusReason ¶
func (m *Build) GetStatusReason() isBuild_StatusReason
func (*Build) GetTags ¶
func (m *Build) GetTags() []*StringPair
func (*Build) GetUpdateTime ¶
func (*Build) ProtoMessage ¶
func (*Build) ProtoMessage()
func (*Build) RunDuration ¶
RunDuration returns duration between build start and end.
func (*Build) SchedulingDuration ¶
SchedulingDuration returns duration between build creation and start.
func (*Build) XXX_DiscardUnknown ¶
func (m *Build) XXX_DiscardUnknown()
func (*Build) XXX_Marshal ¶
func (*Build) XXX_OneofFuncs ¶
func (*Build) 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{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Build) XXX_Unmarshal ¶
type BuildInfra ¶
type BuildInfra struct { Buildbucket *BuildInfra_Buildbucket `protobuf:"bytes,1,opt,name=buildbucket,proto3" json:"buildbucket,omitempty"` Swarming *BuildInfra_Swarming `protobuf:"bytes,2,opt,name=swarming,proto3" json:"swarming,omitempty"` Logdog *BuildInfra_LogDog `protobuf:"bytes,3,opt,name=logdog,proto3" json:"logdog,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Build infrastructure that was used for a particular build.
func (*BuildInfra) Descriptor ¶
func (*BuildInfra) Descriptor() ([]byte, []int)
func (*BuildInfra) GetBuildbucket ¶
func (m *BuildInfra) GetBuildbucket() *BuildInfra_Buildbucket
func (*BuildInfra) GetLogdog ¶
func (m *BuildInfra) GetLogdog() *BuildInfra_LogDog
func (*BuildInfra) GetSwarming ¶
func (m *BuildInfra) GetSwarming() *BuildInfra_Swarming
func (*BuildInfra) ProtoMessage ¶
func (*BuildInfra) ProtoMessage()
func (*BuildInfra) Reset ¶
func (m *BuildInfra) Reset()
func (*BuildInfra) String ¶
func (m *BuildInfra) String() string
func (*BuildInfra) XXX_DiscardUnknown ¶
func (m *BuildInfra) XXX_DiscardUnknown()
func (*BuildInfra) XXX_Marshal ¶
func (m *BuildInfra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BuildInfra) XXX_Merge ¶
func (m *BuildInfra) XXX_Merge(src proto.Message)
func (*BuildInfra) XXX_Size ¶
func (m *BuildInfra) XXX_Size() int
func (*BuildInfra) XXX_Unmarshal ¶
func (m *BuildInfra) XXX_Unmarshal(b []byte) error
type BuildInfra_Buildbucket ¶
type BuildInfra_Buildbucket struct { // Version of swarming task template. Defines // versions of kitchen, git, git wrapper, python, vpython, etc. ServiceConfigRevision string `` /* 126-byte string literal not displayed */ // Whether canary version of the swarming task template was used for this // build. Canary bool `protobuf:"varint,4,opt,name=canary,proto3" json:"canary,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Buildbucket-specific information, captured at the build creation time.
func (*BuildInfra_Buildbucket) Descriptor ¶
func (*BuildInfra_Buildbucket) Descriptor() ([]byte, []int)
func (*BuildInfra_Buildbucket) GetCanary ¶
func (m *BuildInfra_Buildbucket) GetCanary() bool
func (*BuildInfra_Buildbucket) GetServiceConfigRevision ¶
func (m *BuildInfra_Buildbucket) GetServiceConfigRevision() string
func (*BuildInfra_Buildbucket) ProtoMessage ¶
func (*BuildInfra_Buildbucket) ProtoMessage()
func (*BuildInfra_Buildbucket) Reset ¶
func (m *BuildInfra_Buildbucket) Reset()
func (*BuildInfra_Buildbucket) String ¶
func (m *BuildInfra_Buildbucket) String() string
func (*BuildInfra_Buildbucket) XXX_DiscardUnknown ¶
func (m *BuildInfra_Buildbucket) XXX_DiscardUnknown()
func (*BuildInfra_Buildbucket) XXX_Marshal ¶
func (m *BuildInfra_Buildbucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BuildInfra_Buildbucket) XXX_Merge ¶
func (m *BuildInfra_Buildbucket) XXX_Merge(src proto.Message)
func (*BuildInfra_Buildbucket) XXX_Size ¶
func (m *BuildInfra_Buildbucket) XXX_Size() int
func (*BuildInfra_Buildbucket) XXX_Unmarshal ¶
func (m *BuildInfra_Buildbucket) XXX_Unmarshal(b []byte) error
type BuildInfra_LogDog ¶
type BuildInfra_LogDog struct { // LogDog hostname, e.g. "logs.chromium.org". Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` // LogDog project, e.g. "chromium". // Typically matches Build.builder.project. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // A slash-separated path prefix shared by all logs and artifacts of this // build. // No other build can have the same prefix. // Can be used to discover logs and/or load log contents. // // Can be used to construct URL of a page that displays stdout/stderr of all // steps of a build. In pseudo-JS: // q_stdout = `${project}/${prefix}/+/**/stdout`; // q_stderr = `${project}/${prefix}/+/**/stderr`; // url = `https://${host}/v/?s=${urlquote(q_stdout)}&s=${urlquote(q_stderr)}`; Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LogDog-specific information.
func (*BuildInfra_LogDog) Descriptor ¶
func (*BuildInfra_LogDog) Descriptor() ([]byte, []int)
func (*BuildInfra_LogDog) GetHostname ¶
func (m *BuildInfra_LogDog) GetHostname() string
func (*BuildInfra_LogDog) GetPrefix ¶
func (m *BuildInfra_LogDog) GetPrefix() string
func (*BuildInfra_LogDog) GetProject ¶
func (m *BuildInfra_LogDog) GetProject() string
func (*BuildInfra_LogDog) ProtoMessage ¶
func (*BuildInfra_LogDog) ProtoMessage()
func (*BuildInfra_LogDog) Reset ¶
func (m *BuildInfra_LogDog) Reset()
func (*BuildInfra_LogDog) String ¶
func (m *BuildInfra_LogDog) String() string
func (*BuildInfra_LogDog) XXX_DiscardUnknown ¶
func (m *BuildInfra_LogDog) XXX_DiscardUnknown()
func (*BuildInfra_LogDog) XXX_Marshal ¶
func (m *BuildInfra_LogDog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BuildInfra_LogDog) XXX_Merge ¶
func (m *BuildInfra_LogDog) XXX_Merge(src proto.Message)
func (*BuildInfra_LogDog) XXX_Size ¶
func (m *BuildInfra_LogDog) XXX_Size() int
func (*BuildInfra_LogDog) XXX_Unmarshal ¶
func (m *BuildInfra_LogDog) XXX_Unmarshal(b []byte) error
type BuildInfra_Swarming ¶
type BuildInfra_Swarming struct { // Swarming hostname, e.g. "chromium-swarm.appspot.com". // Populated at the build creation time. Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` // Swarming task id. // Not guaranteed to be populated at the build creation time. TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // Task service account email address. // This is the service account used for all authenticated requests by the // build. TaskServiceAccount string `protobuf:"bytes,3,opt,name=task_service_account,json=taskServiceAccount,proto3" json:"task_service_account,omitempty"` // Priority of the task. The lower the more important. // Valid values are [1..255]. Priority int32 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"` // Swarming dimensions for the task. TaskDimensions []*StringPair `protobuf:"bytes,5,rep,name=task_dimensions,json=taskDimensions,proto3" json:"task_dimensions,omitempty"` // Swarming dimensions of the bot used for the task. BotDimensions []*StringPair `protobuf:"bytes,6,rep,name=bot_dimensions,json=botDimensions,proto3" json:"bot_dimensions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Swarming-specific information.
func (*BuildInfra_Swarming) Descriptor ¶
func (*BuildInfra_Swarming) Descriptor() ([]byte, []int)
func (*BuildInfra_Swarming) GetBotDimensions ¶
func (m *BuildInfra_Swarming) GetBotDimensions() []*StringPair
func (*BuildInfra_Swarming) GetHostname ¶
func (m *BuildInfra_Swarming) GetHostname() string
func (*BuildInfra_Swarming) GetPriority ¶
func (m *BuildInfra_Swarming) GetPriority() int32
func (*BuildInfra_Swarming) GetTaskDimensions ¶
func (m *BuildInfra_Swarming) GetTaskDimensions() []*StringPair
func (*BuildInfra_Swarming) GetTaskId ¶
func (m *BuildInfra_Swarming) GetTaskId() string
func (*BuildInfra_Swarming) GetTaskServiceAccount ¶
func (m *BuildInfra_Swarming) GetTaskServiceAccount() string
func (*BuildInfra_Swarming) ProtoMessage ¶
func (*BuildInfra_Swarming) ProtoMessage()
func (*BuildInfra_Swarming) Reset ¶
func (m *BuildInfra_Swarming) Reset()
func (*BuildInfra_Swarming) String ¶
func (m *BuildInfra_Swarming) String() string
func (*BuildInfra_Swarming) XXX_DiscardUnknown ¶
func (m *BuildInfra_Swarming) XXX_DiscardUnknown()
func (*BuildInfra_Swarming) XXX_Marshal ¶
func (m *BuildInfra_Swarming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BuildInfra_Swarming) XXX_Merge ¶
func (m *BuildInfra_Swarming) XXX_Merge(src proto.Message)
func (*BuildInfra_Swarming) XXX_Size ¶
func (m *BuildInfra_Swarming) XXX_Size() int
func (*BuildInfra_Swarming) XXX_Unmarshal ¶
func (m *BuildInfra_Swarming) XXX_Unmarshal(b []byte) error
type BuildPredicate ¶
type BuildPredicate struct { // A build must be in this builder. Builder *BuilderID `protobuf:"bytes,1,opt,name=builder,proto3" json:"builder,omitempty"` // A build must have this status. Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=buildbucket.v2.Status" json:"status,omitempty"` // A build's Build.Input.gerrit_changes must include ALL of these changes. GerritChanges []*GerritChange `protobuf:"bytes,3,rep,name=gerrit_changes,json=gerritChanges,proto3" json:"gerrit_changes,omitempty"` // A build's Build.Output.gitiles_commit must match this commit. // One of the following subfield sets must specified: // - host, project, id // - host, project, ref // - host, project, ref, position OutputGitilesCommit *GitilesCommit `protobuf:"bytes,4,opt,name=output_gitiles_commit,json=outputGitilesCommit,proto3" json:"output_gitiles_commit,omitempty"` // A build must be created by this identity. CreatedBy string `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // A build must have ALL of these tags. // For "ANY of these tags" make separate RPCs. Tags []*StringPair `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` // A build must have been created within the specified range. // Both boundaries are optional. CreateTime *TimeRange `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // If false (default), a build must be non-experimental. // Otherwise it may be experimental or non-experimental. IncludeExperimental bool `protobuf:"varint,8,opt,name=include_experimental,json=includeExperimental,proto3" json:"include_experimental,omitempty"` // A build must be in this build range. // A pair of SearchBuildsRequest.predicate.build.end_build_id and // SearchBuildsRequest.page_size=1 can be used to find the previous build. Build *BuildRange `protobuf:"bytes,9,opt,name=build,proto3" json:"build,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A build predicate.
At least one of the following fields is required: builder, gerrit_changes and git_commits.. If a field value is empty, it is ignored, unless stated otherwise.
func (*BuildPredicate) Descriptor ¶
func (*BuildPredicate) Descriptor() ([]byte, []int)
func (*BuildPredicate) GetBuild ¶
func (m *BuildPredicate) GetBuild() *BuildRange
func (*BuildPredicate) GetBuilder ¶
func (m *BuildPredicate) GetBuilder() *BuilderID
func (*BuildPredicate) GetCreateTime ¶
func (m *BuildPredicate) GetCreateTime() *TimeRange
func (*BuildPredicate) GetCreatedBy ¶
func (m *BuildPredicate) GetCreatedBy() string
func (*BuildPredicate) GetGerritChanges ¶
func (m *BuildPredicate) GetGerritChanges() []*GerritChange
func (*BuildPredicate) GetIncludeExperimental ¶
func (m *BuildPredicate) GetIncludeExperimental() bool
func (*BuildPredicate) GetOutputGitilesCommit ¶
func (m *BuildPredicate) GetOutputGitilesCommit() *GitilesCommit
func (*BuildPredicate) GetStatus ¶
func (m *BuildPredicate) GetStatus() Status
func (*BuildPredicate) GetTags ¶
func (m *BuildPredicate) GetTags() []*StringPair
func (*BuildPredicate) ProtoMessage ¶
func (*BuildPredicate) ProtoMessage()
func (*BuildPredicate) Reset ¶
func (m *BuildPredicate) Reset()
func (*BuildPredicate) String ¶
func (m *BuildPredicate) String() string
func (*BuildPredicate) XXX_DiscardUnknown ¶
func (m *BuildPredicate) XXX_DiscardUnknown()
func (*BuildPredicate) XXX_Marshal ¶
func (m *BuildPredicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BuildPredicate) XXX_Merge ¶
func (m *BuildPredicate) XXX_Merge(src proto.Message)
func (*BuildPredicate) XXX_Size ¶
func (m *BuildPredicate) XXX_Size() int
func (*BuildPredicate) XXX_Unmarshal ¶
func (m *BuildPredicate) XXX_Unmarshal(b []byte) error
type BuildRange ¶
type BuildRange struct { // Inclusive lower boundary. Optional. StartBuildId int64 `protobuf:"varint,1,opt,name=start_build_id,json=startBuildId,proto3" json:"start_build_id,omitempty"` // Exclusive upper boundary. Optional. EndBuildId int64 `protobuf:"varint,2,opt,name=end_build_id,json=endBuildId,proto3" json:"end_build_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Half-open build range. The range is defined on the build order in the context. Usually the order is newest-to-oldest, so start_build_id is a newer build and end_build_id is an older build.
func (*BuildRange) Descriptor ¶
func (*BuildRange) Descriptor() ([]byte, []int)
func (*BuildRange) GetEndBuildId ¶
func (m *BuildRange) GetEndBuildId() int64
func (*BuildRange) GetStartBuildId ¶
func (m *BuildRange) GetStartBuildId() int64
func (*BuildRange) ProtoMessage ¶
func (*BuildRange) ProtoMessage()
func (*BuildRange) Reset ¶
func (m *BuildRange) Reset()
func (*BuildRange) String ¶
func (m *BuildRange) String() string
func (*BuildRange) XXX_DiscardUnknown ¶
func (m *BuildRange) XXX_DiscardUnknown()
func (*BuildRange) XXX_Marshal ¶
func (m *BuildRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BuildRange) XXX_Merge ¶
func (m *BuildRange) XXX_Merge(src proto.Message)
func (*BuildRange) XXX_Size ¶
func (m *BuildRange) XXX_Size() int
func (*BuildRange) XXX_Unmarshal ¶
func (m *BuildRange) XXX_Unmarshal(b []byte) error
type BuildSecrets ¶
type BuildSecrets struct { // Token to identify RPCs associated with the same build. BuildToken []byte `protobuf:"bytes,1,opt,name=build_token,json=buildToken,proto3" json:"build_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A collection of build-related secrets we might pass from Buildbucket to Kitchen.
func (*BuildSecrets) Descriptor ¶
func (*BuildSecrets) Descriptor() ([]byte, []int)
func (*BuildSecrets) GetBuildToken ¶
func (m *BuildSecrets) GetBuildToken() []byte
func (*BuildSecrets) ProtoMessage ¶
func (*BuildSecrets) ProtoMessage()
func (*BuildSecrets) Reset ¶
func (m *BuildSecrets) Reset()
func (*BuildSecrets) String ¶
func (m *BuildSecrets) String() string
func (*BuildSecrets) XXX_DiscardUnknown ¶
func (m *BuildSecrets) XXX_DiscardUnknown()
func (*BuildSecrets) XXX_Marshal ¶
func (m *BuildSecrets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BuildSecrets) XXX_Merge ¶
func (m *BuildSecrets) XXX_Merge(src proto.Message)
func (*BuildSecrets) XXX_Size ¶
func (m *BuildSecrets) XXX_Size() int
func (*BuildSecrets) XXX_Unmarshal ¶
func (m *BuildSecrets) XXX_Unmarshal(b []byte) error
type BuildSet ¶
type BuildSet interface { // BuildSetString returns a tag value in buildset format. BuildSetString() string }
BuildSet is a parsed buildset tag value. It is implemented by *GerritChange, *GitilesCommit.
func ParseBuildSet ¶
ParseBuildSet tries to parse buildset as one of the known formats. If buildSet was not recognized, returns nil.
type Build_CancelReason ¶
type Build_CancelReason struct {
CancelReason *CancelReason `protobuf:"bytes,14,opt,name=cancel_reason,json=cancelReason,proto3,oneof"`
}
type Build_InfraFailureReason ¶
type Build_InfraFailureReason struct {
InfraFailureReason *InfraFailureReason `protobuf:"bytes,13,opt,name=infra_failure_reason,json=infraFailureReason,proto3,oneof"`
}
type Build_Input ¶
type Build_Input struct { // Arbitrary JSON object. Available at build run time. // // RPC: By default, this field is excluded from responses. // // V1 equivalent: corresponds to "properties" key in "parameters_json". Properties *_struct.Struct `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"` // The Gitiles commit to run against. // Usually present in CI builds, set by LUCI Scheduler. // If not present, the build may checkout "refs/heads/master". // NOT a blamelist. // // V1 equivalent: supersedes "revision" property and "buildset" // tag that starts with "commit/gitiles/". GitilesCommit *GitilesCommit `protobuf:"bytes,2,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"` // Gerrit patchsets to run against. // Usually present in tryjobs, set by CQ, Gerrit, git-cl-try. // Applied on top of gitiles_commit if specified, otherwise tip of the tree. // // V1 equivalent: supersedes patch_* properties and "buildset" // tag that starts with "patch/gerrit/". GerritChanges []*GerritChange `protobuf:"bytes,3,rep,name=gerrit_changes,json=gerritChanges,proto3" json:"gerrit_changes,omitempty"` // If true, the build does not affect prod. In recipe land, runtime.is_experimental will // return true and recipes should not make prod-visible side effects. // By default, experimental builds are not surfaced in RPCs, PubSub // notifications (unless it is callback), and reported in metrics / BigQuery tables // under a different name. // See also include_experimental fields to in request messages. Experimental bool `protobuf:"varint,5,opt,name=experimental,proto3" json:"experimental,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Defines what to build/test.
func (*Build_Input) Descriptor ¶
func (*Build_Input) Descriptor() ([]byte, []int)
func (*Build_Input) GetExperimental ¶
func (m *Build_Input) GetExperimental() bool
func (*Build_Input) GetGerritChanges ¶
func (m *Build_Input) GetGerritChanges() []*GerritChange
func (*Build_Input) GetGitilesCommit ¶
func (m *Build_Input) GetGitilesCommit() *GitilesCommit
func (*Build_Input) GetProperties ¶
func (m *Build_Input) GetProperties() *_struct.Struct
func (*Build_Input) ProtoMessage ¶
func (*Build_Input) ProtoMessage()
func (*Build_Input) Reset ¶
func (m *Build_Input) Reset()
func (*Build_Input) String ¶
func (m *Build_Input) String() string
func (*Build_Input) XXX_DiscardUnknown ¶
func (m *Build_Input) XXX_DiscardUnknown()
func (*Build_Input) XXX_Marshal ¶
func (m *Build_Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Build_Input) XXX_Merge ¶
func (m *Build_Input) XXX_Merge(src proto.Message)
func (*Build_Input) XXX_Size ¶
func (m *Build_Input) XXX_Size() int
func (*Build_Input) XXX_Unmarshal ¶
func (m *Build_Input) XXX_Unmarshal(b []byte) error
type Build_Output ¶
type Build_Output struct { // Arbitrary JSON object produced by the build. // // V1 equivalent: corresponds to "properties" key in // "result_details_json". // In V1 output properties are not populated until build ends. Properties *_struct.Struct `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"` // Human-oriented summary of the build provided by the build itself, // in Markdown format (https://spec.commonmark.org/0.28/). // // BigQuery: excluded from rows. SummaryMarkdown string `protobuf:"bytes,2,opt,name=summary_markdown,json=summaryMarkdown,proto3" json:"summary_markdown,omitempty"` // Build checked out and executed on this commit. // // Should correspond to Build.Input.gitiles_commit. // May be present even if Build.Input.gitiles_commit is not set, for example // in cron builders. // // V1 equivalent: this supersedes all got_revision output property. GitilesCommit *GitilesCommit `protobuf:"bytes,3,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Output of the build script / recipe.
func (*Build_Output) Descriptor ¶
func (*Build_Output) Descriptor() ([]byte, []int)
func (*Build_Output) GetGitilesCommit ¶
func (m *Build_Output) GetGitilesCommit() *GitilesCommit
func (*Build_Output) GetProperties ¶
func (m *Build_Output) GetProperties() *_struct.Struct
func (*Build_Output) GetSummaryMarkdown ¶
func (m *Build_Output) GetSummaryMarkdown() string
func (*Build_Output) ProtoMessage ¶
func (*Build_Output) ProtoMessage()
func (*Build_Output) Reset ¶
func (m *Build_Output) Reset()
func (*Build_Output) String ¶
func (m *Build_Output) String() string
func (*Build_Output) XXX_DiscardUnknown ¶
func (m *Build_Output) XXX_DiscardUnknown()
func (*Build_Output) XXX_Marshal ¶
func (m *Build_Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Build_Output) XXX_Merge ¶
func (m *Build_Output) XXX_Merge(src proto.Message)
func (*Build_Output) XXX_Size ¶
func (m *Build_Output) XXX_Size() int
func (*Build_Output) XXX_Unmarshal ¶
func (m *Build_Output) XXX_Unmarshal(b []byte) error
type BuilderID ¶
type BuilderID struct { // Project ID, e.g. "chromium". Unique within a LUCI deployment. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Bucket name, e.g. "try". Unique within the project. // Together with project, defines an ACL. Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` // Builder name, e.g. "linux-rel". Unique within the bucket. Builder string `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Identifies a builder. Canonical string representation: “{project}/{bucket}/{builder}”.
func (*BuilderID) Descriptor ¶
func (*BuilderID) GetBuilder ¶
func (*BuilderID) GetProject ¶
func (*BuilderID) ProtoMessage ¶
func (*BuilderID) ProtoMessage()
func (*BuilderID) XXX_DiscardUnknown ¶
func (m *BuilderID) XXX_DiscardUnknown()
func (*BuilderID) XXX_Marshal ¶
func (*BuilderID) XXX_Unmarshal ¶
type BuildsClient ¶
type BuildsClient interface { // Gets a build. // // By default the returned build does not include all fields. // See GetBuildRequest.fields. // // Buildbot: if the specified build is a buildbot build, converts it to Build // message with the following rules: // * bucket names are full, e.g. "master.chromium". Note that LUCI buckets // in v2 are shortened, e.g. "ci". // * if a v2 Build field does not make sense in V1, it is unset/empty. // * step support is not implemented for Buildbot builds. // Note that it does not support getting a buildbot build by build number. GetBuild(ctx context.Context, in *GetBuildRequest, opts ...grpc.CallOption) (*Build, error) // Searches for builds. // // Buildbot: can return Buildbot builds, see GetBuild for conversion rules. // For example, response may include a mix of LUCI and Buildbot builds if the // predicate is a CL. // Cannot search in a buildbot bucket or buildbot builder, e.g. // { // "predicate": { // "builder": { // "project": "chromium", // "bucket": "master.chromium", // "builder": "linux-rel" // } // } // } // will look for builds in "master.chromium" LUCI bucket which probably does // not exist. SearchBuilds(ctx context.Context, in *SearchBuildsRequest, opts ...grpc.CallOption) (*SearchBuildsResponse, error) // Updates a build. // Returns updated build. Response includes only the fields // included by default in GetBuild and updated fields. // // RPC metadata must include "X-Build-Token" key with a token // generated by the server when scheduling the build. UpdateBuild(ctx context.Context, in *UpdateBuildRequest, opts ...grpc.CallOption) (*Build, error) // Schedules a new build. // The requester must have at least SCHEDULER role in the destination bucket. ScheduleBuild(ctx context.Context, in *ScheduleBuildRequest, opts ...grpc.CallOption) (*Build, error) // Cancels a build. // The requester must have at least SCHEDULER role in the destination bucket. CancelBuild(ctx context.Context, in *CancelBuildRequest, opts ...grpc.CallOption) (*Build, error) // Executes multiple requests in a batch. // The response code is always OK. Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error) }
BuildsClient is the client API for Builds service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBuildsClient ¶
func NewBuildsClient(cc *grpc.ClientConn) BuildsClient
func NewBuildsPRPCClient ¶
func NewBuildsPRPCClient(client *prpc.Client) BuildsClient
type BuildsServer ¶
type BuildsServer interface { // Gets a build. // // By default the returned build does not include all fields. // See GetBuildRequest.fields. // // Buildbot: if the specified build is a buildbot build, converts it to Build // message with the following rules: // * bucket names are full, e.g. "master.chromium". Note that LUCI buckets // in v2 are shortened, e.g. "ci". // * if a v2 Build field does not make sense in V1, it is unset/empty. // * step support is not implemented for Buildbot builds. // Note that it does not support getting a buildbot build by build number. GetBuild(context.Context, *GetBuildRequest) (*Build, error) // Searches for builds. // // Buildbot: can return Buildbot builds, see GetBuild for conversion rules. // For example, response may include a mix of LUCI and Buildbot builds if the // predicate is a CL. // Cannot search in a buildbot bucket or buildbot builder, e.g. // { // "predicate": { // "builder": { // "project": "chromium", // "bucket": "master.chromium", // "builder": "linux-rel" // } // } // } // will look for builds in "master.chromium" LUCI bucket which probably does // not exist. SearchBuilds(context.Context, *SearchBuildsRequest) (*SearchBuildsResponse, error) // Updates a build. // Returns updated build. Response includes only the fields // included by default in GetBuild and updated fields. // // RPC metadata must include "X-Build-Token" key with a token // generated by the server when scheduling the build. UpdateBuild(context.Context, *UpdateBuildRequest) (*Build, error) // Schedules a new build. // The requester must have at least SCHEDULER role in the destination bucket. ScheduleBuild(context.Context, *ScheduleBuildRequest) (*Build, error) // Cancels a build. // The requester must have at least SCHEDULER role in the destination bucket. CancelBuild(context.Context, *CancelBuildRequest) (*Build, error) // Executes multiple requests in a batch. // The response code is always OK. Batch(context.Context, *BatchRequest) (*BatchResponse, error) }
BuildsServer is the server API for Builds service.
type CancelBuildRequest ¶
type CancelBuildRequest struct { // ID of the build to cancel. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Required. Why the build is being cancelled. Reason *CancelReason `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // Fields to include in the response. See also GetBuildRequest.fields. Fields *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A request message for CancelBuild rpc.
func (*CancelBuildRequest) Descriptor ¶
func (*CancelBuildRequest) Descriptor() ([]byte, []int)
func (*CancelBuildRequest) GetFields ¶
func (m *CancelBuildRequest) GetFields() *field_mask.FieldMask
func (*CancelBuildRequest) GetId ¶
func (m *CancelBuildRequest) GetId() int64
func (*CancelBuildRequest) GetReason ¶
func (m *CancelBuildRequest) GetReason() *CancelReason
func (*CancelBuildRequest) ProtoMessage ¶
func (*CancelBuildRequest) ProtoMessage()
func (*CancelBuildRequest) Reset ¶
func (m *CancelBuildRequest) Reset()
func (*CancelBuildRequest) String ¶
func (m *CancelBuildRequest) String() string
func (*CancelBuildRequest) XXX_DiscardUnknown ¶
func (m *CancelBuildRequest) XXX_DiscardUnknown()
func (*CancelBuildRequest) XXX_Marshal ¶
func (m *CancelBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CancelBuildRequest) XXX_Merge ¶
func (m *CancelBuildRequest) XXX_Merge(src proto.Message)
func (*CancelBuildRequest) XXX_Size ¶
func (m *CancelBuildRequest) XXX_Size() int
func (*CancelBuildRequest) XXX_Unmarshal ¶
func (m *CancelBuildRequest) XXX_Unmarshal(b []byte) error
type CancelReason ¶
type CancelReason struct { // Human-oriented reasoning. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // Verified identity who canceled this build. CanceledBy string `protobuf:"bytes,2,opt,name=canceled_by,json=canceledBy,proto3" json:"canceled_by,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Explains why status is CANCELED.
func (*CancelReason) Descriptor ¶
func (*CancelReason) Descriptor() ([]byte, []int)
func (*CancelReason) GetCanceledBy ¶
func (m *CancelReason) GetCanceledBy() string
func (*CancelReason) GetMessage ¶
func (m *CancelReason) GetMessage() string
func (*CancelReason) ProtoMessage ¶
func (*CancelReason) ProtoMessage()
func (*CancelReason) Reset ¶
func (m *CancelReason) Reset()
func (*CancelReason) String ¶
func (m *CancelReason) String() string
func (*CancelReason) XXX_DiscardUnknown ¶
func (m *CancelReason) XXX_DiscardUnknown()
func (*CancelReason) XXX_Marshal ¶
func (m *CancelReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CancelReason) XXX_Merge ¶
func (m *CancelReason) XXX_Merge(src proto.Message)
func (*CancelReason) XXX_Size ¶
func (m *CancelReason) XXX_Size() int
func (*CancelReason) XXX_Unmarshal ¶
func (m *CancelReason) XXX_Unmarshal(b []byte) error
type GerritChange ¶
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:"-"` }
A Gerrit patchset.
func (*GerritChange) BuildSetString ¶
func (c *GerritChange) BuildSetString() string
e.g. "patch/gerrit/chromium-review.googlesource.com/677784/5".
func (*GerritChange) Descriptor ¶
func (*GerritChange) Descriptor() ([]byte, []int)
func (*GerritChange) GetChange ¶
func (m *GerritChange) GetChange() int64
func (*GerritChange) GetHost ¶
func (m *GerritChange) GetHost() string
func (*GerritChange) GetPatchset ¶
func (m *GerritChange) GetPatchset() int64
func (*GerritChange) GetProject ¶
func (m *GerritChange) GetProject() string
func (*GerritChange) ProtoMessage ¶
func (*GerritChange) ProtoMessage()
func (*GerritChange) Reset ¶
func (m *GerritChange) Reset()
func (*GerritChange) String ¶
func (m *GerritChange) String() string
func (*GerritChange) XXX_DiscardUnknown ¶
func (m *GerritChange) XXX_DiscardUnknown()
func (*GerritChange) XXX_Marshal ¶
func (m *GerritChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GerritChange) XXX_Merge ¶
func (m *GerritChange) XXX_Merge(src proto.Message)
func (*GerritChange) XXX_Size ¶
func (m *GerritChange) XXX_Size() int
func (*GerritChange) XXX_Unmarshal ¶
func (m *GerritChange) XXX_Unmarshal(b []byte) error
type GetBuildRequest ¶
type GetBuildRequest struct { // Build id. // Mutually exclusive with builder and number. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Builder of the build. // Requires number. Mutually exclusive with id. Builder *BuilderID `protobuf:"bytes,2,opt,name=builder,proto3" json:"builder,omitempty"` // Build number. // Requires builder. Mutually exclusive with id. BuildNumber int32 `protobuf:"varint,3,opt,name=build_number,json=buildNumber,proto3" json:"build_number,omitempty"` // Fields to include in the response. // If not set, the default mask is used, see Build message comments for the // list of fields returned by default. // // Supports advanced semantics, see // https://chromium.googlesource.com/infra/luci/luci-py/+/f9ae69a37c4bdd0e08a8b0f7e123f6e403e774eb/appengine/components/components/protoutil/field_masks.py#7 // In particular, if the client needs only some output properties, they // can be requested with paths "output.properties.fields.foo". Fields *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A request message for GetBuild rpc.
func (*GetBuildRequest) Descriptor ¶
func (*GetBuildRequest) Descriptor() ([]byte, []int)
func (*GetBuildRequest) GetBuildNumber ¶
func (m *GetBuildRequest) GetBuildNumber() int32
func (*GetBuildRequest) GetBuilder ¶
func (m *GetBuildRequest) GetBuilder() *BuilderID
func (*GetBuildRequest) GetFields ¶
func (m *GetBuildRequest) GetFields() *field_mask.FieldMask
func (*GetBuildRequest) GetId ¶
func (m *GetBuildRequest) GetId() int64
func (*GetBuildRequest) ProtoMessage ¶
func (*GetBuildRequest) ProtoMessage()
func (*GetBuildRequest) Reset ¶
func (m *GetBuildRequest) Reset()
func (*GetBuildRequest) String ¶
func (m *GetBuildRequest) String() string
func (*GetBuildRequest) XXX_DiscardUnknown ¶
func (m *GetBuildRequest) XXX_DiscardUnknown()
func (*GetBuildRequest) XXX_Marshal ¶
func (m *GetBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBuildRequest) XXX_Merge ¶
func (m *GetBuildRequest) XXX_Merge(src proto.Message)
func (*GetBuildRequest) XXX_Size ¶
func (m *GetBuildRequest) XXX_Size() int
func (*GetBuildRequest) XXX_Unmarshal ¶
func (m *GetBuildRequest) XXX_Unmarshal(b []byte) error
type GitilesCommit ¶
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"` // Defines a total order of commits on the ref. Requires ref field. // Typically 1-based, monotonically increasing, contiguous integer // defined by a Gerrit plugin, goto.google.com/git-numberer. // TODO(tandrii): make it a public doc. Position uint32 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A landed Git commit hosted on Gitiles.
func (*GitilesCommit) BuildSetString ¶
func (c *GitilesCommit) BuildSetString() string
BuildSetString encodes the commit in buildset tag format, e.g. "commit/gitiles/chromium.googlesource.com/infra/luci/luci-go/+/b7a757f457487cd5cfe2dae83f65c5bc10e288b7"
func (*GitilesCommit) Descriptor ¶
func (*GitilesCommit) Descriptor() ([]byte, []int)
func (*GitilesCommit) GetHost ¶
func (m *GitilesCommit) GetHost() string
func (*GitilesCommit) GetId ¶
func (m *GitilesCommit) GetId() string
func (*GitilesCommit) GetPosition ¶
func (m *GitilesCommit) GetPosition() uint32
func (*GitilesCommit) GetProject ¶
func (m *GitilesCommit) GetProject() string
func (*GitilesCommit) GetRef ¶
func (m *GitilesCommit) GetRef() string
func (*GitilesCommit) ProtoMessage ¶
func (*GitilesCommit) ProtoMessage()
func (*GitilesCommit) RepoURL ¶
func (c *GitilesCommit) RepoURL() string
RepoURL returns the URL for the gitiles repo. e.g. "https://chromium.googlesource.com/chromium/src"
func (*GitilesCommit) Reset ¶
func (m *GitilesCommit) Reset()
func (*GitilesCommit) String ¶
func (m *GitilesCommit) String() string
func (*GitilesCommit) URL ¶
func (c *GitilesCommit) URL() string
URL returns the URL for the gitiles commit. e.g. "https://chromium.googlesource.com/chromium/src/+/b7a757f457487cd5cfe2dae83f65c5bc10e288b7"
func (*GitilesCommit) XXX_DiscardUnknown ¶
func (m *GitilesCommit) XXX_DiscardUnknown()
func (*GitilesCommit) XXX_Marshal ¶
func (m *GitilesCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GitilesCommit) XXX_Merge ¶
func (m *GitilesCommit) XXX_Merge(src proto.Message)
func (*GitilesCommit) XXX_Size ¶
func (m *GitilesCommit) XXX_Size() int
func (*GitilesCommit) XXX_Unmarshal ¶
func (m *GitilesCommit) XXX_Unmarshal(b []byte) error
type InfraFailureReason ¶
type InfraFailureReason struct { // Human-oriented explanation of the infrastructure failure. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // Indicates that the failure was due to a resource exhaustion / quota denial. ResourceExhaustion bool `protobuf:"varint,2,opt,name=resource_exhaustion,json=resourceExhaustion,proto3" json:"resource_exhaustion,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Explains why status is INFRA_FAILURE.
func (*InfraFailureReason) Descriptor ¶
func (*InfraFailureReason) Descriptor() ([]byte, []int)
func (*InfraFailureReason) GetMessage ¶
func (m *InfraFailureReason) GetMessage() string
func (*InfraFailureReason) GetResourceExhaustion ¶
func (m *InfraFailureReason) GetResourceExhaustion() bool
func (*InfraFailureReason) ProtoMessage ¶
func (*InfraFailureReason) ProtoMessage()
func (*InfraFailureReason) Reset ¶
func (m *InfraFailureReason) Reset()
func (*InfraFailureReason) String ¶
func (m *InfraFailureReason) String() string
func (*InfraFailureReason) XXX_DiscardUnknown ¶
func (m *InfraFailureReason) XXX_DiscardUnknown()
func (*InfraFailureReason) XXX_Marshal ¶
func (m *InfraFailureReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfraFailureReason) XXX_Merge ¶
func (m *InfraFailureReason) XXX_Merge(src proto.Message)
func (*InfraFailureReason) XXX_Size ¶
func (m *InfraFailureReason) XXX_Size() int
func (*InfraFailureReason) XXX_Unmarshal ¶
func (m *InfraFailureReason) XXX_Unmarshal(b []byte) error
type MockBuildsClient ¶
type MockBuildsClient struct {
// contains filtered or unexported fields
}
MockBuildsClient is a mock of BuildsClient interface
func NewMockBuildsClient ¶
func NewMockBuildsClient(ctrl *gomock.Controller) *MockBuildsClient
NewMockBuildsClient creates a new mock instance
func (*MockBuildsClient) Batch ¶
func (m *MockBuildsClient) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error)
Batch mocks base method
func (*MockBuildsClient) CancelBuild ¶
func (m *MockBuildsClient) CancelBuild(ctx context.Context, in *CancelBuildRequest, opts ...grpc.CallOption) (*Build, error)
CancelBuild mocks base method
func (*MockBuildsClient) EXPECT ¶
func (m *MockBuildsClient) EXPECT() *MockBuildsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBuildsClient) GetBuild ¶
func (m *MockBuildsClient) GetBuild(ctx context.Context, in *GetBuildRequest, opts ...grpc.CallOption) (*Build, error)
GetBuild mocks base method
func (*MockBuildsClient) ScheduleBuild ¶
func (m *MockBuildsClient) ScheduleBuild(ctx context.Context, in *ScheduleBuildRequest, opts ...grpc.CallOption) (*Build, error)
ScheduleBuild mocks base method
func (*MockBuildsClient) SearchBuilds ¶
func (m *MockBuildsClient) SearchBuilds(ctx context.Context, in *SearchBuildsRequest, opts ...grpc.CallOption) (*SearchBuildsResponse, error)
SearchBuilds mocks base method
func (*MockBuildsClient) UpdateBuild ¶
func (m *MockBuildsClient) UpdateBuild(ctx context.Context, in *UpdateBuildRequest, opts ...grpc.CallOption) (*Build, error)
UpdateBuild mocks base method
type MockBuildsClientMockRecorder ¶
type MockBuildsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockBuildsClientMockRecorder is the mock recorder for MockBuildsClient
func (*MockBuildsClientMockRecorder) Batch ¶
func (mr *MockBuildsClientMockRecorder) Batch(ctx, in interface{}, opts ...interface{}) *gomock.Call
Batch indicates an expected call of Batch
func (*MockBuildsClientMockRecorder) CancelBuild ¶
func (mr *MockBuildsClientMockRecorder) CancelBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call
CancelBuild indicates an expected call of CancelBuild
func (*MockBuildsClientMockRecorder) GetBuild ¶
func (mr *MockBuildsClientMockRecorder) GetBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetBuild indicates an expected call of GetBuild
func (*MockBuildsClientMockRecorder) ScheduleBuild ¶
func (mr *MockBuildsClientMockRecorder) ScheduleBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call
ScheduleBuild indicates an expected call of ScheduleBuild
func (*MockBuildsClientMockRecorder) SearchBuilds ¶
func (mr *MockBuildsClientMockRecorder) SearchBuilds(ctx, in interface{}, opts ...interface{}) *gomock.Call
SearchBuilds indicates an expected call of SearchBuilds
func (*MockBuildsClientMockRecorder) UpdateBuild ¶
func (mr *MockBuildsClientMockRecorder) UpdateBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call
UpdateBuild indicates an expected call of UpdateBuild
type MockBuildsServer ¶
type MockBuildsServer struct {
// contains filtered or unexported fields
}
MockBuildsServer is a mock of BuildsServer interface
func NewMockBuildsServer ¶
func NewMockBuildsServer(ctrl *gomock.Controller) *MockBuildsServer
NewMockBuildsServer creates a new mock instance
func (*MockBuildsServer) Batch ¶
func (m *MockBuildsServer) Batch(arg0 context.Context, arg1 *BatchRequest) (*BatchResponse, error)
Batch mocks base method
func (*MockBuildsServer) CancelBuild ¶
func (m *MockBuildsServer) CancelBuild(arg0 context.Context, arg1 *CancelBuildRequest) (*Build, error)
CancelBuild mocks base method
func (*MockBuildsServer) EXPECT ¶
func (m *MockBuildsServer) EXPECT() *MockBuildsServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBuildsServer) GetBuild ¶
func (m *MockBuildsServer) GetBuild(arg0 context.Context, arg1 *GetBuildRequest) (*Build, error)
GetBuild mocks base method
func (*MockBuildsServer) ScheduleBuild ¶
func (m *MockBuildsServer) ScheduleBuild(arg0 context.Context, arg1 *ScheduleBuildRequest) (*Build, error)
ScheduleBuild mocks base method
func (*MockBuildsServer) SearchBuilds ¶
func (m *MockBuildsServer) SearchBuilds(arg0 context.Context, arg1 *SearchBuildsRequest) (*SearchBuildsResponse, error)
SearchBuilds mocks base method
func (*MockBuildsServer) UpdateBuild ¶
func (m *MockBuildsServer) UpdateBuild(arg0 context.Context, arg1 *UpdateBuildRequest) (*Build, error)
UpdateBuild mocks base method
type MockBuildsServerMockRecorder ¶
type MockBuildsServerMockRecorder struct {
// contains filtered or unexported fields
}
MockBuildsServerMockRecorder is the mock recorder for MockBuildsServer
func (*MockBuildsServerMockRecorder) Batch ¶
func (mr *MockBuildsServerMockRecorder) Batch(arg0, arg1 interface{}) *gomock.Call
Batch indicates an expected call of Batch
func (*MockBuildsServerMockRecorder) CancelBuild ¶
func (mr *MockBuildsServerMockRecorder) CancelBuild(arg0, arg1 interface{}) *gomock.Call
CancelBuild indicates an expected call of CancelBuild
func (*MockBuildsServerMockRecorder) GetBuild ¶
func (mr *MockBuildsServerMockRecorder) GetBuild(arg0, arg1 interface{}) *gomock.Call
GetBuild indicates an expected call of GetBuild
func (*MockBuildsServerMockRecorder) ScheduleBuild ¶
func (mr *MockBuildsServerMockRecorder) ScheduleBuild(arg0, arg1 interface{}) *gomock.Call
ScheduleBuild indicates an expected call of ScheduleBuild
func (*MockBuildsServerMockRecorder) SearchBuilds ¶
func (mr *MockBuildsServerMockRecorder) SearchBuilds(arg0, arg1 interface{}) *gomock.Call
SearchBuilds indicates an expected call of SearchBuilds
func (*MockBuildsServerMockRecorder) UpdateBuild ¶
func (mr *MockBuildsServerMockRecorder) UpdateBuild(arg0, arg1 interface{}) *gomock.Call
UpdateBuild indicates an expected call of UpdateBuild
type MockisBatchRequest_Request_Request ¶
type MockisBatchRequest_Request_Request struct {
// contains filtered or unexported fields
}
MockisBatchRequest_Request_Request is a mock of isBatchRequest_Request_Request interface
func NewMockisBatchRequest_Request_Request ¶
func NewMockisBatchRequest_Request_Request(ctrl *gomock.Controller) *MockisBatchRequest_Request_Request
NewMockisBatchRequest_Request_Request creates a new mock instance
func (*MockisBatchRequest_Request_Request) EXPECT ¶
func (m *MockisBatchRequest_Request_Request) EXPECT() *MockisBatchRequest_Request_RequestMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockisBatchRequest_Request_RequestMockRecorder ¶
type MockisBatchRequest_Request_RequestMockRecorder struct {
// contains filtered or unexported fields
}
MockisBatchRequest_Request_RequestMockRecorder is the mock recorder for MockisBatchRequest_Request_Request
type MockisBatchResponse_Response_Response ¶
type MockisBatchResponse_Response_Response struct {
// contains filtered or unexported fields
}
MockisBatchResponse_Response_Response is a mock of isBatchResponse_Response_Response interface
func NewMockisBatchResponse_Response_Response ¶
func NewMockisBatchResponse_Response_Response(ctrl *gomock.Controller) *MockisBatchResponse_Response_Response
NewMockisBatchResponse_Response_Response creates a new mock instance
func (*MockisBatchResponse_Response_Response) EXPECT ¶
func (m *MockisBatchResponse_Response_Response) EXPECT() *MockisBatchResponse_Response_ResponseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockisBatchResponse_Response_ResponseMockRecorder ¶
type MockisBatchResponse_Response_ResponseMockRecorder struct {
// contains filtered or unexported fields
}
MockisBatchResponse_Response_ResponseMockRecorder is the mock recorder for MockisBatchResponse_Response_Response
type Notification ¶
type Notification struct { // When this notification was created. Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Cloud Project ID of the Buildbucket instance that sent this notification, // e.g. "cr-buildbucket". // Useful if a service listens to both prod and dev instances of buildbucket. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // Buildbucket build id. // Use GetBuild rpc to load the contents. BuildId int64 `protobuf:"varint,3,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` // User-defined opaque blob specified in NotificationConfig.user_data. UserData []byte `protobuf:"bytes,4,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A notification about a build.
func (*Notification) Descriptor ¶
func (*Notification) Descriptor() ([]byte, []int)
func (*Notification) GetAppId ¶
func (m *Notification) GetAppId() string
func (*Notification) GetBuildId ¶
func (m *Notification) GetBuildId() int64
func (*Notification) GetTimestamp ¶
func (m *Notification) GetTimestamp() *timestamp.Timestamp
func (*Notification) GetUserData ¶
func (m *Notification) GetUserData() []byte
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) Reset ¶
func (m *Notification) Reset()
func (*Notification) String ¶
func (m *Notification) String() string
func (*Notification) XXX_DiscardUnknown ¶
func (m *Notification) XXX_DiscardUnknown()
func (*Notification) XXX_Marshal ¶
func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Notification) XXX_Merge ¶
func (m *Notification) XXX_Merge(src proto.Message)
func (*Notification) XXX_Size ¶
func (m *Notification) XXX_Size() int
func (*Notification) XXX_Unmarshal ¶
func (m *Notification) XXX_Unmarshal(b []byte) error
type NotificationConfig ¶
type NotificationConfig struct { // Target Cloud PubSub topic. // Usually has format "projects/{cloud project}/topics/{topic name}". // // The PubSub message data is a Notification message in binary format. // // <buildbucket-app-id>@appspot.gserviceaccount.com must have // "pubsub.topics.publish" permissions on the topic, where // <buildbucket-app-id> is usually "cr-buildbucket." PubsubTopic string `protobuf:"bytes,1,opt,name=pubsub_topic,json=pubsubTopic,proto3" json:"pubsub_topic,omitempty"` // Will be available in Notification.user_data. // Max length: 4096. UserData []byte `protobuf:"bytes,2,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Configuration of notifications.
func (*NotificationConfig) Descriptor ¶
func (*NotificationConfig) Descriptor() ([]byte, []int)
func (*NotificationConfig) GetPubsubTopic ¶
func (m *NotificationConfig) GetPubsubTopic() string
func (*NotificationConfig) GetUserData ¶
func (m *NotificationConfig) GetUserData() []byte
func (*NotificationConfig) ProtoMessage ¶
func (*NotificationConfig) ProtoMessage()
func (*NotificationConfig) Reset ¶
func (m *NotificationConfig) Reset()
func (*NotificationConfig) String ¶
func (m *NotificationConfig) String() string
func (*NotificationConfig) XXX_DiscardUnknown ¶
func (m *NotificationConfig) XXX_DiscardUnknown()
func (*NotificationConfig) XXX_Marshal ¶
func (m *NotificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotificationConfig) XXX_Merge ¶
func (m *NotificationConfig) XXX_Merge(src proto.Message)
func (*NotificationConfig) XXX_Size ¶
func (m *NotificationConfig) XXX_Size() int
func (*NotificationConfig) XXX_Unmarshal ¶
func (m *NotificationConfig) XXX_Unmarshal(b []byte) error
type ScheduleBuildRequest ¶
type ScheduleBuildRequest struct { // Required. A unique string id used for detecting duplicate requests. // Should be unique at least per requesting identity. // Used to dedup build scheduling requests with same id within 1 min. // If a build was successfully scheduled with the same request id in the past // minute, the existing build will be returned. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // ID of a build to retry as is or altered. // When specified, fields below default to the values in the template build. TemplateBuildId int64 `protobuf:"varint,2,opt,name=template_build_id,json=templateBuildId,proto3" json:"template_build_id,omitempty"` // Value for Build.builder. See its comments. // Required, unless template_build_id is specified. Builder *BuilderID `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"` // If specified, overrides server-defined value of // Build.infra.buildbucket.canary. // Otherwise the value is computed based on the builder config. // See Swarming.task_template_canary_percentage in // ./config/project_config.proto. Canary Trinary `protobuf:"varint,4,opt,name=canary,proto3,enum=buildbucket.v2.Trinary" json:"canary,omitempty"` // If specified, overrides server-defined value of Build.input.experimental. // Otherwise the value is computed based on the builder config. // See Builder.experimental in ./config/project_config.proto. Experimental Trinary `protobuf:"varint,5,opt,name=experimental,proto3,enum=buildbucket.v2.Trinary" json:"experimental,omitempty"` // Properties to include in Build.input.properties. // // Input properties of the created build are result of merging server-defined // properties and properties in this field. // Each property in this field defines a new or replaces an existing property // on the server. // If the server config does not allow overriding/adding the property, the // request will fail with InvalidArgument error code. // A server-defined property cannot be removed, but its value can be // replaced with null. // // Reserved property paths: // * ["buildbucket"] // * ["buildername"] // * ["blamelist""] // * ["$recipe_engine/runtime", "is_luci"] // * ["$recipe_engine/runtime", "is_experimental"] // // V1 equivalent: corresponds to "properties" key in "parameters_json". Properties *_struct.Struct `protobuf:"bytes,6,opt,name=properties,proto3" json:"properties,omitempty"` // Value for Build.input.gitiles_commit. // // V1 equivalent: supersedes "revision" property and "buildset" // tag that starts with "commit/gitiles/". GitilesCommit *GitilesCommit `protobuf:"bytes,7,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"` // Value for Build.input.gerrit_changes. // Usually present in tryjobs, set by CQ, Gerrit, git-cl-try. // Applied on top of gitiles_commit if specified, otherwise tip of the tree. // // V1 equivalent: supersedes patch_* properties and "buildset" // tag that starts with "patch/gerrit/". GerritChanges []*GerritChange `protobuf:"bytes,8,rep,name=gerrit_changes,json=gerritChanges,proto3" json:"gerrit_changes,omitempty"` // Tags to include in Build.tags of the created build, see Build.tags // comments. // Note: tags of the created build may include other tags defined on the // server. Tags []*StringPair `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"` // Overrides default dimensions defined by builder config or template build. // // A set of entries with the same key defines a new or replaces an existing // dimension with the same key. // If the config does not allow overriding/adding the dimension, the request // will fail with InvalidArgument error code. // // After merging, dimensions with empty value will be excluded. Dimensions []*StringPair `protobuf:"bytes,10,rep,name=dimensions,proto3" json:"dimensions,omitempty"` // If not zero, overrides swarming task priority. // See also Build.infra.swarming.priority. Priority int32 `protobuf:"varint,11,opt,name=priority,proto3" json:"priority,omitempty"` // A per-build notification configuration. Notify *NotificationConfig `protobuf:"bytes,12,opt,name=notify,proto3" json:"notify,omitempty"` // Fields to include in the response. See also GetBuildRequest.fields. Fields *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A request message for ScheduleBuild rpc.
Next ID: 13.
func (*ScheduleBuildRequest) Descriptor ¶
func (*ScheduleBuildRequest) Descriptor() ([]byte, []int)
func (*ScheduleBuildRequest) GetBuilder ¶
func (m *ScheduleBuildRequest) GetBuilder() *BuilderID
func (*ScheduleBuildRequest) GetCanary ¶
func (m *ScheduleBuildRequest) GetCanary() Trinary
func (*ScheduleBuildRequest) GetDimensions ¶
func (m *ScheduleBuildRequest) GetDimensions() []*StringPair
func (*ScheduleBuildRequest) GetExperimental ¶
func (m *ScheduleBuildRequest) GetExperimental() Trinary
func (*ScheduleBuildRequest) GetFields ¶
func (m *ScheduleBuildRequest) GetFields() *field_mask.FieldMask
func (*ScheduleBuildRequest) GetGerritChanges ¶
func (m *ScheduleBuildRequest) GetGerritChanges() []*GerritChange
func (*ScheduleBuildRequest) GetGitilesCommit ¶
func (m *ScheduleBuildRequest) GetGitilesCommit() *GitilesCommit
func (*ScheduleBuildRequest) GetNotify ¶
func (m *ScheduleBuildRequest) GetNotify() *NotificationConfig
func (*ScheduleBuildRequest) GetPriority ¶
func (m *ScheduleBuildRequest) GetPriority() int32
func (*ScheduleBuildRequest) GetProperties ¶
func (m *ScheduleBuildRequest) GetProperties() *_struct.Struct
func (*ScheduleBuildRequest) GetRequestId ¶
func (m *ScheduleBuildRequest) GetRequestId() string
func (*ScheduleBuildRequest) GetTags ¶
func (m *ScheduleBuildRequest) GetTags() []*StringPair
func (*ScheduleBuildRequest) GetTemplateBuildId ¶
func (m *ScheduleBuildRequest) GetTemplateBuildId() int64
func (*ScheduleBuildRequest) ProtoMessage ¶
func (*ScheduleBuildRequest) ProtoMessage()
func (*ScheduleBuildRequest) Reset ¶
func (m *ScheduleBuildRequest) Reset()
func (*ScheduleBuildRequest) String ¶
func (m *ScheduleBuildRequest) String() string
func (*ScheduleBuildRequest) XXX_DiscardUnknown ¶
func (m *ScheduleBuildRequest) XXX_DiscardUnknown()
func (*ScheduleBuildRequest) XXX_Marshal ¶
func (m *ScheduleBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScheduleBuildRequest) XXX_Merge ¶
func (m *ScheduleBuildRequest) XXX_Merge(src proto.Message)
func (*ScheduleBuildRequest) XXX_Size ¶
func (m *ScheduleBuildRequest) XXX_Size() int
func (*ScheduleBuildRequest) XXX_Unmarshal ¶
func (m *ScheduleBuildRequest) XXX_Unmarshal(b []byte) error
type SearchBuildsRequest ¶
type SearchBuildsRequest struct { // Returned builds must satisfy this predicate. Required. Predicate *BuildPredicate `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"` // Fields to include in the response, see GetBuildRequest.fields. // Note that this applies to the response, not each build, so e.g. steps must // be requested with a path "builds.*.steps". Fields *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"` // Number of builds to return. // Defaults to 100. // Any value >1000 is interpreted as 1000. PageSize int32 `protobuf:"varint,101,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Value of SearchBuildsResponse.next_page_token from the previous response. // Use it to continue searching. PageToken string `protobuf:"bytes,102,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A request message for SearchBuilds rpc.
func (*SearchBuildsRequest) Descriptor ¶
func (*SearchBuildsRequest) Descriptor() ([]byte, []int)
func (*SearchBuildsRequest) GetFields ¶
func (m *SearchBuildsRequest) GetFields() *field_mask.FieldMask
func (*SearchBuildsRequest) GetPageSize ¶
func (m *SearchBuildsRequest) GetPageSize() int32
func (*SearchBuildsRequest) GetPageToken ¶
func (m *SearchBuildsRequest) GetPageToken() string
func (*SearchBuildsRequest) GetPredicate ¶
func (m *SearchBuildsRequest) GetPredicate() *BuildPredicate
func (*SearchBuildsRequest) ProtoMessage ¶
func (*SearchBuildsRequest) ProtoMessage()
func (*SearchBuildsRequest) Reset ¶
func (m *SearchBuildsRequest) Reset()
func (*SearchBuildsRequest) String ¶
func (m *SearchBuildsRequest) String() string
func (*SearchBuildsRequest) XXX_DiscardUnknown ¶
func (m *SearchBuildsRequest) XXX_DiscardUnknown()
func (*SearchBuildsRequest) XXX_Marshal ¶
func (m *SearchBuildsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchBuildsRequest) XXX_Merge ¶
func (m *SearchBuildsRequest) XXX_Merge(src proto.Message)
func (*SearchBuildsRequest) XXX_Size ¶
func (m *SearchBuildsRequest) XXX_Size() int
func (*SearchBuildsRequest) XXX_Unmarshal ¶
func (m *SearchBuildsRequest) XXX_Unmarshal(b []byte) error
type SearchBuildsResponse ¶
type SearchBuildsResponse struct { // Search results. // // Ordered by build id, descending. Ids are monotonically decreasing, so in // other words the order is newest-to-oldest. Builds []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"` // Value for SearchBuildsRequest.page_token to continue searching. NextPageToken string `protobuf:"bytes,100,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A response message for SearchBuilds rpc.
func (*SearchBuildsResponse) Descriptor ¶
func (*SearchBuildsResponse) Descriptor() ([]byte, []int)
func (*SearchBuildsResponse) GetBuilds ¶
func (m *SearchBuildsResponse) GetBuilds() []*Build
func (*SearchBuildsResponse) GetNextPageToken ¶
func (m *SearchBuildsResponse) GetNextPageToken() string
func (*SearchBuildsResponse) ProtoMessage ¶
func (*SearchBuildsResponse) ProtoMessage()
func (*SearchBuildsResponse) Reset ¶
func (m *SearchBuildsResponse) Reset()
func (*SearchBuildsResponse) String ¶
func (m *SearchBuildsResponse) String() string
func (*SearchBuildsResponse) XXX_DiscardUnknown ¶
func (m *SearchBuildsResponse) XXX_DiscardUnknown()
func (*SearchBuildsResponse) XXX_Marshal ¶
func (m *SearchBuildsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchBuildsResponse) XXX_Merge ¶
func (m *SearchBuildsResponse) XXX_Merge(src proto.Message)
func (*SearchBuildsResponse) XXX_Size ¶
func (m *SearchBuildsResponse) XXX_Size() int
func (*SearchBuildsResponse) XXX_Unmarshal ¶
func (m *SearchBuildsResponse) XXX_Unmarshal(b []byte) error
type Status ¶
type Status int32
Status of a build or a step.
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/step cannot have this status. // Can be used as a bitmask to check that a build/step ended. Status_ENDED_MASK Status = 4 // A build/step ended successfully. // This is a terminal status. It may not transition to another status. 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. // This is a terminal status. It may not transition to another status. Status_FAILURE Status = 20 // A build/step ended unsuccessfully due to a failure independent of the // input, e.g. swarming failed, not enough capacity or the recipe was unable // to read the patch from gerrit. // start_time is not required for this status. // This is a terminal status. It may not transition to another status. Status_INFRA_FAILURE Status = 36 // A build was cancelled explicitly, e.g. via an RPC. // This is a terminal status. It may not transition to another status. Status_CANCELED Status = 68 )
func (Status) EnumDescriptor ¶
type Step ¶
type Step struct { // Name of the step, unique within the build. // Identifies the step. // // Pipe character ("|") is reserved to separate parent and child step names. // For example, value "a|b" indicates step "b" under step "a". // If this is a child step, a parent MUST exist and MUST precede this step in // the list of steps. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The timestamp when the step started. // Required iff status is STARTED, SUCCESS or FAILURE, or if the step has // children. // MUST NOT be after start_time/end_time of any of the children. StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The timestamp when the step ended. // Present iff status is terminal. // MUST NOT be before start_time. // MUST NOT be before start/end_time of any of the children. EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Status of the step. // Must be specified, i.e. not STATUS_UNSPECIFIED. // // If the step has children // status MUST NOT be SCHEDULED. // status MUST be STARTED if status of any child is not terminal. // // status MUST NOT be "better" than statuses of its children, // where "better" relation is defined by the following order, // from good to bad: // SUCCESS // FAILURE // INFRA_FAILURE // CANCELED // Note that this defines "better" relation only for some statuses. // For those statuses where "better" is not defined, this rule does not // apply. Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=buildbucket.v2.Status" json:"status,omitempty"` // Logs produced by the step. // Log order is up to the step. Logs []*Step_Log `protobuf:"bytes,5,rep,name=logs,proto3" json:"logs,omitempty"` // Human-oriented summary of the step provided by the step itself, // in Markdown format (https://spec.commonmark.org/0.28/). // // V1 equivalent: combines and supersedes Buildbot's step_text and step links and also supports // other formatted text. SummaryMarkdown string `protobuf:"bytes,7,opt,name=summary_markdown,json=summaryMarkdown,proto3" json:"summary_markdown,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A build step.
A step may have children, see name field.
func (*Step) Descriptor ¶
func (*Step) GetEndTime ¶
func (*Step) GetStartTime ¶
func (*Step) GetSummaryMarkdown ¶
func (*Step) ProtoMessage ¶
func (*Step) ProtoMessage()
func (*Step) XXX_DiscardUnknown ¶
func (m *Step) XXX_DiscardUnknown()
func (*Step) XXX_Unmarshal ¶
type Step_Log ¶
type Step_Log struct { // Log name, standard ("stdout", "stderr") or custom ("json.output"). // Unique within the step. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // URL of a human-oriented page that displays log contents. ViewUrl string `protobuf:"bytes,2,opt,name=view_url,json=viewUrl,proto3" json:"view_url,omitempty"` // URL of the log content. // As of 2018-09-06, the only supported scheme is "logdog". // Typically it has form // "logdog://<host>/<project>/<prefix>/+/<stream_name>". // See also // https://godoc.org/go.chromium.org/luci/logdog/common/types#ParseURL Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A named log of a step.
func (*Step_Log) Descriptor ¶
func (*Step_Log) GetViewUrl ¶
func (*Step_Log) ProtoMessage ¶
func (*Step_Log) ProtoMessage()
func (*Step_Log) XXX_DiscardUnknown ¶
func (m *Step_Log) XXX_DiscardUnknown()
func (*Step_Log) XXX_Marshal ¶
func (*Step_Log) XXX_Unmarshal ¶
type StringPair ¶
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:"-"` }
A key-value pair of strings.
func (*StringPair) Descriptor ¶
func (*StringPair) Descriptor() ([]byte, []int)
func (*StringPair) GetKey ¶
func (m *StringPair) GetKey() string
func (*StringPair) GetValue ¶
func (m *StringPair) GetValue() string
func (*StringPair) ProtoMessage ¶
func (*StringPair) ProtoMessage()
func (*StringPair) Reset ¶
func (m *StringPair) Reset()
func (*StringPair) String ¶
func (m *StringPair) String() string
func (*StringPair) XXX_DiscardUnknown ¶
func (m *StringPair) XXX_DiscardUnknown()
func (*StringPair) XXX_Marshal ¶
func (m *StringPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringPair) XXX_Merge ¶
func (m *StringPair) XXX_Merge(src proto.Message)
func (*StringPair) XXX_Size ¶
func (m *StringPair) XXX_Size() int
func (*StringPair) XXX_Unmarshal ¶
func (m *StringPair) XXX_Unmarshal(b []byte) error
type TimeRange ¶
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:"-"` }
Half-open time range.
func (*TimeRange) Descriptor ¶
func (*TimeRange) GetEndTime ¶
func (*TimeRange) GetStartTime ¶
func (*TimeRange) ProtoMessage ¶
func (*TimeRange) ProtoMessage()
func (*TimeRange) XXX_DiscardUnknown ¶
func (m *TimeRange) XXX_DiscardUnknown()
func (*TimeRange) XXX_Marshal ¶
func (*TimeRange) XXX_Unmarshal ¶
type Trinary ¶
type Trinary int32
A boolean with an undefined value.
func (Trinary) EnumDescriptor ¶
type UpdateBuildRequest ¶
type UpdateBuildRequest struct { // Build to update, with new field values. Build *Build `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty"` // Build fields to update. // See also // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask // // Currently only "build.steps" path is supported. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Fields to include in the response. See also GetBuildRequest.fields. Fields *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A request message for UpdateBuild rpc.
func (*UpdateBuildRequest) Descriptor ¶
func (*UpdateBuildRequest) Descriptor() ([]byte, []int)
func (*UpdateBuildRequest) GetBuild ¶
func (m *UpdateBuildRequest) GetBuild() *Build
func (*UpdateBuildRequest) GetFields ¶
func (m *UpdateBuildRequest) GetFields() *field_mask.FieldMask
func (*UpdateBuildRequest) GetUpdateMask ¶
func (m *UpdateBuildRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateBuildRequest) ProtoMessage ¶
func (*UpdateBuildRequest) ProtoMessage()
func (*UpdateBuildRequest) Reset ¶
func (m *UpdateBuildRequest) Reset()
func (*UpdateBuildRequest) String ¶
func (m *UpdateBuildRequest) String() string
func (*UpdateBuildRequest) XXX_DiscardUnknown ¶
func (m *UpdateBuildRequest) XXX_DiscardUnknown()
func (*UpdateBuildRequest) XXX_Marshal ¶
func (m *UpdateBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateBuildRequest) XXX_Merge ¶
func (m *UpdateBuildRequest) XXX_Merge(src proto.Message)
func (*UpdateBuildRequest) XXX_Size ¶
func (m *UpdateBuildRequest) XXX_Size() int
func (*UpdateBuildRequest) XXX_Unmarshal ¶
func (m *UpdateBuildRequest) XXX_Unmarshal(b []byte) error