Fixing values inside of proto for CronWorkflow fields.

This commit is contained in:
Aleksandr Melnikov
2020-03-26 23:52:07 -07:00
parent 9ea94f5bb1
commit 24b3fe57fb
9 changed files with 65 additions and 49 deletions

View File

@@ -21,7 +21,9 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
func init() {
proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c)
}
var fileDescriptor_00212fb1f9d3bf1c = []byte{
// 265 bytes of a gzipped FileDescriptorProto

View File

@@ -109,7 +109,9 @@ func init() {
proto.RegisterType((*IsValidTokenRequest)(nil), "api.IsValidTokenRequest")
}
func init() { proto.RegisterFile("auth.proto", fileDescriptor_8bbd6f3875b0e874) }
func init() {
proto.RegisterFile("auth.proto", fileDescriptor_8bbd6f3875b0e874)
}
var fileDescriptor_8bbd6f3875b0e874 = []byte{
// 228 bytes of a gzipped FileDescriptorProto

View File

@@ -78,9 +78,9 @@ type CronWorkflow struct {
Timezone string `protobuf:"bytes,2,opt,name=timezone,proto3" json:"timezone,omitempty"`
Suspend bool `protobuf:"varint,3,opt,name=suspend,proto3" json:"suspend,omitempty"`
ConcurrencyPolicy string `protobuf:"bytes,4,opt,name=concurrencyPolicy,proto3" json:"concurrencyPolicy,omitempty"`
StartingDeadlineSeconds string `protobuf:"bytes,5,opt,name=startingDeadlineSeconds,proto3" json:"startingDeadlineSeconds,omitempty"`
SuccessfulJobsHistoryLimit string `protobuf:"bytes,6,opt,name=successfulJobsHistoryLimit,proto3" json:"successfulJobsHistoryLimit,omitempty"`
FailedJobsHistoryLimit string `protobuf:"bytes,7,opt,name=failedJobsHistoryLimit,proto3" json:"failedJobsHistoryLimit,omitempty"`
StartingDeadlineSeconds int64 `protobuf:"varint,5,opt,name=startingDeadlineSeconds,proto3" json:"startingDeadlineSeconds,omitempty"`
SuccessfulJobsHistoryLimit int32 `protobuf:"varint,6,opt,name=successfulJobsHistoryLimit,proto3" json:"successfulJobsHistoryLimit,omitempty"`
FailedJobsHistoryLimit int32 `protobuf:"varint,7,opt,name=failedJobsHistoryLimit,proto3" json:"failedJobsHistoryLimit,omitempty"`
WorkflowExecution *WorkflowExecution `protobuf:"bytes,8,opt,name=workflowExecution,proto3" json:"workflowExecution,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
@@ -140,25 +140,25 @@ func (m *CronWorkflow) GetConcurrencyPolicy() string {
return ""
}
func (m *CronWorkflow) GetStartingDeadlineSeconds() string {
func (m *CronWorkflow) GetStartingDeadlineSeconds() int64 {
if m != nil {
return m.StartingDeadlineSeconds
}
return ""
return 0
}
func (m *CronWorkflow) GetSuccessfulJobsHistoryLimit() string {
func (m *CronWorkflow) GetSuccessfulJobsHistoryLimit() int32 {
if m != nil {
return m.SuccessfulJobsHistoryLimit
}
return ""
return 0
}
func (m *CronWorkflow) GetFailedJobsHistoryLimit() string {
func (m *CronWorkflow) GetFailedJobsHistoryLimit() int32 {
if m != nil {
return m.FailedJobsHistoryLimit
}
return ""
return 0
}
func (m *CronWorkflow) GetWorkflowExecution() *WorkflowExecution {
@@ -173,38 +173,40 @@ func init() {
proto.RegisterType((*CronWorkflow)(nil), "api.CronWorkflow")
}
func init() { proto.RegisterFile("cron_workflow.proto", fileDescriptor_989cccaad551a50c) }
func init() {
proto.RegisterFile("cron_workflow.proto", fileDescriptor_989cccaad551a50c)
}
var fileDescriptor_989cccaad551a50c = []byte{
// 433 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x95, 0x15, 0xb6, 0xd6, 0x54, 0x48, 0xf5, 0xc4, 0x66, 0x85, 0x1d, 0xaa, 0x5e, 0xe8,
0x01, 0x35, 0xda, 0x10, 0x7f, 0x84, 0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 0xd7, 0xa4, 0xf3, 0x04, 0x9e, 0x77, 0x5a, 0x92, 0xed,
0x86, 0x6a, 0x3e, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x11, 0xff, 0xbe, 0x28, 0x03, 0x00,
0x00,
// 438 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xcd, 0x6e, 0x13, 0x31,
0x14, 0x85, 0xe5, 0x86, 0xb6, 0x89, 0x89, 0x90, 0xe2, 0x8a, 0xd6, 0x1a, 0xba, 0x18, 0x65, 0xc3,
0x2c, 0x50, 0x46, 0x2d, 0xe2, 0x47, 0x48, 0xb0, 0x69, 0x91, 0x10, 0x62, 0x81, 0xdc, 0x45, 0x97,
0x95, 0xe3, 0xb9, 0x09, 0x16, 0x1e, 0xdb, 0xf8, 0xa7, 0x25, 0x20, 0x36, 0x5d, 0xf0, 0x02, 0xec,
0x78, 0x2d, 0x5e, 0x81, 0x07, 0x41, 0x99, 0xcc, 0x84, 0x0c, 0x43, 0xbb, 0x3c, 0xf3, 0xdd, 0x63,
0x6b, 0xee, 0x39, 0xc6, 0x7b, 0xc2, 0x19, 0x7d, 0x71, 0x65, 0xdc, 0xc7, 0x99, 0x32, 0x57, 0x13,
0xeb, 0x4c, 0x30, 0xa4, 0xc7, 0xad, 0x4c, 0x0e, 0xe7, 0xc6, 0xcc, 0x15, 0xe4, 0xdc, 0xca, 0x9c,
0x6b, 0x6d, 0x02, 0x0f, 0xd2, 0x68, 0xbf, 0x1a, 0x49, 0x1e, 0xd4, 0xb4, 0x52, 0xd3, 0x38, 0xcb,
0xa1, 0xb4, 0x61, 0x51, 0xc3, 0x83, 0xe6, 0xbc, 0x8b, 0x00, 0xa5, 0x55, 0x3c, 0x40, 0x0d, 0xee,
0xb5, 0x2f, 0x4a, 0x86, 0x25, 0x04, 0x27, 0xc5, 0x4a, 0x8d, 0x15, 0xbe, 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0xd4, 0x04, 0xfa, 0xfa, 0x33, 0x88, 0xb8, 0x2c, 0x08, 0xed, 0x57, 0xeb,
0xdf, 0xaf, 0xd6, 0x7f, 0xfe, 0x2f, 0x65, 0x5d, 0xc3, 0xf1, 0x4f, 0x84, 0xf7, 0x36, 0x83, 0x38,
0x03, 0x77, 0x29, 0x05, 0x90, 0x6b, 0x84, 0xc9, 0xaa, 0x0f, 0xed, 0x98, 0xea, 0x60, 0xff, 0x53,
0x94, 0xa4, 0x1b, 0xfa, 0xf8, 0xe5, 0xf5, 0xaf, 0xdf, 0x3f, 0xb6, 0x9e, 0x8d, 0x1f, 0x2e, 0x8b,
0xec, 0xf3, 0xcb, 0xa3, 0x29, 0x04, 0x7e, 0x94, 0x7f, 0x5d, 0xf7, 0xe7, 0x5b, 0xde, 0x7a, 0x02,
0x2f, 0x5a, 0x2d, 0x99, 0xee, 0x54, 0xd5, 0x7c, 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x3c,
0xce, 0xa7, 0x28, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -27,9 +27,9 @@ message CronWorkflow {
string timezone = 2;
bool suspend = 3;
string concurrencyPolicy = 4;
string startingDeadlineSeconds = 5;
string successfulJobsHistoryLimit = 6;
string failedJobsHistoryLimit = 7;
int64 startingDeadlineSeconds = 5;
int32 successfulJobsHistoryLimit = 6;
int32 failedJobsHistoryLimit = 7;
WorkflowExecution workflowExecution = 8;
}

View File

@@ -79,7 +79,9 @@ func init() {
proto.RegisterType((*Metric)(nil), "api.Metric")
}
func init() { proto.RegisterFile("metric.proto", fileDescriptor_da41641f55bff5df) }
func init() {
proto.RegisterFile("metric.proto", fileDescriptor_da41641f55bff5df)
}
var fileDescriptor_da41641f55bff5df = []byte{
// 105 bytes of a gzipped FileDescriptorProto

View File

@@ -117,7 +117,9 @@ func init() {
proto.RegisterType((*Namespace)(nil), "api.Namespace")
}
func init() { proto.RegisterFile("namespace.proto", fileDescriptor_ecb1e126f615f5dd) }
func init() {
proto.RegisterFile("namespace.proto", fileDescriptor_ecb1e126f615f5dd)
}
var fileDescriptor_ecb1e126f615f5dd = []byte{
// 238 bytes of a gzipped FileDescriptorProto

View File

@@ -710,7 +710,9 @@ func init() {
proto.RegisterMapType((map[string]string)(nil), "api.Secret.DataEntry")
}
func init() { proto.RegisterFile("secret.proto", fileDescriptor_6acf428160d7a216) }
func init() {
proto.RegisterFile("secret.proto", fileDescriptor_6acf428160d7a216)
}
var fileDescriptor_6acf428160d7a216 = []byte{
// 713 bytes of a gzipped FileDescriptorProto

View File

@@ -1405,7 +1405,9 @@ func init() {
proto.RegisterType((*DeleteLabelRequest)(nil), "api.DeleteLabelRequest")
}
func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) }
func init() {
proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be)
}
var fileDescriptor_892c7f566756b0be = []byte{
// 1711 bytes of a gzipped FileDescriptorProto

View File

@@ -535,7 +535,9 @@ func init() {
proto.RegisterType((*WorkflowTemplate)(nil), "api.WorkflowTemplate")
}
func init() { proto.RegisterFile("workflow_template.proto", fileDescriptor_b9a07547748a96e8) }
func init() {
proto.RegisterFile("workflow_template.proto", fileDescriptor_b9a07547748a96e8)
}
var fileDescriptor_b9a07547748a96e8 = []byte{
// 368 bytes of a gzipped FileDescriptorProto