initialise repo
[debian/orchestra.git] / src / orchestra / orchestra.pb.go
1 // Code generated by protoc-gen-go from "orchestra.proto"
2 // DO NOT EDIT!
3
4 package orchestra
5
6 import proto "goprotobuf.googlecode.com/hg/proto"
7 import "math"
8 import "os"
9
10 // Reference proto, math & os imports to suppress error if they are not otherwise used.
11 var _ = proto.GetString
12 var _ = math.Inf
13 var _ os.Error
14
15
16 type ProtoAcknowledgement_AckType int32
17
18 const (
19         ProtoAcknowledgement_ACK_OK     = 1
20         ProtoAcknowledgement_ACK_ERROR  = 3
21 )
22
23 var ProtoAcknowledgement_AckType_name = map[int32]string{
24         1:      "ACK_OK",
25         3:      "ACK_ERROR",
26 }
27 var ProtoAcknowledgement_AckType_value = map[string]int32{
28         "ACK_OK":       1,
29         "ACK_ERROR":    3,
30 }
31
32 func NewProtoAcknowledgement_AckType(x int32) *ProtoAcknowledgement_AckType {
33         e := ProtoAcknowledgement_AckType(x)
34         return &e
35 }
36 func (x ProtoAcknowledgement_AckType) String() string {
37         return proto.EnumName(ProtoAcknowledgement_AckType_name, int32(x))
38 }
39
40 type ProtoTaskResponse_TaskStatus int32
41
42 const (
43         ProtoTaskResponse_JOB_INPROGRESS        = 2
44         ProtoTaskResponse_JOB_SUCCESS           = 3
45         ProtoTaskResponse_JOB_FAILED            = 4
46         ProtoTaskResponse_JOB_HOST_FAILURE      = 5
47         ProtoTaskResponse_JOB_UNKNOWN           = 6
48         ProtoTaskResponse_JOB_UNKNOWN_FAILURE   = 7
49 )
50
51 var ProtoTaskResponse_TaskStatus_name = map[int32]string{
52         2:      "JOB_INPROGRESS",
53         3:      "JOB_SUCCESS",
54         4:      "JOB_FAILED",
55         5:      "JOB_HOST_FAILURE",
56         6:      "JOB_UNKNOWN",
57         7:      "JOB_UNKNOWN_FAILURE",
58 }
59 var ProtoTaskResponse_TaskStatus_value = map[string]int32{
60         "JOB_INPROGRESS":       2,
61         "JOB_SUCCESS":          3,
62         "JOB_FAILED":           4,
63         "JOB_HOST_FAILURE":     5,
64         "JOB_UNKNOWN":          6,
65         "JOB_UNKNOWN_FAILURE":  7,
66 }
67
68 func NewProtoTaskResponse_TaskStatus(x int32) *ProtoTaskResponse_TaskStatus {
69         e := ProtoTaskResponse_TaskStatus(x)
70         return &e
71 }
72 func (x ProtoTaskResponse_TaskStatus) String() string {
73         return proto.EnumName(ProtoTaskResponse_TaskStatus_name, int32(x))
74 }
75
76 type IdentifyClient struct {
77         Hostname                *string `protobuf:"bytes,1,req,name=hostname"`
78         XXX_unrecognized        []byte
79 }
80
81 func (this *IdentifyClient) Reset()             { *this = IdentifyClient{} }
82 func (this *IdentifyClient) String() string     { return proto.CompactTextString(this) }
83
84 type ProtoJobParameter struct {
85         Key                     *string `protobuf:"bytes,1,req,name=key"`
86         Value                   *string `protobuf:"bytes,2,req,name=value"`
87         XXX_unrecognized        []byte
88 }
89
90 func (this *ProtoJobParameter) Reset()          { *this = ProtoJobParameter{} }
91 func (this *ProtoJobParameter) String() string  { return proto.CompactTextString(this) }
92
93 type ProtoTaskRequest struct {
94         Jobname                 *string                 `protobuf:"bytes,1,req,name=jobname"`
95         Id                      *uint64                 `protobuf:"varint,2,req,name=id"`
96         Parameters              []*ProtoJobParameter    `protobuf:"bytes,3,rep,name=parameters"`
97         XXX_unrecognized        []byte
98 }
99
100 func (this *ProtoTaskRequest) Reset()           { *this = ProtoTaskRequest{} }
101 func (this *ProtoTaskRequest) String() string   { return proto.CompactTextString(this) }
102
103 type ProtoAcknowledgement struct {
104         Id                      *uint64                         `protobuf:"varint,1,req,name=id"`
105         Response                *ProtoAcknowledgement_AckType   `protobuf:"varint,2,req,name=response,enum=orchestra.ProtoAcknowledgement_AckType,def=1"`
106         XXX_unrecognized        []byte
107 }
108
109 func (this *ProtoAcknowledgement) Reset()               { *this = ProtoAcknowledgement{} }
110 func (this *ProtoAcknowledgement) String() string       { return proto.CompactTextString(this) }
111
112 const Default_ProtoAcknowledgement_Response ProtoAcknowledgement_AckType = ProtoAcknowledgement_ACK_OK
113
114 type ProtoTaskResponse struct {
115         Id                      *uint64                         `protobuf:"varint,1,req,name=id"`
116         Status                  *ProtoTaskResponse_TaskStatus   `protobuf:"varint,3,req,name=status,enum=orchestra.ProtoTaskResponse_TaskStatus"`
117         Response                []*ProtoJobParameter            `protobuf:"bytes,4,rep,name=response"`
118         XXX_unrecognized        []byte
119 }
120
121 func (this *ProtoTaskResponse) Reset()          { *this = ProtoTaskResponse{} }
122 func (this *ProtoTaskResponse) String() string  { return proto.CompactTextString(this) }
123
124 func init() {
125         proto.RegisterEnum("orchestra.ProtoAcknowledgement_AckType", ProtoAcknowledgement_AckType_name, ProtoAcknowledgement_AckType_value)
126         proto.RegisterEnum("orchestra.ProtoTaskResponse_TaskStatus", ProtoTaskResponse_TaskStatus_name, ProtoTaskResponse_TaskStatus_value)
127 }