blob: 6917933dcbf67b4a9012de46f3e3013b547289e0 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: test_platform/result_flow/ctp.proto
package result_flow
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Values should be consistent with https://aip.dev/216
type CTPResponse_State int32
const (
// Should not be used.
CTPResponse_STATE_UNSPECIFIED CTPResponse_State = 0
// Successfully pulled the CTP build IDs from Pub/Sub.
CTPResponse_SUCCEEDED CTPResponse_State = 1
// Failed to pull the CTP build IDs.
CTPResponse_FAILED CTPResponse_State = 2
// CTP command has hit the predefined timeout.
CTPResponse_TIMED_OUT CTPResponse_State = 3
// CTP command was aborted externally.
CTPResponse_ABORTED CTPResponse_State = 4
)
var CTPResponse_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "SUCCEEDED",
2: "FAILED",
3: "TIMED_OUT",
4: "ABORTED",
}
var CTPResponse_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"SUCCEEDED": 1,
"FAILED": 2,
"TIMED_OUT": 3,
"ABORTED": 4,
}
func (x CTPResponse_State) String() string {
return proto.EnumName(CTPResponse_State_name, int32(x))
}
func (CTPResponse_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0cd3889564661eb4, []int{1, 0}
}
// CTPRequest defines the input of `result_flow ctp`.
type CTPRequest struct {
// How long the client could subscribe to the Pub/Sub.
// It should stop the subscription before the overall
// deadline.
SubscriptionDeadline *timestamp.Timestamp `protobuf:"bytes,1,opt,name=subscription_deadline,json=subscriptionDeadline,proto3" json:"subscription_deadline,omitempty"`
// Hard deadline for execution.
//
// CTP command should abort beyond this deadline.
Deadline *timestamp.Timestamp `protobuf:"bytes,2,opt,name=deadline,proto3" json:"deadline,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CTPRequest) Reset() { *m = CTPRequest{} }
func (m *CTPRequest) String() string { return proto.CompactTextString(m) }
func (*CTPRequest) ProtoMessage() {}
func (*CTPRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0cd3889564661eb4, []int{0}
}
func (m *CTPRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CTPRequest.Unmarshal(m, b)
}
func (m *CTPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CTPRequest.Marshal(b, m, deterministic)
}
func (m *CTPRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CTPRequest.Merge(m, src)
}
func (m *CTPRequest) XXX_Size() int {
return xxx_messageInfo_CTPRequest.Size(m)
}
func (m *CTPRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CTPRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CTPRequest proto.InternalMessageInfo
func (m *CTPRequest) GetSubscriptionDeadline() *timestamp.Timestamp {
if m != nil {
return m.SubscriptionDeadline
}
return nil
}
func (m *CTPRequest) GetDeadline() *timestamp.Timestamp {
if m != nil {
return m.Deadline
}
return nil
}
// CTPResponse defines the output of `result_flow ctp`.
type CTPResponse struct {
// `result_flow ctp` exits with exit code 0 unless there is an
// infrastructure failure. When the exit code is 0, `state` indicates the
// best known state of the ctp command execution (see comments on State enum).
State CTPResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.result_flow.CTPResponse_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CTPResponse) Reset() { *m = CTPResponse{} }
func (m *CTPResponse) String() string { return proto.CompactTextString(m) }
func (*CTPResponse) ProtoMessage() {}
func (*CTPResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0cd3889564661eb4, []int{1}
}
func (m *CTPResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CTPResponse.Unmarshal(m, b)
}
func (m *CTPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CTPResponse.Marshal(b, m, deterministic)
}
func (m *CTPResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CTPResponse.Merge(m, src)
}
func (m *CTPResponse) XXX_Size() int {
return xxx_messageInfo_CTPResponse.Size(m)
}
func (m *CTPResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CTPResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CTPResponse proto.InternalMessageInfo
func (m *CTPResponse) GetState() CTPResponse_State {
if m != nil {
return m.State
}
return CTPResponse_STATE_UNSPECIFIED
}
func init() {
proto.RegisterEnum("test_platform.result_flow.CTPResponse_State", CTPResponse_State_name, CTPResponse_State_value)
proto.RegisterType((*CTPRequest)(nil), "test_platform.result_flow.CTPRequest")
proto.RegisterType((*CTPResponse)(nil), "test_platform.result_flow.CTPResponse")
}
func init() {
proto.RegisterFile("test_platform/result_flow/ctp.proto", fileDescriptor_0cd3889564661eb4)
}
var fileDescriptor_0cd3889564661eb4 = []byte{
// 319 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x41, 0x4b, 0xf3, 0x30,
0x18, 0x80, 0xbf, 0xee, 0x73, 0x53, 0x33, 0x94, 0x1a, 0x1c, 0xe8, 0x2e, 0xca, 0xbc, 0x78, 0x90,
0x04, 0x26, 0x78, 0xdf, 0x9a, 0x0c, 0x0a, 0xea, 0x46, 0x9b, 0x5e, 0xbc, 0x94, 0x6e, 0x4b, 0x6b,
0xa1, 0xed, 0x5b, 0x93, 0x14, 0x7f, 0x89, 0xff, 0xc1, 0x9f,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